summaryrefslogtreecommitdiff
path: root/package/mtd/Makefile
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2009-09-21 09:58:41 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2009-09-21 09:58:41 +0000
commit3a0a80e1294f903c0fc271b1e71dba59007b5f61 (patch)
treed6828f3e5f71dfcf14d10029c93f330058433642 /package/mtd/Makefile
parentb93baae0249cc7cac36138c0733dcd9d9a717c7c (diff)
mtd: add support for rewriting the fis table layout on redboot based systems
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17659 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/mtd/Makefile')
-rw-r--r--package/mtd/Makefile14
1 files changed, 8 insertions, 6 deletions
diff --git a/package/mtd/Makefile b/package/mtd/Makefile
index adba9dd5ec..ce538c6ca3 100644
--- a/package/mtd/Makefile
+++ b/package/mtd/Makefile
@@ -12,6 +12,7 @@ PKG_NAME:=mtd
PKG_RELEASE:=9
PKG_BUILD_DIR := $(KERNEL_BUILD_DIR)/$(PKG_NAME)
+STAMP_PREPARED := $(STAMP_PREPARED)_$(call confvar,CONFIG_MTD_REDBOOT_PARTS)
include $(INCLUDE_DIR)/package.mk
@@ -33,12 +34,13 @@ endef
target=$(firstword $(subst -, ,$(BOARD)))
-define Build/Compile
- $(MAKE) -C $(PKG_BUILD_DIR) \
- $(TARGET_CONFIGURE_OPTS) \
- TARGET=$(target) \
- CFLAGS="$(TARGET_CFLAGS) -Dtarget_$(target)=1 -Wall"
-endef
+MAKE_FLAGS += TARGET="$(target)"
+TARGET_CFLAGS += -Dtarget_$(target)=1 -Wall
+
+ifdef CONFIG_MTD_REDBOOT_PARTS
+ MAKE_FLAGS += FIS_SUPPORT=1
+ TARGET_CFLAGS += -DFIS_SUPPORT=1
+endif
define Package/mtd/install
$(INSTALL_DIR) $(1)/sbin