Forráskód Böngészése

tools: Fix mkimage build on FreeBSD 10.1

Signed-off-by: Jo-Philipp Wich <[email protected]>

SVN-Revision: 44280
Jo-Philipp Wich 10 éve
szülő
commit
d91e0a4df6
1 módosított fájl, 14 hozzáadás és 0 törlés
  1. 14 0
      tools/mkimage/patches/100-freebsd-compat.patch

+ 14 - 0
tools/mkimage/patches/100-freebsd-compat.patch

@@ -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