boot: Provide a bootflow option to fake a boot

Allow using 'bootflow boot -f' to fake a boot.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2025-09-22 06:45:22 -06:00
parent 47c1adb636
commit 0df6320119
3 changed files with 20 additions and 2 deletions

View File

@@ -52,11 +52,14 @@ enum bootflow_state_t {
* @BOOTFLOWF_STATIC_BUF: Indicates that @bflow->buf is statically set, rather
* than being allocated by malloc().
* @BOOTFLOWF_USE_BUILTIN_FDT: Indicates that current bootflow uses built-in FDT
* @BOOTFLOWF_FAKE_GO: Do a 'fake' boot, up to the last possible point, then
* return
*/
enum bootflow_flags_t {
BOOTFLOWF_USE_PRIOR_FDT = BIT(0),
BOOTFLOWF_STATIC_BUF = BIT(1),
BOOTFLOWF_USE_BUILTIN_FDT = BIT(2),
BOOTFLOWF_FAKE_GO = BIT(3),
};
/**