0001-Add-support-for-overriding-BL32-and-BL33-not-only-BL.patch 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. From 4870df3d70e94f9f0d6c06f610cea2d88cd6edb5 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. Signed-off-by: Erik Larsson <karl.erik.larsson@gmail.com>
  6. Signed-off-by: Christopher Dahlberg <crille.dahlberg@gmail.com>
  7. Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com>
  8. ---
  9. iMX8M/mkimage_fit_atf.sh | 16 ++++++++--------
  10. 1 file changed, 8 insertions(+), 8 deletions(-)
  11. diff --git a/iMX8M/mkimage_fit_atf.sh b/iMX8M/mkimage_fit_atf.sh
  12. index 95749b1..c1aa902 100755
  13. --- a/iMX8M/mkimage_fit_atf.sh
  14. +++ b/iMX8M/mkimage_fit_atf.sh
  15. @@ -18,23 +18,23 @@ if [ ! -f $BL31 ]; then
  16. echo "ERROR: BL31 file $BL31 NOT found" >&2
  17. exit 0
  18. else
  19. - echo "bl31.bin size: " >&2
  20. - ls -lct bl31.bin | awk '{print $5}' >&2
  21. + echo "$BL31 size: " >&2
  22. + ls -lct $BL31 | awk '{print $5}' >&2
  23. fi
  24. -BL32="tee.bin"
  25. +[ -z "$BL32" ] && BL32="tee.bin"
  26. LOADABLES="\"atf@1\""
  27. if [ ! -f $BL32 ]; then
  28. BL32=/dev/null
  29. else
  30. echo "Building with TEE support, make sure your bl31 is compiled with spd. If you do not want tee, please delete tee.bin" >&2
  31. - echo "tee.bin size: " >&2
  32. - ls -lct tee.bin | awk '{print $5}' >&2
  33. + echo "$BL32 size: " >&2
  34. + ls -lct $BL32 | awk '{print $5}' >&2
  35. LOADABLES="$LOADABLES, \"tee@1\""
  36. fi
  37. -BL33="u-boot-nodtb.bin"
  38. +[ -z "$BL33" ] && BL33="u-boot-nodtb.bin"
  39. DEK_BLOB="dek_blob_fit_dummy.bin"
  40. if [ ! -f $DEK_BLOB ]; then
  41. @@ -49,8 +49,8 @@ if [ ! -f $BL33 ]; then
  42. exit 0
  43. else
  44. - echo "u-boot-nodtb.bin size: " >&2
  45. - ls -lct u-boot-nodtb.bin | awk '{print $5}' >&2
  46. + echo "$BL33 size: " >&2
  47. + ls -lct $BL33 | awk '{print $5}' >&2
  48. fi
  49. for dtname in $*
  50. --
  51. 2.25.1