Add option to pass a path to an mk in generate.sh
This commit is contained in:
parent
34e58e0456
commit
17e27d8149
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user