Allow to add multiple inherit entries
This commit is contained in:
parent
3e0f024cad
commit
b27a9affd2
@ -3,8 +3,11 @@
|
|||||||
rom_script=''
|
rom_script=''
|
||||||
if [ -n "$1" ];then
|
if [ -n "$1" ];then
|
||||||
if echo "$1" | grep -qF /;then
|
if echo "$1" | grep -qF /;then
|
||||||
rom_script='$(call inherit-product, '$1')'
|
rom_script=''
|
||||||
else
|
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)'
|
rom_script='$(call inherit-product, device/phh/treble/'$1'.mk)'
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user