diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2015-02-05 16:58:16 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2015-02-05 16:58:16 +0000 |
commit | d91e0a4df6522fd490b27ee78fe99e3255e092a5 (patch) | |
tree | 8f2a7663264ebe7cc047fe790a7ec7efccb85458 /tools/mkimage/patches | |
parent | a854d5c4c96680bd72ee35c20cd2a297d7db546f (diff) | |
download | upstream-d91e0a4df6522fd490b27ee78fe99e3255e092a5.tar.gz upstream-d91e0a4df6522fd490b27ee78fe99e3255e092a5.tar.bz2 upstream-d91e0a4df6522fd490b27ee78fe99e3255e092a5.zip |
tools: Fix mkimage build on FreeBSD 10.1
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
SVN-Revision: 44280
Diffstat (limited to 'tools/mkimage/patches')
-rw-r--r-- | tools/mkimage/patches/100-freebsd-compat.patch | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/mkimage/patches/100-freebsd-compat.patch b/tools/mkimage/patches/100-freebsd-compat.patch new file mode 100644 index 0000000000..e014af5708 --- /dev/null +++ b/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 |