summaryrefslogtreecommitdiff
path: root/package/mtd/Makefile
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/Makefile
parentf7a7e289a5293ac6d71d4a4f4603e32bc2c7291c (diff)
downloadmtk-20170518-3a794cde8c2878ae6376ba4d95e0c9fd56a1c3fd.zip
mtk-20170518-3a794cde8c2878ae6376ba4d95e0c9fd56a1c3fd.tar.gz
mtk-20170518-3a794cde8c2878ae6376ba4d95e0c9fd56a1c3fd.tar.bz2
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/Makefile')
-rw-r--r--package/mtd/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/mtd/Makefile b/package/mtd/Makefile
index 49a760b..27338d7 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