]> rtime.felk.cvut.cz Git - coffee/buildroot.git/blob - package/imx-mkimage/0001-add-support-for-overriding-bl32-and-bl33-not-only-bl.patch
lrzsz: install symlinks for XMODEM and YMODEM
[coffee/buildroot.git] / package / imx-mkimage / 0001-add-support-for-overriding-bl32-and-bl33-not-only-bl.patch
1 From 0677e6cff00506de56d11bfa230b6c366e74f6ed 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 Signed-off-by: Erik Larsson <karl.erik.larsson@gmail.com>
7 Signed-off-by: Christopher Dahlberg <crille.dahlberg@gmail.com>
8 Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com>
9 ---
10  iMX8M/mkimage_fit_atf.sh | 18 +++++++++---------
11  1 file changed, 9 insertions(+), 9 deletions(-)
12
13 diff --git a/iMX8M/mkimage_fit_atf.sh b/iMX8M/mkimage_fit_atf.sh
14 index 3a3bd10..727f746 100755
15 --- a/iMX8M/mkimage_fit_atf.sh
16 +++ b/iMX8M/mkimage_fit_atf.sh
17 @@ -11,29 +11,29 @@ if [ ! -f $BL31 ]; then
18         echo "ERROR: BL31 file $BL31 NOT found" >&2
19         exit 0
20  else
21 -       echo "bl31.bin size: " >&2
22 -       ls -lct bl31.bin | awk '{print $5}' >&2
23 +       echo "$BL31 size: " >&2
24 +       ls -lct $BL31 | awk '{print $5}' >&2
25  fi
26  
27 -BL32="tee.bin"
28 +[ -z "$BL32" ] && BL32="tee.bin"
29  
30  if [ ! -f $BL32 ]; then
31         BL32=/dev/null
32  else
33 -       echo "Building with TEE support, make sure your bl31 is compiled with spd. If you do not want tee, please delete tee.bin" >&2
34 -       echo "tee.bin size: " >&2
35 -       ls -lct tee.bin | awk '{print $5}' >&2
36 +       echo "Building with TEE support, make sure your bl31 is compiled with spd. If you do not want tee, please delete $BL32" >&2
37 +       echo "$BL32 size: " >&2
38 +       ls -lct $BL32 | awk '{print $5}' >&2
39  fi
40  
41 -BL33="u-boot-nodtb.bin"
42 +[ -z "$BL33" ] && BL33="u-boot-nodtb.bin"
43  
44  if [ ! -f $BL33 ]; then
45         echo "ERROR: $BL33 file NOT found" >&2
46         exit 0
47  else
48         
49 -       echo "u-boot-nodtb.bin size: " >&2
50 -       ls -lct u-boot-nodtb.bin | awk '{print $5}' >&2
51 +       echo "$BL33: " >&2
52 +       ls -lct $BL33 | awk '{print $5}' >&2
53  fi
54  
55  for dtname in $*
56 -- 
57 2.7.4
58