JFFS2/UBIFS select zlib/lzo even if compression is disabled

Alexander Beregalov a.beregalov at gmail.com
Wed Dec 3 19:41:42 EST 2008


Hi

I have found the following misbehaviour:

# CONFIG_JFFS2_COMPRESSION_OPTIONS is not set
CONFIG_JFFS2_ZLIB=y
# CONFIG_JFFS2_LZO is not set
CONFIG_JFFS2_RTIME=y
# CONFIG_JFFS2_RUBIN is not set

# CONFIG_UBIFS_FS_ADVANCED_COMPR is not set
CONFIG_UBIFS_FS_LZO=y
CONFIG_UBIFS_FS_ZLIB=y

config JFFS2_ZLIB
        bool "JFFS2 ZLIB compression support" if JFFS2_COMPRESSION_OPTIONS
        select ZLIB_INFLATE
        select ZLIB_DEFLATE
        depends on JFFS2_FS
        default y

Is it an error in kconfig scripts for a long time or should it be
described differently in Kconfig?
Something like this

config JFFS2_ZLIB
        bool "JFFS2 ZLIB compression support" if JFFS2_COMPRESSION_OPTIONS
        select ZLIB_INFLATE
        select ZLIB_DEFLATE
-        depends on JFFS2_FS
+        depends on JFFS2_FS && JFFS2_COMPRESSION_OPTIONS

But it looks ugly



More information about the linux-mtd mailing list