diff options
author | John Crispin <john@openwrt.org> | 2014-06-11 12:59:41 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2014-06-11 12:59:41 +0000 |
commit | 371c7008105ac860bb7ccfe29c03f69a14d5811f (patch) | |
tree | c6281e4ac4b41f078404f10eaab61b8f21964864 | |
parent | c43d614f896685e98c5f470015f9ba9176c9b601 (diff) | |
download | upstream-371c7008105ac860bb7ccfe29c03f69a14d5811f.tar.gz upstream-371c7008105ac860bb7ccfe29c03f69a14d5811f.tar.bz2 upstream-371c7008105ac860bb7ccfe29c03f69a14d5811f.zip |
include/image.mk: add a target for generating sysupgrade tar files for nand
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 41127
-rw-r--r-- | include/image.mk | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/image.mk b/include/image.mk index 53180e43df..ddf19dd4b9 100644 --- a/include/image.mk +++ b/include/image.mk @@ -129,6 +129,20 @@ ifneq ($(CONFIG_TARGET_ROOTFS_SQUASHFS),) endef endif +# $(1): Board name (small caps) +# $(2): kernel image +# $(3): rootfs image +ifneq ($(CONFIG_NAND_SUPPORT),) + define Image/Build/SysupgradeNAND + mkdir -p $(KDIR_TMP)/sysupgrade-$(1)/ + echo "BOARD=$(1)" > $(KDIR_TMP)/sysupgrade-$(1)/CONTROL + $(CP) $(2) $(KDIR_TMP)/sysupgrade-$(1)/kernel + $(CP) $(3) $(KDIR_TMP)/sysupgrade-$(1)/root + (cd $(KDIR_TMP); $(TAR) cvzf \ + $(call imgname,ubi,$(1))-sysupgrade.tgz sysupgrade-$(1)) + endef +endif + ifneq ($(CONFIG_TARGET_ROOTFS_UBIFS),) define Image/mkfs/ubifs/generate $(CP) ./ubinize$(1).cfg $(KDIR) |