[U-Boot] [PATCH 2/2] tools: include u-boot version of sha256.h

Simon Glass sjg at chromium.org
Tue Jun 3 16:11:04 CEST 2014


On 30 May 2014 07:45, Jeroen Hofstee <jeroen at myspectrum.nl> wrote:
> When building tools the u-boot specific sha256.h is required, but the
> host version of sha256.h is used when present. This leads to build errors
> on FreeBSD which does have a system sha256.h include. Like libfdt_env.h
> explicitly include u-boot's sha256.h.
>
> cc: Simon Glass <sjg at chromium.org>
> Signed-off-by: Jeroen Hofstee <jeroen at myspectrum.nl>

There might be a general approach here, but this is just as reasonable
as the libfdt_env.h inclusion.

Acked-by: Simon Glass <sjg at chromium.org>

(tested with buildman - no build regressions on all boards)

> ---
>  tools/Makefile | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/tools/Makefile b/tools/Makefile
> index 6e43a01..5105360 100644
> --- a/tools/Makefile
> +++ b/tools/Makefile
> @@ -185,6 +185,7 @@ endif # !LOGO_BMP
>  # Define _GNU_SOURCE to obtain the getline prototype from stdio.h
>  #
>  HOST_EXTRACFLAGS += -include $(srctree)/include/libfdt_env.h \
> +               -include $(srctree)/include/sha256.h \
>                 $(patsubst -I%,-idirafter%, $(UBOOTINCLUDE)) \
>                 -I$(srctree)/lib/libfdt \
>                 -I$(srctree)/tools \
> --
> 1.8.3.2
>


More information about the U-Boot mailing list