tools/mkimage: add back a fixed version of 040-include_order.patch to fix build error...
[openwrt.git] / tools / mkimage / patches / 040-include_order.patch
1 --- a/tools/Makefile
2 +++ b/tools/Makefile
3 @@ -165,9 +165,9 @@ NOPEDOBJS := $(addprefix $(obj),$(NOPED_
4  # Define __KERNEL_STRICT_NAMES to prevent typedef overlaps
5  #
6  HOSTCPPFLAGS = -include $(SRCTREE)/include/libfdt_env.h \
7 -               -idirafter $(SRCTREE)/include \
8 +               -I $(SRCTREE)/include \
9                 -idirafter $(OBJTREE)/include2 \
10 -               -idirafter $(OBJTREE)/include \
11 +               -I $(OBJTREE)/include \
12                 -I $(SRCTREE)/lib/libfdt \
13                 -I $(SRCTREE)/tools \
14                 -DCONFIG_SYS_TEXT_BASE=$(CONFIG_SYS_TEXT_BASE) \