X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/c4b73fa154ce47702ee9b3bbe621d8f079eb7fa5..9fbe9e1ad0dc0df121c0c9d3354349202e6060b2:/package/mtd/Makefile diff --git a/package/mtd/Makefile b/package/mtd/Makefile index 2bdc8fabc..adba9dd5e 100644 --- a/package/mtd/Makefile +++ b/package/mtd/Makefile @@ -1,16 +1,15 @@ -# -# Copyright (C) 2006 OpenWrt.org +# +# Copyright (C) 2006-2009 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. # -# $Id$ include $(TOPDIR)/rules.mk include $(INCLUDE_DIR)/kernel.mk PKG_NAME:=mtd -PKG_RELEASE:=6 +PKG_RELEASE:=9 PKG_BUILD_DIR := $(KERNEL_BUILD_DIR)/$(PKG_NAME) @@ -32,10 +31,13 @@ define Build/Prepare $(CP) ./src/* $(PKG_BUILD_DIR)/ endef +target=$(firstword $(subst -, ,$(BOARD))) + define Build/Compile $(MAKE) -C $(PKG_BUILD_DIR) \ $(TARGET_CONFIGURE_OPTS) \ - CFLAGS="$(TARGET_CFLAGS) -Dtarget_$(BOARD)=1" + TARGET=$(target) \ + CFLAGS="$(TARGET_CFLAGS) -Dtarget_$(target)=1 -Wall" endef define Package/mtd/install