[PATCH 02/10] spl: Kconfig: Address support for compressed U-BOOT raw binary

Manoj Sai abbaraju.manojsai at amarulasolutions.com
Fri Jun 30 14:11:38 CEST 2023


Add the support that ,if compression support is enabled in SPL
a location needs to be defined as the source address where
compressed U-BOOT raw binary will be stored.

spl_load_fit_image function takes care that, compressed U-Boot raw
binary which is placed at this address, will be uncompressed to default
CONFIG_SYS_TEXT_BASE location.

Signed-off-by: Manoj Sai <abbaraju.manojsai at amarulasolutions.com>
Signed-off-by: Suniel Mahesh <sunil at amarulasolutions.com>
---
 common/spl/Kconfig | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/common/spl/Kconfig b/common/spl/Kconfig
index 2c042ad306..5dd1f3c469 100644
--- a/common/spl/Kconfig
+++ b/common/spl/Kconfig
@@ -1547,6 +1547,21 @@ config SPL_AT91_MCK_BYPASS
 	  The external source has to provide a stable clock on the XIN pin.
 	  If this option is disabled, the SoC expects a crystal oscillator
 	  that needs driving on both XIN and XOUT lines.
+choice
+	prompt "Location for compressed U-BOOT raw binary"
+	depends on SPL_GZIP || SPL_LZMA
+	default SPL_UBOOT_COMPRESSED_BINARY_FIT_USER_DEFINED_AREA
+
+config SPL_UBOOT_COMPRESSED_BINARY_FIT_USER_DEFINED_AREA
+	bool "compressed U-BOOT raw binary user-defined location"
+endchoice
+
+config SPL_UBOOT_COMPRESSED_BINARY_FIT_USER_DEF_ADDR
+	hex "Address of memory where compressed U-BOOT raw binary is stored"
+	depends on SPL_UBOOT_COMPRESSED_BINARY_FIT_USER_DEFINED_AREA
+	help
+	  The FIT image containing the compressed U-BOOT raw binary will be stored
+	  in an area defined at compilation time. This is the address for this area.
 endmenu
 
 config TPL
-- 
2.25.1



More information about the U-Boot mailing list