]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
Add version selection for the SquashFS root filesystem
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Fri, 9 Apr 2010 10:15:59 +0000 (12:15 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Fri, 9 Apr 2010 10:21:05 +0000 (12:21 +0200)
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
fs/squashfs/Config.in
fs/squashfs/squashfs.mk

index 6cc8fcae000b26b532cca2531a82340396504ea0..bcc93b9256265d47e5ce2fee5ba2627cf8b0de2e 100644 (file)
@@ -2,3 +2,22 @@ config BR2_TARGET_ROOTFS_SQUASHFS
        bool "squashfs root filesystem"
        help
          Build a squashfs root filesystem
+
+if BR2_TARGET_ROOTFS_SQUASHFS
+choice
+       prompt "SquashFS version"
+       default BR2_TARGET_ROOTFS_SQUASHFS4
+       help
+         Select the Squash filesystem version to use to generate the
+         root filesystem.
+
+config BR2_TARGET_ROOTFS_SQUASHFS4
+       bool "4.x"
+
+config BR2_TARGET_ROOTFS_SQUASHFS3
+       depends on BR2_DEPRECATED
+       bool "3.x"
+
+endchoice
+endif
+
index d72388ebf2f5419cb76ab9f6c9c1d05210f00d4c..f11ba2090032b5b2f02821eb912a8e861bfe1fb2 100644 (file)
@@ -4,7 +4,11 @@
 #
 #############################################################
 
+ifeq ($(BR2_TARGET_ROOTFS_SQUASHFS4),y)
 ROOTFS_SQUASHFS_DEPENDENCIES = host-squashfs
+else
+ROOTFS_SQUASHFS_DEPENDENCIES = host-squashfs3
+endif
 
 define ROOTFS_SQUASHFS_CMD
        $(HOST_DIR)/usr/bin/mksquashfs $(TARGET_DIR) $$@ -noappend