Commit 5419651b authored by Gustavo Zacarias's avatar Gustavo Zacarias Committed by Peter Korsgaard
Browse files

fs/common: add support for LZO and XZ compression methods



Add support for LZO and XZ compression methods to cpio, ext2, tar and
ubifs filesystem targets.

Signed-off-by: default avatarGustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: default avatarPeter Korsgaard <jacmet@sunsite.dk>
parent 5b935275
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -39,7 +39,7 @@ ROOTFS_DEVICE_TABLES = $(call qstrip,$(BR2_ROOTFS_DEVICE_TABLE) \
define ROOTFS_TARGET_INTERNAL

# extra deps
ROOTFS_$(2)_DEPENDENCIES += host-fakeroot host-makedevs $$(if $$(BR2_TARGET_ROOTFS_$(2)_LZMA),host-lzma)
ROOTFS_$(2)_DEPENDENCIES += host-fakeroot host-makedevs $$(if $$(BR2_TARGET_ROOTFS_$(2)_LZMA),host-lzma) $$(if $$(BR2_TARGET_ROOTFS_$(2)_LZO),host-lzop) $$(if $$(BR2_TARGET_ROOTFS_$(2)_XZ),host-xz)

$$(BINARIES_DIR)/rootfs.$(1): $$(ROOTFS_$(2)_DEPENDENCIES)
	@$$(call MESSAGE,"Generating root filesystem image rootfs.$(1)")
@@ -70,6 +70,12 @@ endif
ifeq ($$(BR2_TARGET_ROOTFS_$(2)_LZMA),y)
	$$(LZMA) -9 -c $$@ > $$@.lzma
endif
ifeq ($$(BR2_TARGET_ROOTFS_$(2)_LZO),y)
	$$(LZOP) -9 -c $$@ > $$@.lzo
endif
ifeq ($$(BR2_TARGET_ROOTFS_$(2)_XZ),y)
	$(XZ) -9 -C crc32 -c $$@ > $$@.xz
endif

rootfs-$(1)-show-depends:
	@echo $$(ROOTFS_$(2)_DEPENDENCIES)
+14 −4
Original line number Diff line number Diff line
@@ -35,5 +35,15 @@ config BR2_TARGET_ROOTFS_CPIO_LZMA
        help
          Do compress the cpio filesystem with lzma.

config BR2_TARGET_ROOTFS_CPIO_LZO
	bool "lzo"
	help
	  Do compress the cpio filesystem with lzop.

config BR2_TARGET_ROOTFS_CPIO_XZ
	bool "xz"
	help
	  Do compress the cpio filesystem with xz.

endchoice
+10 −0
Original line number Diff line number Diff line
@@ -79,6 +79,16 @@ config BR2_TARGET_ROOTFS_EXT2_LZMA
	help
	  Do compress the ext2/3/4 filesystem with lzma.

config BR2_TARGET_ROOTFS_EXT2_LZO
	bool "lzo"
	help
	  Do compress the ext2 filesystem with lzop.

config BR2_TARGET_ROOTFS_EXT2_XZ
	bool "xz"
	help
	  Do compress the ext2 filesystem with xz.

endchoice

endif # BR2_TARGET_ROOTFS_EXT2
+14 −4
Original line number Diff line number Diff line
@@ -31,6 +31,16 @@ config BR2_TARGET_ROOTFS_TAR_LZMA
	help
	  Do compress the tarball with lzma.

config BR2_TARGET_ROOTFS_TAR_LZO
	bool "lzo"
	help
	  Do compress the tarball with lzop.

config BR2_TARGET_ROOTFS_TAR_XZ
	bool "xz"
	help
	  Do compress the tarball with xz.

endchoice

config BR2_TARGET_ROOTFS_TAR_OPTIONS
+10 −0
Original line number Diff line number Diff line
@@ -75,6 +75,16 @@ config BR2_TARGET_ROOTFS_UBIFS_LZMA
	help
	  Do compress the ubifs filesystem with lzma.

config BR2_TARGET_ROOTFS_UBIFS_LZO
	bool "lzo"
	help
	  Do compress the ubifs filesystem with lzop.

config BR2_TARGET_ROOTFS_UBIFS_XZ
	bool "xz"
	help
	  Do compress the ubifs filesystem with xz.

endchoice

config BR2_TARGET_ROOTFS_UBI