From ecbec4244081f1a7c0446077445cc320572ff953 Mon Sep 17 00:00:00 2001 From: nbd Date: Sun, 23 Sep 2012 08:49:34 +0000 Subject: tools/mkimage: avoid picking up unrelated /usr/include headers with the same name as internal header files (e.g. image.h), fixes #12232 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33519 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- tools/mkimage/patches/040-include_order.patch | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 tools/mkimage/patches/040-include_order.patch (limited to 'tools/mkimage/patches') diff --git a/tools/mkimage/patches/040-include_order.patch b/tools/mkimage/patches/040-include_order.patch new file mode 100644 index 000000000..5a9d15eb7 --- /dev/null +++ b/tools/mkimage/patches/040-include_order.patch @@ -0,0 +1,14 @@ +--- a/tools/Makefile ++++ b/tools/Makefile +@@ -159,9 +159,9 @@ NOPEDOBJS := $(addprefix $(obj),$(NOPED_ + # Use native tools and options + # Define __KERNEL_STRICT_NAMES to prevent typedef overlaps + # +-HOSTCPPFLAGS = -idirafter $(SRCTREE)/include \ ++HOSTCPPFLAGS = -I $(SRCTREE)/include \ + -idirafter $(OBJTREE)/include2 \ +- -idirafter $(OBJTREE)/include \ ++ -I $(OBJTREE)/include \ + -I $(SRCTREE)/lib/libfdt \ + -I $(SRCTREE)/tools \ + -DCONFIG_SYS_TEXT_BASE=$(CONFIG_SYS_TEXT_BASE) \ -- cgit v1.2.3