scripts: add support for manifest-only model aliases

This commit is contained in:
Matthias Schiffer 2017-06-13 12:18:21 +02:00
parent e40e05ad5f
commit 62132a590f
No known key found for this signature in database
GPG Key ID: 16EF3F64CB201D9C
2 changed files with 15 additions and 0 deletions

View File

@ -18,6 +18,10 @@ alias() {
:
}
manifest_alias() {
:
}
packages() {
:
}

View File

@ -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"