summaryrefslogtreecommitdiffstats
path: root/tools/mkimage/patches/040-include_order.patch
blob: 5a9d15eb765442ddd38905efbd5c6165ad2cb743 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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) \