diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2012-01-18 19:22:14 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2012-01-18 19:22:14 +0000 |
commit | 8b37a9edbdefda25492623685fc60e97be8a454e (patch) | |
tree | 22211797cb55a0cfda23ed521357c9faa5847a15 | |
parent | 4902e6be60a176c4546b4b43e9cbc79fc06e883a (diff) | |
download | upstream-8b37a9edbdefda25492623685fc60e97be8a454e.tar.gz upstream-8b37a9edbdefda25492623685fc60e97be8a454e.tar.bz2 upstream-8b37a9edbdefda25492623685fc60e97be8a454e.zip |
[package] mtd: external toolchains usually do not know about MTDREFRESH, so search in $(LINUX_DIR)/include first, fixes compilation with external CodeSourcery toolchain
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29779 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r-- | package/mtd/Makefile | 2 |
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 |