Skip to contentSkip to conversation

lzma, take two.

Buildroot Thomas Lundquist 1 participant 1 message Oct 12, 2006

lore
Share & tools
lore
#0 lore raw

Just resending the fixed (and verified) lzma patches.

Thomas.
-------------- next part --------------

ext2/Config.in +7 -0
Index: target/ext2/Config.in
===================================================================
@@ -34,6 +34,13 @@
 	depends on 	BR2_TARGET_ROOTFS_EXT2
 	default n
 
+config BR2_TARGET_ROOTFS_EXT2_LZMA
+	bool "lzma the output file" 
+	depends on	BR2_TARGET_ROOTFS_EXT2 
+	select		BR2_PACKAGE_LZMA_HOST
+	default n
+
+
 config BR2_TARGET_ROOTFS_EXT2_COPYTO
 	string "also copy the image to..."
 	depends on 	BR2_TARGET_ROOTFS_EXT2
ext2/ext2root.mk +7 -0
Index: target/ext2/ext2root.mk
===================================================================
@@ -66,6 +66,10 @@
 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
 	- at find $(TARGET_DIR) -type f -perm +111 | xargs $(STRIP) 2>/dev/null || true;
 	@rm -rf $(TARGET_DIR)/usr/man
@@ -102,6 +106,9 @@
 $(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
 
lzma/lzma.mk +60 -24

126 lines not on this page · raw message

lzma/Config.in +12 -4
Index: package/lzma/Config.in
===================================================================
@@ -1,14 +1,22 @@
-config BR2_PACKAGE_LZMA
-	bool "lzma"
+config BR2_PACKAGE_LZMA_TARGET
+	bool "Install lzma for the target system"
 	default n
 	help
-	  Compression utility.
+	  lzma utils on the target
 
 	  http://tukaani.org/lzma/
 
 config BR2_PACKAGE_LZMA_TARGET_HEADERS
 	bool "lzma headers in target"
 	default n
-	depends on BR2_PACKAGE_LZMA
+	depends on BR2_PACKAGE_LZMA_TARGET
 	help
 	  Put headers files in the target.
+
+config BR2_PACKAGE_LZMA_HOST
+	bool "Install lzma for the host/build system"
+	default n
+	help
+	  lzma utils on the host
+
+	  http://tukaani.org/lzma/