From: Tom Rini Date: Mon, 22 May 2017 16:33:44 -0400 Subject: [U-Boot] [PATCH] mksunxi_fit_atf.sh: Allow for this to complete when bl31.bin is missing In-Reply-To: References: <1495482011-23184-1-git-send-email-trini@konsulko.com> Message-ID: <20170522203344.GO23727@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Mon, May 22, 2017 at 02:24:44PM -0600, Simon Glass wrote: > Hi Tom., > > On 22 May 2017 at 13: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. > > > > Cc: Andre Przywara > > Cc: Simon Glass > > Cc: Maxime Ripard > > Signed-off-by: Tom Rini > > --- > > 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 > > + > > On x86 we use BUILD_ROM to enable building of something that requires > binary blobs. Maybe we should have a standard build flag which tells > the build to use binary blobs (or perhaps to not use them?). That's not 100% true on how it's used on x86 today, we have to set BUILD_ROM to get a binary we can use with qemu (which is why it's set in .travis.yml) but I imagine could be controlled differently, easily enough. We also have a similar problem on TI HS devices in that if the HS kit is not installed we still generate binaries but they are non-functional on the hardware. In that case we key off of the generation script existing at all. So yes, we should generalize this a bit, but I also really don't want to push the sunxi PR without something that means that autobuilders/etc will continue to funciton. -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: