diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2022-04-27 08:15:04 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-27 08:15:04 -0300 |
commit | 96a0904cd0562378411c373f8a976c749772202b (patch) | |
tree | 8195171a31b3165c8ed36b64a55bea68dbdcc56f /recipes-bsp/imx-mkimage/files/0001-Add-support-for-overriding-BL32-and-BL33-not-only-BL.patch | |
parent | 1f4577542cd2246b4a1f1bf0e331f82ff2d7da8b (diff) | |
parent | daf1f29014920538b0e7472ac14bd6f454429970 (diff) | |
download | meta-freescale-96a0904cd0562378411c373f8a976c749772202b.tar.gz |
Merge pull request #1060 from tprrt/tprrt/imx-mkimage-hab
imx-imkimage: install print_fit_hab.sh
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.patch | 69 |
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 @@ | |||
1 | From 4e4e06602f594b335b4c264a3b062bc7af961078 Mon Sep 17 00:00:00 2001 | ||
2 | From: Erik Larsson <erik.larsson@combitech.se> | ||
3 | Date: Thu, 8 Mar 2018 19:04:37 +0100 | ||
4 | Subject: [PATCH] Add support for overriding BL32 and BL33 not only BL31 | ||
5 | |||
6 | Upstream-Status: Pending | ||
7 | |||
8 | Signed-off-by: Erik Larsson <karl.erik.larsson@gmail.com> | ||
9 | Signed-off-by: Christopher Dahlberg <crille.dahlberg@gmail.com> | ||
10 | Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com> | ||
11 | Signed-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 | |||
16 | diff --git a/iMX8M/mkimage_fit_atf.sh b/iMX8M/mkimage_fit_atf.sh | ||
17 | index 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 | -- | ||
69 | 2.35.1 | ||