Add option to pass a path to an mk in generate.sh

This commit is contained in:
Pierre-Hugues Husson 2018-08-20 22:24:32 +02:00
parent 34e58e0456
commit 17e27d8149
1 changed files with 5 additions and 1 deletions

View File

@ -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