diff mbox series

[1/4] cmd: unzip: automatically select CONFIG_GZIP

Message ID 20200522120738.13376-2-michael@walle.cc
State Accepted
Commit 56c311bd82b5521be2f0babdab2e2dab43394401
Delegated to: Tom Rini
Headers show
Series cmd: {zip, unzip} fixes | expand

Commit Message

Michael Walle May 22, 2020, 12:07 p.m. UTC
unzip calls gzwrite() which is provided in lib/gunzip.c. Make sure it is
automatically pulled in if the user selects CMD_UNZIP.

Signed-off-by: Michael Walle <michael@walle.cc>
---
 cmd/Kconfig | 1 +
 1 file changed, 1 insertion(+)

Comments

Heinrich Schuchardt May 22, 2020, 2:57 p.m. UTC | #1
On 22.05.20 14:07, Michael Walle wrote:
> unzip calls gzwrite() which is provided in lib/gunzip.c. Make sure it is
> automatically pulled in if the user selects CMD_UNZIP.
>
> Signed-off-by: Michael Walle <michael@walle.cc>

Reviewed-by: Heinrich Schuchardt <xypron.glkp@gmx.de>

> ---
>  cmd/Kconfig | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/cmd/Kconfig b/cmd/Kconfig
> index f9be1988f6..f4eb575b6e 100644
> --- a/cmd/Kconfig
> +++ b/cmd/Kconfig
> @@ -810,6 +810,7 @@ config CMD_UNLZ4
>  config CMD_UNZIP
>  	bool "unzip"
>  	default y if CMD_BOOTI
> +	select GZIP
>  	help
>  	  Uncompress a zip-compressed memory region.
>
>
Tom Rini May 25, 2020, 5:59 p.m. UTC | #2
On Fri, May 22, 2020 at 02:07:35PM +0200, Michael Walle wrote:

> unzip calls gzwrite() which is provided in lib/gunzip.c. Make sure it is
> automatically pulled in if the user selects CMD_UNZIP.
> 
> Signed-off-by: Michael Walle <michael@walle.cc>
> Reviewed-by: Heinrich Schuchardt <xypron.glkp@gmx.de>

Applied to u-boot/master, thanks!
diff mbox series

Patch

diff --git a/cmd/Kconfig b/cmd/Kconfig
index f9be1988f6..f4eb575b6e 100644
--- a/cmd/Kconfig
+++ b/cmd/Kconfig
@@ -810,6 +810,7 @@  config CMD_UNLZ4
 config CMD_UNZIP
 	bool "unzip"
 	default y if CMD_BOOTI
+	select GZIP
 	help
 	  Uncompress a zip-compressed memory region.