From: =?UTF-8?Q?Andr=c3=a9_Przywara?= Date: Tue, 23 May 2017 00:51:50 +0100 Subject: [U-Boot] [PATCH] mksunxi_fit_atf.sh: Allow for this to complete when bl31.bin is missing In-Reply-To: <1495482011-23184-1-git-send-email-trini@konsulko.com> References: <1495482011-23184-1-git-send-email-trini@konsulko.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 22/05/17 20:40, Tom Rini wrote: > 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. Yeah, that sounds like a good idea. Thanks! To make this even more useful, we should both mention either ATF or "ARM Trusted firmware" and board/sunxi/README.sunxi64, so that the users have a clue how to fix it. > Cc: Andre Przywara > Cc: Simon Glass > Cc: Maxime Ripard > Signed-off-by: Tom Rini With those hints above added: Reviewed-by: Andre Przywara Cheers, Andre. > --- > board/sunxi/mksunxi_fit_atf.sh | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/board/sunxi/mksunxi_fit_atf.sh b/board/sunxi/mksunxi_fit_atf.sh > index ecea1b839bdf..0deed6eeb14d 100755 > --- a/board/sunxi/mksunxi_fit_atf.sh > +++ b/board/sunxi/mksunxi_fit_atf.sh > @@ -7,6 +7,11 @@ > > [ -z "$BL31" ] && BL31="bl31.bin" > > +if [ ! -f $BL31 ]; then > + echo "WARNING: BL31 file $BL31 NOT found, resulting binary is non-functional" >&2 > + BL31=/dev/null > +fi > + > cat << __HEADER_EOF > /dts-v1/; > >