lib: fdt: Allow LZO and GZIP DT compression in U-Boot
Add required Kconfig symbols, Makefile bits and macro fixes in a few places to support LZO and DT compression in U-Boot. This can save a lot of space with multi-DTB fitImages. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org> Cc: Simon Glass <sjg@chromium.org> Cc: Tom Rini <trini@konsulko.com> Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
This commit is contained in:
13
lib/Kconfig
13
lib/Kconfig
@@ -301,6 +301,19 @@ config LZO
|
||||
help
|
||||
This enables support for LZO compression algorithm.r
|
||||
|
||||
config GZIP
|
||||
bool "Enable gzip decompression support for SPL build"
|
||||
select ZLIB
|
||||
default y
|
||||
help
|
||||
This enables support for GZIP compression algorithm.
|
||||
|
||||
config ZLIB
|
||||
bool
|
||||
default y
|
||||
help
|
||||
This enables ZLIB compression lib.
|
||||
|
||||
config SPL_LZ4
|
||||
bool "Enable LZ4 decompression support in SPL"
|
||||
help
|
||||
|
||||
@@ -1182,7 +1182,7 @@ int fdtdec_setup_memory_banksize(void)
|
||||
CONFIG_IS_ENABLED(MULTI_DTB_FIT_LZO)
|
||||
static int uncompress_blob(const void *src, ulong sz_src, void **dstp)
|
||||
{
|
||||
size_t sz_out = CONFIG_SPL_MULTI_DTB_FIT_UNCOMPRESS_SZ;
|
||||
size_t sz_out = CONFIG_VAL(MULTI_DTB_FIT_UNCOMPRESS_SZ);
|
||||
bool gzip = 0, lzo = 0;
|
||||
ulong sz_in = sz_src;
|
||||
void *dst;
|
||||
|
||||
Reference in New Issue
Block a user