fix mtd target define for brcm-2.4

SVN-Revision: 12650
This commit is contained in:
Felix Fietkau 2008-09-22 17:03:06 +00:00
parent 2c8010b2dc
commit 413b45df85

View file

@ -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