From e7aa25293860087158f652c07be7b30299410b8b Mon Sep 17 00:00:00 2001 From: Jean-Christophe PLAGNIOL-VILLARD Date: Sun, 8 Jan 2012 14:16:36 +0800 Subject: [PATCH] uncompress: add config to disable it Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- commands/Kconfig | 1 + lib/Kconfig | 5 +++++ lib/Makefile | 2 +- lib/lzo/Kconfig | 2 +- 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/commands/Kconfig b/commands/Kconfig index 1d080e302..b0037863f 100644 --- a/commands/Kconfig +++ b/commands/Kconfig @@ -310,6 +310,7 @@ config CMD_BOOTM tristate default y select CRC32 + select UNCOMPRESS prompt "bootm" config CMD_BOOTM_SHOW_TYPE diff --git a/lib/Kconfig b/lib/Kconfig index 3339a9aa2..0bbd20677 100644 --- a/lib/Kconfig +++ b/lib/Kconfig @@ -1,9 +1,14 @@ menu "Library routines" +config UNCOMPRESS + bool + config ZLIB bool "include gzip uncompression support" + select UNCOMPRESS config BZLIB bool "include bzip2 uncompression support" + select UNCOMPRESS config GENERIC_FIND_NEXT_BIT def_bool n diff --git a/lib/Makefile b/lib/Makefile index 7799e69d8..c273c58cf 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -30,6 +30,6 @@ obj-y += show_progress.o obj-$(CONFIG_LZO_DECOMPRESS) += decompress_unlzo.o obj-$(CONFIG_PROCESS_ESCAPE_SEQUENCE) += process_escape_sequence.o obj-$(CONFIG_FDT) += fdt/ -obj-y += uncompress.o +obj-$(CONFIG_UNCOMPRESS) += uncompress.o obj-$(CONFIG_BCH) += bch.o obj-$(CONFIG_BITREV) += bitrev.o diff --git a/lib/lzo/Kconfig b/lib/lzo/Kconfig index 03c335089..9276b2128 100644 --- a/lib/lzo/Kconfig +++ b/lib/lzo/Kconfig @@ -1,6 +1,6 @@ config LZO_DECOMPRESS bool "include lzo uncompression support" - bool + select UNCOMPRESS config LZO_COMPRESS bool