diff mbox series

[v2,5/8] spl: binman: Add config options for binman symbols in VPL

Message ID 20220618121316.12061-6-alpernebiyasak@gmail.com
State Accepted
Commit 3a7d32787602a54486856e8392ba202b56ede3c7
Delegated to: Simon Glass
Headers show
Series spl: binman: Fixes for BINMAN_SYMBOLS | expand

Commit Message

Alper Nebi Yasak June 18, 2022, 12:13 p.m. UTC
The SPL code declares binman symbols for U-Boot phases depending on
CONFIG_IS_ENABLED(BINMAN_UBOOT_SYMBOLS). This config exists for SPL and
TPL, also add a version for VPL.

Signed-off-by: Alper Nebi Yasak <alpernebiyasak@gmail.com>
---

Changes in v2:
- Update VPL configs for the new BINMAN_UBOOT_SYMBOLS

 common/spl/Kconfig.vpl | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

Comments

Simon Glass June 28, 2022, 1:37 p.m. UTC | #1
The SPL code declares binman symbols for U-Boot phases depending on
CONFIG_IS_ENABLED(BINMAN_UBOOT_SYMBOLS). This config exists for SPL and
TPL, also add a version for VPL.

Signed-off-by: Alper Nebi Yasak <alpernebiyasak@gmail.com>
---

Changes in v2:
- Update VPL configs for the new BINMAN_UBOOT_SYMBOLS

 common/spl/Kconfig.vpl | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

Applied to u-boot-dm, thanks!
diff mbox series

Patch

diff --git a/common/spl/Kconfig.vpl b/common/spl/Kconfig.vpl
index ba1ea6075b94..daec0bb7bfff 100644
--- a/common/spl/Kconfig.vpl
+++ b/common/spl/Kconfig.vpl
@@ -198,4 +198,28 @@  config VPL_TEXT_BASE
 	help
 	  The address in memory that VPL will be running from.
 
+config VPL_BINMAN_SYMBOLS
+	bool "Declare binman symbols in VPL"
+	depends on VPL_FRAMEWORK && BINMAN
+	default y
+	help
+	  This enables use of symbols in VPL which refer to other entries in
+	  the same binman image as the VPL. These can be declared with the
+	  binman_sym_declare(type, entry, prop) macro and accessed by the
+	  binman_sym(type, entry, prop) macro defined in binman_sym.h.
+
+	  See tools/binman/binman.rst for a detailed explanation.
+
+config VPL_BINMAN_UBOOT_SYMBOLS
+	bool "Declare binman symbols for U-Boot phases in VPL"
+	depends on VPL_BINMAN_SYMBOLS
+	default y
+	help
+	  This enables use of symbols in VPL which refer to U-Boot phases,
+	  enabling VPL to obtain the location and size of its next phase simply
+	  by calling spl_get_image_pos() and spl_get_image_size().
+
+	  For this to work, you must have all U-Boot phases in the same binman
+	  image, so binman can update VPL with the locations of everything.
+
 endmenu