From 85658e55b38be617d826f637b3e1b19c8f4f3d5d 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