Add optional parameter to generate.sh to include a rom-specific mk

This commit is contained in:
Pierre-Hugues Husson 2018-03-03 19:49:38 +01:00
parent d3736a801e
commit dba5145217

View File

@ -1,5 +1,10 @@
#!/bin/bash #!/bin/bash
rom_script=''
if [ -n "$1" ];then
rom_script='$(call inherit-product, device/phh/treble/'$1'.mk)'
fi
echo 'PRODUCT_MAKEFILES := \' > AndroidProducts.mk echo 'PRODUCT_MAKEFILES := \' > AndroidProducts.mk
for part in a ab;do for part in a ab;do
@ -44,6 +49,7 @@ for part in a ab;do
include build/make/target/product/treble_common.mk include build/make/target/product/treble_common.mk
\$(call inherit-product, device/phh/treble/base.mk) \$(call inherit-product, device/phh/treble/base.mk)
$apps_script $apps_script
$rom_script
PRODUCT_NAME := $target PRODUCT_NAME := $target
PRODUCT_DEVICE := phhgsi_arm64_$part PRODUCT_DEVICE := phhgsi_arm64_$part