From a44651de6e365e0352d103e9795bfa53dcef0dae Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Sat, 4 Nov 2006 19:15:56 +0000 Subject: - Patch from Thomas Lundquist to support lzma compressed ext2 rootfs. --- target/ext2/ext2root.mk | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'target/ext2/ext2root.mk') diff --git a/target/ext2/ext2root.mk b/target/ext2/ext2root.mk index c7c7cb200..c88437f2b 100644 --- a/target/ext2/ext2root.mk +++ b/target/ext2/ext2root.mk @@ -66,6 +66,10 @@ else EXT2_TARGET := $(EXT2_BASE) endif +ifeq ($(strip $(BR2_TARGET_ROOTFS_EXT2_LZMA)),y) +EXT2_TARGET := $(EXT2_BASE).lzma +endif + $(EXT2_BASE): host-fakeroot makedevs genext2fs -@find $(TARGET_DIR) -type f -perm +111 | xargs $(STRIP) 2>/dev/null || true; @rm -rf $(TARGET_DIR)/usr/man @@ -102,6 +106,9 @@ endif $(EXT2_BASE).gz: $(EXT2_BASE) @gzip --best -fv $(EXT2_BASE) +$(EXT2_BASE).lzma: lzma-host $(EXT2_BASE) + @$(STAGING_DIR)/bin/lzma -vc $(EXT2_BASE) > $(EXT2_BASE).lzma + EXT2_COPYTO := $(strip $(subst ",,$(BR2_TARGET_ROOTFS_EXT2_COPYTO))) # " stupid syntax highlighting does not like unmatched quote from above line -- cgit v1.2.3