From b27a9affd2b75f5c335b14a592e545ccb41dcda5 Mon Sep 17 00:00:00 2001 From: Pierre-Hugues Husson Date: Thu, 30 Aug 2018 14:25:08 +0200 Subject: [PATCH] Allow to add multiple inherit entries --- generate.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/generate.sh b/generate.sh index 91ea194..1811286 100644 --- a/generate.sh +++ b/generate.sh @@ -3,8 +3,11 @@ rom_script='' if [ -n "$1" ];then if echo "$1" | grep -qF /;then - rom_script='$(call inherit-product, '$1')' - else + 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 fi