vbe: Avoid accessing TEXT_BASE if undefined

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

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2025-05-17 12:24:16 +02:00
parent 68ec6d6b71
commit ef9851d8f9

View File

@@ -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);