From: Felix Fietkau Date: Mon, 22 Sep 2008 17:03:06 +0000 (+0000) Subject: fix mtd target define for brcm-2.4 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=413b45df8562e1cbcd6df9dc6eb18a6347d6b363;p=openwrt%2Fstaging%2Frobimarko.git fix mtd target define for brcm-2.4 SVN-Revision: 12650 --- 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