[U-Boot] [PATCH] mksunxi_fit_atf.sh: Allow for this to complete when bl31.bin is missing

Simon Glass sjg at chromium.org
Mon May 22 20:24:44 UTC 2017


Hi Tom.,

On 22 May 2017 at 13:40, Tom Rini <trini at konsulko.com> 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 <andre.przywara at arm.com>
> Cc: Simon Glass <sjg at chromium.org>
> Cc: Maxime Ripard <maxime.ripard at free-electrons.com>
> Signed-off-by: Tom Rini <trini at konsulko.com>
> ---
>  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?).

>  cat << __HEADER_EOF
>  /dts-v1/;
>
> --
> 1.9.1
>

Regards,
Simon


More information about the U-Boot mailing list