summaryrefslogtreecommitdiff
path: root/board/sunxi
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2017-05-22 19:40:11 (GMT)
committerTom Rini <trini@konsulko.com>2017-05-23 00:18:01 (GMT)
commit4c78028737c3185f49f5691183aeac3478b5f699 (patch)
treeac1749b865dc6db39463d0d48e5895430a490727 /board/sunxi
parent711391131c84398d1b8256ab5a8cfa2969ad57c7 (diff)
downloadu-boot-4c78028737c3185f49f5691183aeac3478b5f699.tar.xz
mksunxi_fit_atf.sh: Allow for this to complete when bl31.bin is missing
In situations like an autobuilder we are likely to not have bl31.bin present and thus would fail to build and propagate the error upwards. Instead, print a big warning to stderr so that human will see that something is wrong but complete the build. Cc: Maxime Ripard <maxime.ripard@free-electrons.com> Reviewed-by: Andre Przywara <andre.przywara@arm.com> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'board/sunxi')
-rwxr-xr-xboard/sunxi/mksunxi_fit_atf.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/board/sunxi/mksunxi_fit_atf.sh b/board/sunxi/mksunxi_fit_atf.sh
index ecea1b8..b1d6e0e 100755
--- a/board/sunxi/mksunxi_fit_atf.sh
+++ b/board/sunxi/mksunxi_fit_atf.sh
@@ -7,6 +7,12 @@
[ -z "$BL31" ] && BL31="bl31.bin"
+if [ ! -f $BL31 ]; then
+ echo "WARNING: BL31 file $BL31 NOT found, resulting binary is non-functional" >&2
+ echo "Please read the section on ARM Trusted Firmware (ATF) in board/sunxi/README.sunxi64" >&2
+ BL31=/dev/null
+fi
+
cat << __HEADER_EOF
/dts-v1/;