From ed4ca35a1a5996569b1a1d769cb080c5f1fd62c6 Mon Sep 17 00:00:00 2001 From: Peter Korsgaard Date: Mon, 20 Sep 2010 22:05:39 +0200 Subject: squashfs: add lzma support And try to select a sane default compression algorithm. Signed-off-by: Peter Korsgaard --- fs/squashfs/Config.in | 3 +++ fs/squashfs/squashfs.mk | 4 ++++ 2 files changed, 7 insertions(+) (limited to 'fs') diff --git a/fs/squashfs/Config.in b/fs/squashfs/Config.in index 20aac085d..85416becb 100644 --- a/fs/squashfs/Config.in +++ b/fs/squashfs/Config.in @@ -31,6 +31,9 @@ choice config BR2_TARGET_ROOTFS_SQUASHFS4_GZIP bool "gzip" +config BR2_TARGET_ROOTFS_SQUASHFS4_LZMA + bool "lzma" + config BR2_TARGET_ROOTFS_SQUASHFS4_LZO bool "lzo" diff --git a/fs/squashfs/squashfs.mk b/fs/squashfs/squashfs.mk index 311a3ee1e..7efe979e8 100644 --- a/fs/squashfs/squashfs.mk +++ b/fs/squashfs/squashfs.mk @@ -10,8 +10,12 @@ ROOTFS_SQUASHFS_DEPENDENCIES = host-squashfs ifeq ($(BR2_TARGET_ROOTFS_SQUASHFS4_LZO),y) ROOTFS_SQUASHFS_ARGS += -comp lzo else +ifeq ($(BR2_TARGET_ROOTFS_SQUASHFS4_LZMA),y) +ROOTFS_SQUASHFS_ARGS += -comp lzma +else ROOTFS_SQUASHFS_ARGS += -comp gzip endif +endif else ROOTFS_SQUASHFS_DEPENDENCIES = host-squashfs3 -- cgit v1.2.3