Allow to add multiple inherit entries

This commit is contained in:
Pierre-Hugues Husson 2018-08-30 14:25:08 +02:00
parent 31f2441e0e
commit 9fe3ec0ada

View File

@ -3,7 +3,10 @@
rom_script=''
if [ -n "$1" ];then
if echo "$1" | grep -qF /;then
rom_script='$(call inherit-product, '$1')'
rom_script=''
for i in "$@";do
rom_script="$rom_script"$'\n''$(call inherit-product, '$i')'
done
else
rom_script='$(call inherit-product, device/phh/treble/'$1'.mk)'
fi