diff options
author | Manoj Sai <abbaraju.manojsai@amarulasolutions.com> | 2023-09-18 00:56:26 +0530 |
---|---|---|
committer | Kever Yang <kever.yang@rock-chips.com> | 2023-10-07 16:49:41 +0800 |
commit | a1b7fd7f0af2bf342ec4899be3dda72e02d29c1e (patch) | |
tree | b1782241ba93fdfc08b3a5778542664c94bc8c2a /include/spl.h | |
parent | ce6ab56401c6f91c77bdadd3128df94b2e3f046e (diff) |
spl: fit: support for booting a LZMA-compressed U-boot binary
If LZMA Compression support is enabled, LZMA compressed U-Boot
binary will be placed at a specified RAM location which is
defined at CONFIG_SYS_LOAD_ADDR and will be assigned as the
source address.
image_decomp() function, will decompress the LZMA compressed
U-Boot binary which is placed at source address(CONFIG_SYS_LOAD_ADDR)
to the default CONFIG_SYS_TEXT_BASE location.
spl_load_fit_image function will load the decompressed U-Boot
binary, which is placed at the CONFIG_SYS_TEXT_BASE location.
Signed-off-by: Manoj Sai <abbaraju.manojsai@amarulasolutions.com>
Signed-off-by: Suniel Mahesh <sunil@amarulasolutions.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'include/spl.h')
-rw-r--r-- | include/spl.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/spl.h b/include/spl.h index 320ed94273..f62f385afa 100644 --- a/include/spl.h +++ b/include/spl.h @@ -905,6 +905,6 @@ void spl_save_restore_data(void); */ static inline bool spl_decompression_enabled(void) { - return IS_ENABLED(CONFIG_SPL_GZIP); + return IS_ENABLED(CONFIG_SPL_GZIP) || IS_ENABLED(CONFIG_SPL_LZMA); } #endif |