From c7494fd234a2d7f81005cba0b781062d110e4a4c Mon Sep 17 00:00:00 2001 From: nbd Date: Mon, 22 Sep 2008 17:03:06 +0000 Subject: fix mtd target define for brcm-2.4 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12650 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/mtd/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'package/mtd') diff --git a/package/mtd/Makefile b/package/mtd/Makefile index 11a78e845..d8fa19cb0 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 -- cgit v1.2.3