fs/squashfs: add lz4 compression support

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
Gustavo Zacarias 2014-05-15 18:31:36 -03:00 committed by Peter Korsgaard
parent dc7e1762d0
commit 996dc12eff
2 changed files with 7 additions and 0 deletions

View File

@ -15,6 +15,9 @@ choice
config BR2_TARGET_ROOTFS_SQUASHFS4_GZIP config BR2_TARGET_ROOTFS_SQUASHFS4_GZIP
bool "gzip" bool "gzip"
config BR2_TARGET_ROOTFS_SQUASHFS4_LZ4
bool "lz4"
config BR2_TARGET_ROOTFS_SQUASHFS4_LZMA config BR2_TARGET_ROOTFS_SQUASHFS4_LZMA
bool "lzma" bool "lzma"

View File

@ -6,6 +6,9 @@
ROOTFS_SQUASHFS_DEPENDENCIES = host-squashfs ROOTFS_SQUASHFS_DEPENDENCIES = host-squashfs
ifeq ($(BR2_TARGET_ROOTFS_SQUASHFS4_LZ4),y)
ROOTFS_SQUASHFS_ARGS += -comp lz4
else
ifeq ($(BR2_TARGET_ROOTFS_SQUASHFS4_LZO),y) ifeq ($(BR2_TARGET_ROOTFS_SQUASHFS4_LZO),y)
ROOTFS_SQUASHFS_ARGS += -comp lzo ROOTFS_SQUASHFS_ARGS += -comp lzo
else else
@ -19,6 +22,7 @@ ROOTFS_SQUASHFS_ARGS += -comp gzip
endif endif
endif endif
endif endif
endif
define ROOTFS_SQUASHFS_CMD define ROOTFS_SQUASHFS_CMD
$(HOST_DIR)/usr/bin/mksquashfs $(TARGET_DIR) $@ -noappend \ $(HOST_DIR)/usr/bin/mksquashfs $(TARGET_DIR) $@ -noappend \