From 8509f22aacf04ae892e28c2df3a79c1d72c39c25 Mon Sep 17 00:00:00 2001 From: Marek BehĂșn Date: Mon, 29 Apr 2019 22:40:44 +0200 Subject: lib: add Zstandard decompression support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add the zstd library from Linux kernel (only decompression support). There are minimal changes to build with U-Boot, otherwise the files are identical to Linux commit dc35da16 from March 2018, the files had not been touched since in kernel. Also SPDX lincese tags were added. Signed-off-by: Marek BehĂșn --- lib/Kconfig | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'lib/Kconfig') diff --git a/lib/Kconfig b/lib/Kconfig index 1ed69fafc7..416e63c1c7 100644 --- a/lib/Kconfig +++ b/lib/Kconfig @@ -374,6 +374,12 @@ config ZLIB help This enables ZLIB compression lib. +config ZSTD + bool "Enable Zstandard decompression support" + select XXHASH + help + This enables Zstandard decompression library. + config SPL_LZ4 bool "Enable LZ4 decompression support in SPL" help @@ -398,6 +404,12 @@ config SPL_ZLIB help This enables compression lib for SPL boot. +config SPL_ZSTD + bool "Enable Zstandard decompression support in SPL" + select XXHASH + help + This enables Zstandard decompression library in the SPL. + endmenu config ERRNO_STR -- cgit v1.2.3