Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/modules/signing/preimage.50.addsignedcontent.sh
diff options
context:
space:
mode:
authorDaniel Drake <dsd@laptop.org>2012-10-02 16:31:43 (GMT)
committer Daniel Drake <dsd@laptop.org>2012-10-02 16:31:43 (GMT)
commitab3d3f992d8271fb6608e815f28611a0ab088343 (patch)
tree2e2c5b902383849f20a1608382cbe97f147b2b6a /modules/signing/preimage.50.addsignedcontent.sh
parentc7425d50162106b2de997d71ec3b8bba65c03a15 (diff)
Generate firmware zip files with model-suffixed names (#12129)
The XO-4 at the present time requires model-suffixes zip file names e.g. runos4.zip. This also seems to make sense in the general case, and is implemented here as being fully backwards-compatible with firmware that don't support it.
Diffstat (limited to 'modules/signing/preimage.50.addsignedcontent.sh')
-rw-r--r--modules/signing/preimage.50.addsignedcontent.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/modules/signing/preimage.50.addsignedcontent.sh b/modules/signing/preimage.50.addsignedcontent.sh
index 3ad5f19..f3106c2 100644
--- a/modules/signing/preimage.50.addsignedcontent.sh
+++ b/modules/signing/preimage.50.addsignedcontent.sh
@@ -2,6 +2,7 @@
# Licensed under the terms of the GNU GPL v2 or later; see COPYING for details.
. $OOB__shlib
+shopt -s nullglob
content=$(read_config signing add_signed_content)
[ -n "$content" ] || exit 0
@@ -11,8 +12,11 @@ signdir=$intermediatesdir/signed-content
rm -rf $signdir
mkdir -p $signdir
unzip $content -d $signdir
-for sfile in bootfw.zip runos.zip runrd.zip actos.zip actrd.zip; do
- [ -e $signdir/$sfile ] && cp --remove-destination $signdir/$sfile $fsmount/boot/$sfile
+
+pushd $signdir
+for sfile in bootfw*.zip runos*.zip runrd*.zip actos*.zip actrd*.zip; do
+ cp --remove-destination $sfile $fsmount/boot/$sfile
done
+popd
rm -rf $signdir