From 413b45df8562e1cbcd6df9dc6eb18a6347d6b363 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 22 Sep 2008 17:03:06 +0000 Subject: [PATCH] fix mtd target define for brcm-2.4 SVN-Revision: 12650 --- package/mtd/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/mtd/Makefile b/package/mtd/Makefile index 11a78e8454e..d8fa19cb0af 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 -- 2.30.2