include/image.mk: add a target for generating sysupgrade tar files for nand
Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 41127
This commit is contained in:
parent
c43d614f89
commit
371c700810
1 changed files with 14 additions and 0 deletions
|
@ -129,6 +129,20 @@ ifneq ($(CONFIG_TARGET_ROOTFS_SQUASHFS),)
|
||||||
endef
|
endef
|
||||||
endif
|
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),)
|
ifneq ($(CONFIG_TARGET_ROOTFS_UBIFS),)
|
||||||
define Image/mkfs/ubifs/generate
|
define Image/mkfs/ubifs/generate
|
||||||
$(CP) ./ubinize$(1).cfg $(KDIR)
|
$(CP) ./ubinize$(1).cfg $(KDIR)
|
||||||
|
|
Loading…
Reference in a new issue