]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] select ZLIB_{IN,DE}FLATE
authorAdrian Bunk <bunk@fs.tum.de>
Sat, 27 Sep 2003 02:40:51 +0000 (19:40 -0700)
committerLinus Torvalds <torvalds@home.osdl.org>
Sat, 27 Sep 2003 02:40:51 +0000 (19:40 -0700)
Similar to the patch Brian Gerst sent for CRC32, this patch changes
ZLIB_{IN,DE}FLATE to be select'ed.

The dependencies are much better maintainable that way.

crypto/Kconfig
drivers/net/Kconfig
fs/Kconfig
fs/Kconfig.binfmt
lib/Kconfig

index 4257a428e3360173332e755478e0bf0c0f58361f..5c90be225882c63b155f4da742bc5826ec19c7d3 100644 (file)
@@ -143,6 +143,8 @@ config CRYPTO_CAST6
 config CRYPTO_DEFLATE
        tristate "Deflate compression algorithm"
        depends on CRYPTO
+       select ZLIB_INFLATE
+       select ZLIB_DEFLATE
        help
          This is the Deflate algorithm (RFC1951), specified for use in
          IPSec with the IPCOMP protocol (RFC3173, RFC2394).
index a1b13141e085942735bf5a1f11323ac0160858a6..19c6d8e7aceb5a84f67a0821035ed91dbc1a9d93 100644 (file)
@@ -2268,6 +2268,8 @@ config PPP_SYNC_TTY
 config PPP_DEFLATE
        tristate "PPP Deflate compression"
        depends on PPP
+       select ZLIB_INFLATE
+       select ZLIB_DEFLATE
        ---help---
          Support for the Deflate compression method for PPP, which uses the
          Deflate algorithm (the same algorithm that gzip uses) to compress
index 9efa0cd3cf44744dba232c9fbe3678ba450587b7..b8292d75f27629db067619d750f11a881e050240 100644 (file)
@@ -496,6 +496,7 @@ config JOLIET
 config ZISOFS
        bool "Transparent decompression extension"
        depends on ISO9660_FS
+       select ZLIB_INFLATE
        help
          This is a Linux-specific extension to RockRidge which lets you store
          data in compressed form on a CD-ROM and have it transparently
@@ -1047,6 +1048,8 @@ config JFFS2_FS
        tristate "Journalling Flash File System v2 (JFFS2) support"
        depends on MTD
        select CRC32
+       select ZLIB_INFLATE
+       select ZLIB_DEFLATE
        help
          JFFS2 is the second generation of the Journalling Flash File System
          for use on diskless embedded devices. It provides improved wear
@@ -1092,6 +1095,7 @@ config JFFS2_FS_NAND
 
 config CRAMFS
        tristate "Compressed ROM file system support"
+       select ZLIB_INFLATE
        help
          Saying Y here includes support for CramFs (Compressed ROM File
          System).  CramFs is designed to be a simple, small, and compressed
index d6d32c87b1c3ce61d18d1a341402cbec52e0fe2e..7e17bed7ae1ec18fe6b15a7f2e7b290dc4c6b0d9 100644 (file)
@@ -36,6 +36,7 @@ config BINFMT_FLAT
 config BINFMT_ZFLAT
        bool "Enable ZFLAT support"
        depends on BINFMT_FLAT
+       select ZLIB_INFLATE
        help
          Support FLAT format compressed binaries
 
index 1203bd92136c703ebc8a891b797e3556c741bd0a..e07caab6d649eef69888518061800755bdead55d 100644 (file)
@@ -13,18 +13,13 @@ config CRC32
          require M here.
 
 #
-# Do we need the compression support?
+# compression support is select'ed if needed
 #
 config ZLIB_INFLATE
        tristate
-       default y if CRAMFS=y || PPP_DEFLATE=y || JFFS2_FS=y || ZISOFS_FS=y || BINFMT_ZFLAT=y || CRYPTO_DEFLATE=y
-       default m if CRAMFS=m || PPP_DEFLATE=m || JFFS2_FS=m || ZISOFS_FS=m || BINFMT_ZFLAT=m || CRYPTO_DEFLATE=m
 
 config ZLIB_DEFLATE
        tristate
-       default m if PPP_DEFLATE!=y && JFFS2_FS!=y && CRYPTO_DEFLATE!=y && \
-               (PPP_DEFLATE=m || JFFS2_FS=m || CRYPTO_DEFLATE=m)
-       default y if PPP_DEFLATE=y || JFFS2_FS=y || CRYPTO_DEFLATE=y
 
 endmenu