tools: include u-boot version of sha256.h
authorJeroen Hofstee <jeroen@myspectrum.nl>
Fri, 30 May 2014 13:45:28 +0000 (15:45 +0200)
committerTom Rini <trini@ti.com>
Wed, 11 Jun 2014 20:25:38 +0000 (16:25 -0400)
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@chromium.org>
Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>
Acked-by: Simon Glass <sjg@chromium.org>
tools/Makefile

index 40890cfe597cc629d6de1ee0ce4b1976c2f07587..762f7dce9badd868ba208e69b87bffbf0efae63d 100644 (file)
@@ -190,6 +190,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 \