commit | eb59ef3d04c93b4b6bfe6764cd1e189675182f84 | [log] [tgz] |
---|---|---|
author | Pierre-Hugues Husson <pierre-hugues.husson@softathome.com> | Thu Aug 30 14:25:08 2018 +0200 |
committer | Jon West <electrikjesus@gmail.com> | Thu Aug 30 17:40:57 2018 -0400 |
tree | c70a9d9a108a7b5911ce6256b52356353371e8d1 | |
parent | 223815cc5b0ae7785bc101050089645c2ca6a59b [diff] [blame] |
Allow to add multiple inherit entries
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