[U-Boot] [PATCH v6 07/10] lib: allow building lzo for the SPL
Jean-Jacques Hiblot
jjhiblot at ti.com
Fri Sep 15 10:57:30 UTC 2017
Signed-off-by: Jean-Jacques Hiblot <jjhiblot at ti.com>
Reviewed-by: Tom Rini <trini at konsulko.com>
Reviewed-by: Simon Glass <sjg at chromium.org>
---
lib/Kconfig | 5 +++++
lib/Makefile | 3 ++-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/lib/Kconfig b/lib/Kconfig
index 628ef8d..49f6133 100644
--- a/lib/Kconfig
+++ b/lib/Kconfig
@@ -177,6 +177,11 @@ config LZO
help
This enables support for LZO compression algorithm.r
+config SPL_LZO
+ bool "Enable LZO decompression support in SPL"
+ help
+ This enables support for LZO compression algorithm in the SPL.
+
config SPL_GZIP
bool "Enable gzip decompression support for SPL build"
select SPL_ZLIB
diff --git a/lib/Makefile b/lib/Makefile
index faf4538..87d0d53 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -10,7 +10,6 @@ ifndef CONFIG_SPL_BUILD
obj-$(CONFIG_EFI) += efi/
obj-$(CONFIG_EFI_LOADER) += efi_loader/
obj-$(CONFIG_LZMA) += lzma/
-obj-$(CONFIG_LZO) += lzo/
obj-$(CONFIG_BZIP2) += bzip2/
obj-$(CONFIG_TIZEN) += tizen/
obj-$(CONFIG_FIT) += libfdt/
@@ -51,6 +50,8 @@ obj-$(CONFIG_SHA256) += sha256.o
obj-$(CONFIG_$(SPL_)ZLIB) += zlib/
obj-$(CONFIG_$(SPL_)GZIP) += gunzip.o
+obj-$(CONFIG_$(SPL_)LZO) += lzo/
+
obj-$(CONFIG_$(SPL_TPL_)SAVEENV) += qsort.o
obj-$(CONFIG_$(SPL_TPL_)OF_LIBFDT) += libfdt/
--
1.9.1
More information about the U-Boot
mailing list