sysupgrade: fixes broken pipe error during sysupgade
[openwrt.git] / tools / mkimage / patches / 040-include_order.patch
1 --- a/tools/Makefile
2 +++ b/tools/Makefile
3 @@ -162,9 +162,9 @@
4  # Use native tools and options
5  # Define __KERNEL_STRICT_NAMES to prevent typedef overlaps
6  #
7 -HOSTCPPFLAGS = -idirafter $(SRCTREE)/include \
8 +HOSTCPPFLAGS = -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) \