cmd: zip: automatically pull in gzip()
authorMichael Walle <michael@walle.cc>
Fri, 22 May 2020 12:07:36 +0000 (14:07 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 25 May 2020 15:54:53 +0000 (11:54 -0400)
Move the CONFIG_GZIP_COMPRESSED from a config.h macro to a Kconfig menu
item. It is not selectable by a user because there is no reason to do
so. Instead it will be automatically selected by the stuff which uses
gzip(), like the zip command.

Remove it from the config_whitelist.txt. Also remove
CONFIG_GZIP_COMPRESS_DEF_SZ as this was never used on any board. The
default seems to be sane, otherwise it should be added as a Kconfig
option.

Signed-off-by: Michael Walle <michael@walle.cc>
Reviewed-by: Simon Glass <sjg@chromium.org>
cmd/Kconfig
lib/Kconfig
scripts/config_whitelist.txt

index f4eb575..153864c 100644 (file)
@@ -816,6 +816,7 @@ config CMD_UNZIP
 
 config CMD_ZIP
        bool "zip"
+       select GZIP_COMPRESSED
        help
          Compress a memory region with zlib deflate method.
 
index c3f694a..f18bf37 100644 (file)
@@ -424,6 +424,10 @@ config GZIP
        help
          This enables support for GZIP compression algorithm.
 
+config GZIP_COMPRESSED
+       bool
+       select ZLIB
+
 config BZIP2
        bool "Enable bzip2 decompression support"
        help
index 5566de9..61d025f 100644 (file)
@@ -643,8 +643,6 @@ CONFIG_GPIO_LED_STUBS
 CONFIG_GREEN_LED
 CONFIG_GURNARD_FPGA
 CONFIG_GURNARD_SPLASH
-CONFIG_GZIP_COMPRESSED
-CONFIG_GZIP_COMPRESS_DEF_SZ
 CONFIG_G_DNL_THOR_PRODUCT_NUM
 CONFIG_G_DNL_THOR_VENDOR_NUM
 CONFIG_G_DNL_UMS_PRODUCT_NUM