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
commit63c91af40444020930fadf0c0bff49aefa35cc68 (patch)
tree33dded4ca4216980c5056c60fb1e12cab82570d5 /package/mtd/Makefile
parent87a8e8ac1067f58ba831c4aae443f3655c31cd80 (diff)
downloadupstream-63c91af40444020930fadf0c0bff49aefa35cc68.tar.gz
upstream-63c91af40444020930fadf0c0bff49aefa35cc68.tar.bz2
upstream-63c91af40444020930fadf0c0bff49aefa35cc68.zip
mtd: add support for rewriting the fis table layout on redboot based systems
SVN-Revision: 17659
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