From 785fef108ebd940aeabe7e5c2d6d5f54f98e6146 Mon Sep 17 00:00:00 2001 From: Peter Korsgaard Date: Mon, 20 Sep 2010 16:19:26 +0200 Subject: squashfs: bump 4.x, add lzo support We'll need libattr/xz packages in BR to enable support for those. Signed-off-by: Peter Korsgaard --- fs/squashfs/Config.in | 17 ++++++++++++++++- fs/squashfs/squashfs.mk | 7 +++++++ 2 files changed, 23 insertions(+), 1 deletion(-) (limited to 'fs') diff --git a/fs/squashfs/Config.in b/fs/squashfs/Config.in index bcc93b925..20aac085d 100644 --- a/fs/squashfs/Config.in +++ b/fs/squashfs/Config.in @@ -19,5 +19,20 @@ config BR2_TARGET_ROOTFS_SQUASHFS3 bool "3.x" endchoice -endif +choice + prompt "Compression algorithm" + default BR2_TARGET_ROOTFS_SQUASHFS4_GZIP + depends on BR2_TARGET_ROOTFS_SQUASHFS4 + help + Select the squashfs compression algorithm to use when + generating the filesystem. + +config BR2_TARGET_ROOTFS_SQUASHFS4_GZIP + bool "gzip" + +config BR2_TARGET_ROOTFS_SQUASHFS4_LZO + bool "lzo" + +endchoice +endif diff --git a/fs/squashfs/squashfs.mk b/fs/squashfs/squashfs.mk index aae22b6fd..311a3ee1e 100644 --- a/fs/squashfs/squashfs.mk +++ b/fs/squashfs/squashfs.mk @@ -6,6 +6,13 @@ ifeq ($(BR2_TARGET_ROOTFS_SQUASHFS4),y) ROOTFS_SQUASHFS_DEPENDENCIES = host-squashfs + +ifeq ($(BR2_TARGET_ROOTFS_SQUASHFS4_LZO),y) +ROOTFS_SQUASHFS_ARGS += -comp lzo +else +ROOTFS_SQUASHFS_ARGS += -comp gzip +endif + else ROOTFS_SQUASHFS_DEPENDENCIES = host-squashfs3 -- cgit v1.2.3