summaryrefslogtreecommitdiff
path: root/package/mtd
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2008-09-22 17:03:06 +0000
committerFelix Fietkau <nbd@openwrt.org>2008-09-22 17:03:06 +0000
commit413b45df8562e1cbcd6df9dc6eb18a6347d6b363 (patch)
tree5886cbb106a21e07ad879d5381ee0f3f22062c51 /package/mtd
parent2c8010b2dcbca724e82ee5a06f900e5bde79f4ae (diff)
downloadmtk-20170518-413b45df8562e1cbcd6df9dc6eb18a6347d6b363.zip
mtk-20170518-413b45df8562e1cbcd6df9dc6eb18a6347d6b363.tar.gz
mtk-20170518-413b45df8562e1cbcd6df9dc6eb18a6347d6b363.tar.bz2
fix mtd target define for brcm-2.4
SVN-Revision: 12650
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 11a78e8..d8fa19c 100644
--- a/package/mtd/Makefile
+++ b/package/mtd/Makefile
@@ -35,7 +35,7 @@ endef
define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR) \
$(TARGET_CONFIGURE_OPTS) \
- CFLAGS="$(TARGET_CFLAGS) -Dtarget_$(BOARD)=1"
+ CFLAGS="$(TARGET_CFLAGS) -Dtarget_$(firstword $(subst -, ,$(BOARD)))=1"
endef
define Package/mtd/install