tools: Fix mkimage build on FreeBSD 10.1

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 44280
This commit is contained in:
Jo-Philipp Wich 2015-02-05 16:58:16 +00:00
parent a854d5c4c9
commit d91e0a4df6
1 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,14 @@
--- a/Makefile
+++ b/Makefile
@@ -584,7 +584,10 @@ UBOOTINCLUDE := \
-I$(srctree)/arch/$(ARCH)/include \
-include $(srctree)/include/linux/kconfig.h
-NOSTDINC_FLAGS += -nostdinc -isystem $(shell $(CC) -print-file-name=include)
+ifneq ($(shell uname),FreeBSD)
+ NOSTDINC_FLAGS += -nostdinc -isystem $(shell $(CC) -print-file-name=include)
+endif
+
CHECKFLAGS += $(NOSTDINC_FLAGS)
# FIX ME