efi: app: Add a simple-framebuffer node if enabled

The EFI app cannot make the EFI GOP available to Linux directly, since
it calls exit-boot-services before booting Linux. The easiest way to
provide an early console is with the simple-framebuffer feature. Add
this node to the devicetree if the feature is enabled.

Co-developed-by: Claude <noreply@anthropic.com>
Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2025-08-27 15:46:05 -06:00
parent 8132f56189
commit 6e9071ba14

View File

@@ -348,9 +348,11 @@ int ft_system_setup(void *fdt, struct bd_info *bd)
return ret;
}
ret = fdt_simplefb_add_node(fdt);
if (ret)
log_warning("failed to set up simplefb\n");
if (IS_ENABLED(CONFIG_FDT_SIMPLEFB)) {
ret = fdt_simplefb_add_node(fdt);
if (ret)
log_warning("failed to set up simplefb\n");
}
free(map);