From: Jo-Philipp Wich Date: Wed, 18 Jan 2012 19:22:14 +0000 (+0000) Subject: mtd: external toolchains usually do not know about MTDREFRESH, so search in $(LINUX_D... X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=3a794cde8c2878ae6376ba4d95e0c9fd56a1c3fd;p=openwrt%2Fstaging%2Fmans0n.git mtd: external toolchains usually do not know about MTDREFRESH, so search in $(LINUX_DIR)/include first, fixes compilation with external CodeSourcery toolchain SVN-Revision: 29779 --- diff --git a/package/mtd/Makefile b/package/mtd/Makefile index 49a760be23..27338d783b 100644 --- a/package/mtd/Makefile +++ b/package/mtd/Makefile @@ -35,7 +35,7 @@ endef target=$(firstword $(subst -, ,$(BOARD))) MAKE_FLAGS += TARGET="$(target)" -TARGET_CFLAGS += -Dtarget_$(target)=1 -Wall +TARGET_CFLAGS := -I$(LINUX_DIR)/include $(TARGET_CFLAGS) -Dtarget_$(target)=1 -Wall ifdef CONFIG_MTD_REDBOOT_PARTS MAKE_FLAGS += FIS_SUPPORT=1