aboutsummaryrefslogtreecommitdiffstats
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
commitd66671abc463474185837617389a3ae2b91d9fc4 (patch)
tree3ef772655290757b7d6bd1cd5c2cef9f968c5b38 /package/mtd
parentaf6c34ae4440e0ad5f2bbaf1fefe6a45f98a5b59 (diff)
downloadupstream-d66671abc463474185837617389a3ae2b91d9fc4.tar.gz
upstream-d66671abc463474185837617389a3ae2b91d9fc4.tar.bz2
upstream-d66671abc463474185837617389a3ae2b91d9fc4.zip
fix mtd target define for brcm-2.4
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12650 3c298f89-4303-0410-b956-a3cf2f4a3e73
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 11a78e8454..d8fa19cb0a 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