From 084830e8c4ad668c168d1cbaa2acdb495fe25d81 Mon Sep 17 00:00:00 2001 From: Ram Chandra Jangir Date: Fri, 17 Apr 2020 14:39:28 +0530 Subject: [PATCH] ipq5018: Enable LZMA decompression support LZMA usually performs better than gzip in terms of compression ratio, IPQ5018 has small flash memory and hence the lzma support is enabled defining the CONFIG_LZMA define. Signed-off-by: Ram Chandra Jangir Change-Id: Ib07abe85206f011c637c61a7c00d8d3788120a41 --- configs/ipq5018_defconfig | 1 + configs/ipq5018_tiny_defconfig | 1 + lib/Kconfig | 8 ++++++++ 3 files changed, 10 insertions(+) diff --git a/configs/ipq5018_defconfig b/configs/ipq5018_defconfig index b6cd044d4e..04249e0f1c 100644 --- a/configs/ipq5018_defconfig +++ b/configs/ipq5018_defconfig @@ -318,6 +318,7 @@ CONFIG_REGEX=y # Compression Support # # CONFIG_LZ4 is not set +CONFIG_LZMA=y # CONFIG_ERRNO_STR is not set # CONFIG_UNIT_TEST is not set diff --git a/configs/ipq5018_tiny_defconfig b/configs/ipq5018_tiny_defconfig index c4ea6b4968..f788444024 100644 --- a/configs/ipq5018_tiny_defconfig +++ b/configs/ipq5018_tiny_defconfig @@ -318,6 +318,7 @@ CONFIG_REGEX=y # Compression Support # # CONFIG_LZ4 is not set +CONFIG_LZMA=y # CONFIG_ERRNO_STR is not set # CONFIG_UNIT_TEST is not set diff --git a/lib/Kconfig b/lib/Kconfig index 9d580e4115..ff53702844 100644 --- a/lib/Kconfig +++ b/lib/Kconfig @@ -127,6 +127,14 @@ config LZ4 frame format currently (2015) implemented in the Linux kernel (generated by 'lz4 -l'). The two formats are incompatible. +config LZMA + bool "Enable LZMA decompression support" + help + If this option is set, support for LZMA compressed images + is included. The LZMA algorithm can run in-place as long as the + compressed image is loaded to the end of the output buffer, and + trades high compression ratios and fairly fast decompression speed. + endmenu config ERRNO_STR