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 | 3e095d851acac78ce33a8a4b642b2224082bc959 (patch) | |
tree | 5b389a38165479d1391f3be4a30946ee29da3275 /tools | |
parent | b59c2b7ff4993f8ddbf440f255700679447f86aa (diff) | |
download | upstream-3e095d851acac78ce33a8a4b642b2224082bc959.tar.gz upstream-3e095d851acac78ce33a8a4b642b2224082bc959.tar.bz2 upstream-3e095d851acac78ce33a8a4b642b2224082bc959.zip |
tools: Fix mkimage build on FreeBSD 10.1
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44280 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'tools')
-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 |