Commit b04816f0 authored by Adrian Bunk's avatar Adrian Bunk Committed by Linus Torvalds

[PATCH] select ZLIB_{IN,DE}FLATE

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.
parent 0048edcd
...@@ -143,6 +143,8 @@ config CRYPTO_CAST6 ...@@ -143,6 +143,8 @@ config CRYPTO_CAST6
config CRYPTO_DEFLATE config CRYPTO_DEFLATE
tristate "Deflate compression algorithm" tristate "Deflate compression algorithm"
depends on CRYPTO depends on CRYPTO
select ZLIB_INFLATE
select ZLIB_DEFLATE
help help
This is the Deflate algorithm (RFC1951), specified for use in This is the Deflate algorithm (RFC1951), specified for use in
IPSec with the IPCOMP protocol (RFC3173, RFC2394). IPSec with the IPCOMP protocol (RFC3173, RFC2394).
......
...@@ -2268,6 +2268,8 @@ config PPP_SYNC_TTY ...@@ -2268,6 +2268,8 @@ config PPP_SYNC_TTY
config PPP_DEFLATE config PPP_DEFLATE
tristate "PPP Deflate compression" tristate "PPP Deflate compression"
depends on PPP depends on PPP
select ZLIB_INFLATE
select ZLIB_DEFLATE
---help--- ---help---
Support for the Deflate compression method for PPP, which uses the Support for the Deflate compression method for PPP, which uses the
Deflate algorithm (the same algorithm that gzip uses) to compress Deflate algorithm (the same algorithm that gzip uses) to compress
......
...@@ -496,6 +496,7 @@ config JOLIET ...@@ -496,6 +496,7 @@ config JOLIET
config ZISOFS config ZISOFS
bool "Transparent decompression extension" bool "Transparent decompression extension"
depends on ISO9660_FS depends on ISO9660_FS
select ZLIB_INFLATE
help help
This is a Linux-specific extension to RockRidge which lets you store This is a Linux-specific extension to RockRidge which lets you store
data in compressed form on a CD-ROM and have it transparently data in compressed form on a CD-ROM and have it transparently
...@@ -1047,6 +1048,8 @@ config JFFS2_FS ...@@ -1047,6 +1048,8 @@ config JFFS2_FS
tristate "Journalling Flash File System v2 (JFFS2) support" tristate "Journalling Flash File System v2 (JFFS2) support"
depends on MTD depends on MTD
select CRC32 select CRC32
select ZLIB_INFLATE
select ZLIB_DEFLATE
help help
JFFS2 is the second generation of the Journalling Flash File System JFFS2 is the second generation of the Journalling Flash File System
for use on diskless embedded devices. It provides improved wear for use on diskless embedded devices. It provides improved wear
...@@ -1092,6 +1095,7 @@ config JFFS2_FS_NAND ...@@ -1092,6 +1095,7 @@ config JFFS2_FS_NAND
config CRAMFS config CRAMFS
tristate "Compressed ROM file system support" tristate "Compressed ROM file system support"
select ZLIB_INFLATE
help help
Saying Y here includes support for CramFs (Compressed ROM File Saying Y here includes support for CramFs (Compressed ROM File
System). CramFs is designed to be a simple, small, and compressed System). CramFs is designed to be a simple, small, and compressed
......
...@@ -36,6 +36,7 @@ config BINFMT_FLAT ...@@ -36,6 +36,7 @@ config BINFMT_FLAT
config BINFMT_ZFLAT config BINFMT_ZFLAT
bool "Enable ZFLAT support" bool "Enable ZFLAT support"
depends on BINFMT_FLAT depends on BINFMT_FLAT
select ZLIB_INFLATE
help help
Support FLAT format compressed binaries Support FLAT format compressed binaries
......
...@@ -13,18 +13,13 @@ config CRC32 ...@@ -13,18 +13,13 @@ config CRC32
require M here. require M here.
# #
# Do we need the compression support? # compression support is select'ed if needed
# #
config ZLIB_INFLATE config ZLIB_INFLATE
tristate 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 config ZLIB_DEFLATE
tristate 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 endmenu
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment