Use a condition to ensure this symbol is not accessed in the EFI app.

Signed-off-by: Simon Glass <[email protected]>
---

 boot/vbe_common.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/boot/vbe_common.c b/boot/vbe_common.c
index a86986d86e9..f9368a6a9ab 100644
--- a/boot/vbe_common.c
+++ b/boot/vbe_common.c
@@ -174,7 +174,7 @@ int vbe_read_fit(struct udevice *blk, ulong area_offset, 
ulong area_size,
         * external data, so this is quite small, perhaps a few KB.
         */
        if (IS_ENABLED(CONFIG_SANDBOX)) {
-               addr = CONFIG_VAL(TEXT_BASE);
+               addr = IF_ENABLED_INT(CONFIG_SANDBOX, CONFIG_VAL(TEXT_BASE));
                buf = map_sysmem(addr, size);
        } else {
                buf = malloc(aligned_size);
-- 
2.43.0

Reply via email to