summaryrefslogtreecommitdiffstats
path: root/recipes-bsp/imx-mkimage/files/0001-Add-support-for-overriding-BL32-and-BL33-not-only-BL.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-bsp/imx-mkimage/files/0001-Add-support-for-overriding-BL32-and-BL33-not-only-BL.patch')
-rw-r--r--recipes-bsp/imx-mkimage/files/0001-Add-support-for-overriding-BL32-and-BL33-not-only-BL.patch69
1 files changed, 69 insertions, 0 deletions
diff --git a/recipes-bsp/imx-mkimage/files/0001-Add-support-for-overriding-BL32-and-BL33-not-only-BL.patch b/recipes-bsp/imx-mkimage/files/0001-Add-support-for-overriding-BL32-and-BL33-not-only-BL.patch
new file mode 100644
index 00000000..9e8360b5
--- /dev/null
+++ b/recipes-bsp/imx-mkimage/files/0001-Add-support-for-overriding-BL32-and-BL33-not-only-BL.patch
@@ -0,0 +1,69 @@
1From 4e4e06602f594b335b4c264a3b062bc7af961078 Mon Sep 17 00:00:00 2001
2From: Erik Larsson <erik.larsson@combitech.se>
3Date: Thu, 8 Mar 2018 19:04:37 +0100
4Subject: [PATCH] Add support for overriding BL32 and BL33 not only BL31
5
6Upstream-Status: Pending
7
8Signed-off-by: Erik Larsson <karl.erik.larsson@gmail.com>
9Signed-off-by: Christopher Dahlberg <crille.dahlberg@gmail.com>
10Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com>
11Signed-off-by: Thomas Perrot <thomas.perrot@bootlin.com>
12---
13 iMX8M/mkimage_fit_atf.sh | 15 ++++++++-------
14 1 file changed, 8 insertions(+), 7 deletions(-)
15
16diff --git a/iMX8M/mkimage_fit_atf.sh b/iMX8M/mkimage_fit_atf.sh
17index 10903ea3bbf5..85ea6ffcc71d 100755
18--- a/iMX8M/mkimage_fit_atf.sh
19+++ b/iMX8M/mkimage_fit_atf.sh
20@@ -6,6 +6,7 @@
21 # usage: $0 <dt_name> [<dt_name> [<dt_name] ...]
22
23 [ -z "$BL31" ] && BL31="bl31.bin"
24+
25 # keep backward compatibility
26 [ -z "$TEE_LOAD_ADDR" ] && TEE_LOAD_ADDR="0xfe000000"
27
28@@ -18,23 +19,23 @@ if [ ! -f $BL31 ]; then
29 echo "ERROR: BL31 file $BL31 NOT found" >&2
30 exit 0
31 else
32- echo "bl31.bin size: " >&2
33- ls -lct bl31.bin | awk '{print $5}' >&2
34+ echo "$BL31 size: " >&2
35+ ls -lct $BL31 | awk '{print $5}' >&2
36 fi
37
38-BL32="tee.bin"
39+[ -z "$BL32" ] && BL32="tee.bin"
40 LOADABLES="\"atf-1\""
41
42 if [ ! -f $BL32 ]; then
43 BL32=/dev/null
44 else
45 echo "Building with TEE support, make sure your bl31 is compiled with spd. If you do not want tee, please delete tee.bin" >&2
46- echo "tee.bin size: " >&2
47+ echo "$BL32 size: " >&2
48 ls -lct tee.bin | awk '{print $5}' >&2
49 LOADABLES="$LOADABLES, \"tee-1\""
50 fi
51
52-BL33="u-boot-nodtb.bin"
53+[ -z "$BL33" ] && BL33="u-boot-nodtb.bin"
54 DEK_BLOB="dek_blob_fit_dummy.bin"
55
56 if [ ! -f $DEK_BLOB ]; then
57@@ -49,8 +50,8 @@ if [ ! -f $BL33 ]; then
58 exit 0
59 else
60
61- echo "u-boot-nodtb.bin size: " >&2
62- ls -lct u-boot-nodtb.bin | awk '{print $5}' >&2
63+ echo "$BL33 size: " >&2
64+ ls -lct $BL33 | awk '{print $5}' >&2
65 fi
66
67 for dtname in $*
68--
692.35.1