From 62132a590f9fcd4433eb87937ece1ec791fe1d50 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Tue, 13 Jun 2017 12:18:21 +0200 Subject: [PATCH] scripts: add support for manifest-only model aliases --- scripts/common.inc.sh | 4 ++++ scripts/generate_manifest.sh | 11 +++++++++++ 2 files changed, 15 insertions(+) diff --git a/scripts/common.inc.sh b/scripts/common.inc.sh index 0c69b9f0..793e71bc 100644 --- a/scripts/common.inc.sh +++ b/scripts/common.inc.sh @@ -18,6 +18,10 @@ alias() { : } +manifest_alias() { + : +} + packages() { : } diff --git a/scripts/generate_manifest.sh b/scripts/generate_manifest.sh index 3b2e65df..a9dfca3c 100755 --- a/scripts/generate_manifest.sh +++ b/scripts/generate_manifest.sh @@ -9,6 +9,7 @@ default_sysupgrade_ext='.bin' output= aliases= +manifest_aliases= sysupgrade_ext= @@ -33,6 +34,10 @@ generate() { for alias in $aliases; do generate_line "$alias" "gluon-${SITE_CODE}-${GLUON_RELEASE}-${alias}-sysupgrade${sysupgrade_ext}" done + + for alias in $manifest_aliases; do + generate_line "$alias" "gluon-${SITE_CODE}-${GLUON_RELEASE}-${output}-sysupgrade${sysupgrade_ext}" + done fi } @@ -44,6 +49,7 @@ device() { output="$1" aliases= + manifest_aliases= sysupgrade_ext="$default_sysupgrade_ext" } @@ -53,6 +59,7 @@ sysupgrade_image() { output="$1" aliases= + manifest_aliases= if [ "$3" ]; then sysupgrade_ext="$3" @@ -65,6 +72,10 @@ alias() { aliases="$aliases $1" } +manifest_alias() { + manifest_aliases="$manifest_aliases $1" +} + sysupgrade() { if [ "$2" ]; then sysupgrade_ext="$2"