aboutsummaryrefslogtreecommitdiffstats
path: root/package/mtd/Makefile
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2009-09-21 09:58:41 +0000
committerFelix Fietkau <nbd@openwrt.org>2009-09-21 09:58:41 +0000
commitad3e448f0d5fa7221d124b33e0fed8c9054a6a16 (patch)
treed6828f3e5f71dfcf14d10029c93f330058433642 /package/mtd/Makefile
parent63237504c9e72ccec532fda34a4ce216521f72a0 (diff)
downloadupstream-ad3e448f0d5fa7221d124b33e0fed8c9054a6a16.tar.gz
upstream-ad3e448f0d5fa7221d124b33e0fed8c9054a6a16.tar.bz2
upstream-ad3e448f0d5fa7221d124b33e0fed8c9054a6a16.zip
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