summaryrefslogtreecommitdiff
path: root/tools/mkimage/patches/040-include_order.patch
blob: 94324666f461b130c5ed8c6e1e984e713d5214e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -165,9 +165,9 @@ NOPEDOBJS := $(addprefix $(obj),$(NOPED_
 # Define __KERNEL_STRICT_NAMES to prevent typedef overlaps
 #
 HOSTCPPFLAGS =	-include $(SRCTREE)/include/libfdt_env.h \
-		-idirafter $(SRCTREE)/include \
+		-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) \