Message ID | 20200522120738.13376-3-michael@walle.cc |
---|---|
State | Accepted |
Commit | eff5a54758080f842783c4e5334e0675ea3cd317 |
Headers | show |
Series | cmd: {zip, unzip} fixes | expand |
On Fri, 22 May 2020 at 06:07, Michael Walle <michael at walle.cc> wrote: > > 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 at walle.cc> > --- > cmd/Kconfig | 1 + > lib/Kconfig | 4 ++++ > scripts/config_whitelist.txt | 2 -- > 3 files changed, 5 insertions(+), 2 deletions(-) Reviewed-by: Simon Glass <sjg at chromium.org>
On Fri, May 22, 2020 at 02:07:36PM +0200, Michael Walle wrote: > 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 at walle.cc> > Reviewed-by: Simon Glass <sjg at chromium.org> Applied to u-boot/master, thanks!
diff --git a/cmd/Kconfig b/cmd/Kconfig index f4eb575b6e..153864c587 100644 --- a/cmd/Kconfig +++ b/cmd/Kconfig @@ -816,6 +816,7 @@ config CMD_UNZIP config CMD_ZIP bool "zip" + select GZIP_COMPRESSED help Compress a memory region with zlib deflate method. diff --git a/lib/Kconfig b/lib/Kconfig index c3f694afc0..f18bf3778b 100644 --- a/lib/Kconfig +++ b/lib/Kconfig @@ -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 diff --git a/scripts/config_whitelist.txt b/scripts/config_whitelist.txt index 3f5e6504e1..2ec0758b75 100644 --- a/scripts/config_whitelist.txt +++ b/scripts/config_whitelist.txt @@ -644,8 +644,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
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 at walle.cc> --- cmd/Kconfig | 1 + lib/Kconfig | 4 ++++ scripts/config_whitelist.txt | 2 -- 3 files changed, 5 insertions(+), 2 deletions(-)