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

View File

@ -2,8 +2,12 @@
rom_script='' rom_script=''
if [ -n "$1" ];then if [ -n "$1" ];then
if echo "$1" | grep -qF /;then
rom_script='$(call inherit-product, '$1')'
else
rom_script='$(call inherit-product, device/phh/treble/'$1'.mk)' rom_script='$(call inherit-product, device/phh/treble/'$1'.mk)'
fi fi
fi
echo 'PRODUCT_MAKEFILES := \' > AndroidProducts.mk echo 'PRODUCT_MAKEFILES := \' > AndroidProducts.mk