blob: 489f8b48bda2743b6d830d636a140041e3876521 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# Copyright (C) 2009 One Laptop Per Child
# Licensed under the terms of the GNU GPL v2 or later; see COPYING for details.
# this must be run before the base module creates versioned fs layout
. $OOB__shlib
enabled=$(read_config signing extract)
[[ "$enabled" == "1" ]] || exit 0
tgt=$intermediatesdir/for-signing
outzip=$outputdir/$(image_name).for-signing.zip
rm -rf $tgt
mkdir -p $tgt
found=0
echo "Extracting content for signing..."
copy_out_file() {
local name=$1
local path="$fsmount"/boot/${1}.zip
[ -f "$path"] || return
cp $path $tgt
found=1
}
copy_out bootfw
copy_out runos
copy_out runrd
copy_out actos
copy_out actrd
[ "$found" == "1" ] || exit 0
zip -j $outzip $tgt/*
|