When VBE is in use, the size of each phase is obtained by reading it
from a FIT. Avoid using binman symbols unless necessary, i.e. in TPL.

Signed-off-by: Simon Glass <s...@chromium.org>
---

(no changes since v1)

 common/spl/spl.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/common/spl/spl.c b/common/spl/spl.c
index 6b75910e243..e7157df1ff9 100644
--- a/common/spl/spl.c
+++ b/common/spl/spl.c
@@ -200,6 +200,8 @@ ulong spl_get_image_size(void)
 #ifdef CONFIG_VPL
        if (xpl_next_phase() == PHASE_VPL)
                return binman_sym(ulong, u_boot_vpl_any, size);
+
+       return 0;       /* VBE handles this */
 #endif
        return xpl_next_phase() == PHASE_SPL ?
                binman_sym(ulong, u_boot_spl_any, size) :
-- 
2.43.0

Reply via email to