From 17e27d814940f3a946039e5db6850f83f8f3840c Mon Sep 17 00:00:00 2001 From: Pierre-Hugues Husson Date: Mon, 20 Aug 2018 22:24:32 +0200 Subject: [PATCH] Add option to pass a path to an mk in generate.sh --- generate.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/generate.sh b/generate.sh index ec0d882..91ea194 100644 --- a/generate.sh +++ b/generate.sh @@ -2,7 +2,11 @@ rom_script='' if [ -n "$1" ];then - rom_script='$(call inherit-product, device/phh/treble/'$1'.mk)' + if echo "$1" | grep -qF /;then + rom_script='$(call inherit-product, '$1')' + else + rom_script='$(call inherit-product, device/phh/treble/'$1'.mk)' + fi fi echo 'PRODUCT_MAKEFILES := \' > AndroidProducts.mk