boot: Provide a Kconfig to enable faking the boot

This feature was designed for tracing but can be useful for debugging
too, since it is possible to examine the state of the system just before
handing off to the OS.

Provide a separate CONFIG_BOOTM_FAKE_GO option to allow this feature to
be used separate from tracing. Enable it for the EFI app.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2025-09-22 06:31:51 -06:00
parent dd80fd963c
commit 5e97965c34
2 changed files with 10 additions and 3 deletions

View File

@@ -453,6 +453,14 @@ config BOOTM_VXWORKS
help
Support booting VxWorks images via the bootm command.
config BOOTM_FAKE_GO
bool "Support faking a boot, for debugging purposes"
default y if TRACE || EFI_APP
help
Provides a way to fake the boot, so that almost everything is done
to prepare for the boot, but the jump to the OS does not actually
happen. This can be useful for debugging.
endif # BOOT
config PXE_UTILS