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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
From ef28030129a04b1d70dbca3f2236fe7b1c67b4ed Mon Sep 17 00:00:00 2001
From: Erik Larsson <erik.larsson@combitech.se>
Date: Thu, 8 Mar 2018 19:04:37 +0100
Subject: [PATCH] Add support for overriding BL32 and BL33 not only BL31
Upstream-Status: Pending
Signed-off-by: Erik Larsson <karl.erik.larsson@gmail.com>
Signed-off-by: Christopher Dahlberg <crille.dahlberg@gmail.com>
Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com>
Signed-off-by: Thomas Perrot <thomas.perrot@bootlin.com>
---
iMX8M/mkimage_fit_atf.sh | 19 ++++++++++---------
1 file changed, 10 insertions(+), 9 deletions(-)
diff --git a/iMX8M/mkimage_fit_atf.sh b/iMX8M/mkimage_fit_atf.sh
index 10903ea3bbf5..341a4b3da1ef 100755
--- a/iMX8M/mkimage_fit_atf.sh
+++ b/iMX8M/mkimage_fit_atf.sh
@@ -6,6 +6,7 @@
# usage: $0 <dt_name> [<dt_name> [<dt_name] ...]
[ -z "$BL31" ] && BL31="bl31.bin"
+
# keep backward compatibility
[ -z "$TEE_LOAD_ADDR" ] && TEE_LOAD_ADDR="0xfe000000"
@@ -18,23 +19,23 @@ if [ ! -f $BL31 ]; then
echo "ERROR: BL31 file $BL31 NOT found" >&2
exit 0
else
- echo "bl31.bin size: " >&2
- ls -lct bl31.bin | awk '{print $5}' >&2
+ echo "$BL31 size: " >&2
+ ls -lct $BL31 | awk '{print $5}' >&2
fi
-BL32="tee.bin"
+[ -z "$BL32" ] && BL32="tee.bin"
LOADABLES="\"atf-1\""
if [ ! -f $BL32 ]; then
BL32=/dev/null
else
- echo "Building with TEE support, make sure your bl31 is compiled with spd. If you do not want tee, please delete tee.bin" >&2
- echo "tee.bin size: " >&2
- ls -lct tee.bin | awk '{print $5}' >&2
+ echo "Building with TEE support, make sure $BL31 is compiled with spd. If you do not want tee, please delete $BL32" >&2
+ echo "$BL32 size: " >&2
+ ls -lct $BL32 | awk '{print $5}' >&2
LOADABLES="$LOADABLES, \"tee-1\""
fi
-BL33="u-boot-nodtb.bin"
+[ -z "$BL33" ] && BL33="u-boot-nodtb.bin"
DEK_BLOB="dek_blob_fit_dummy.bin"
if [ ! -f $DEK_BLOB ]; then
@@ -49,8 +50,8 @@ if [ ! -f $BL33 ]; then
exit 0
else
- echo "u-boot-nodtb.bin size: " >&2
- ls -lct u-boot-nodtb.bin | awk '{print $5}' >&2
+ echo "$BL33 size: " >&2
+ ls -lct $BL33 | awk '{print $5}' >&2
fi
for dtname in $*
--
2.35.1
|