diff --git a/tools/Makefile b/tools/Makefile
index 40890cfe597cc629d6de1ee0ce4b1976c2f07587..762f7dce9badd868ba208e69b87bffbf0efae63d 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -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 \