Explorar el Código

fix mtd target define for brcm-2.4

SVN-Revision: 12650
Felix Fietkau hace 17 años
padre
commit
413b45df85
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      package/mtd/Makefile

+ 1 - 1
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