aboutsummaryrefslogtreecommitdiffstats
path: root/package/mtd
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2012-01-18 19:22:14 +0000
committerJo-Philipp Wich <jow@openwrt.org>2012-01-18 19:22:14 +0000
commit3a794cde8c2878ae6376ba4d95e0c9fd56a1c3fd (patch)
tree45bea87173a1f33c37eda7d4b45876ea9d04b07a /package/mtd
parentf7a7e289a5293ac6d71d4a4f4603e32bc2c7291c (diff)
downloadupstream-3a794cde8c2878ae6376ba4d95e0c9fd56a1c3fd.tar.gz
upstream-3a794cde8c2878ae6376ba4d95e0c9fd56a1c3fd.tar.bz2
upstream-3a794cde8c2878ae6376ba4d95e0c9fd56a1c3fd.zip
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
Diffstat (limited to 'package/mtd')
-rw-r--r--package/mtd/Makefile2
1 files changed, 1 insertions, 1 deletions
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