aboutsummaryrefslogtreecommitdiffstats
path: root/include/image.mk
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2007-12-28 15:46:01 +0000
committerFelix Fietkau <nbd@openwrt.org>2007-12-28 15:46:01 +0000
commitedbbf145d5150b7efaa153367d5942f05af2ba9f (patch)
tree2da39f871376d8073935e5d4d52a21bbc41209c9 /include/image.mk
parent30fe1805d529ceeb9d371c2876f81470e693157d (diff)
downloadupstream-edbbf145d5150b7efaa153367d5942f05af2ba9f.tar.gz
upstream-edbbf145d5150b7efaa153367d5942f05af2ba9f.tar.bz2
upstream-edbbf145d5150b7efaa153367d5942f05af2ba9f.zip
add cpio.gz support (patch from #2595)
SVN-Revision: 9986
Diffstat (limited to 'include/image.mk')
-rw-r--r--include/image.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/image.mk b/include/image.mk
index 47f6714d13..d7e4ccd36b 100644
--- a/include/image.mk
+++ b/include/image.mk
@@ -64,6 +64,12 @@ ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),y)
$(TAR) -zcf $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-rootfs.tgz --owner=root --group=root -C $(TARGET_DIR)/ .
endef
endif
+
+ ifeq ($(CONFIG_TARGET_ROOTFS_CPIOGZ),y)
+ define Image/mkfs/cpiogz
+ ( cd $(BUILD_DIR)/root; find . | cpio -o -H newc | gzip -9 >$(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-rootfs.cpio.gz )
+ endef
+ endif
else
define Image/BuildKernel
cp $(KDIR)/vmlinux.elf $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-vmlinux.elf
@@ -118,6 +124,7 @@ ifneq ($(IB),1)
$(call Image/mkfs/jffs2)
$(call Image/mkfs/squashfs)
$(call Image/mkfs/tgz)
+ $(call Image/mkfs/cpiogz)
$(call Image/mkfs/ext2)
$(call Image/mkfs/iso)
else
@@ -126,6 +133,7 @@ else
$(call Image/mkfs/jffs2)
$(call Image/mkfs/squashfs)
$(call Image/mkfs/tgz)
+ $(call Image/mkfs/cpiogz)
$(call Image/mkfs/ext2)
$(call Image/mkfs/iso)
endif