bootstage: Add SPL support
PATCH 1/1 bootstage: Add SPL support
Allow usage of the bootstage facilities in SPL.
Signed-off-by Marek Vasut <[email protected]>
Cc Simon Glass <[email protected]>
--- common/Kconfig.boot | 9 +++++++++ include/bootstage.h | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-)
common/Kconfig.boot +9 -0
@@ -667,6 +667,15 @@ config SHOW_BOOT_PROGRESS -150 common/cmd_nand.c Incorrect FIT image format 151 common/cmd_nand.c FIT image format OK +config SPL_SHOW_BOOT_PROGRESS + bool "Show boot progress in a board-specific manner" + depends on SPL + help + Defining this option allows to add some board-specific code (calling + a user-provided function show_boot_progress(int) that enables you to + show the system's boot progress on some display (for example, some + LEDs) on your board. For details see SHOW_BOOT_PROGRESS. + endmenu menu "Boot media"
include/bootstage.h +1 -1
@@ -220,7 +220,7 @@ enum bootstage_id {*/ ulong timer_get_boot_us (void ); -#if defined(USE_HOSTCC ) || !CONFIG_IS_ENABLED (BOOTSTAGE ) +#if defined(USE_HOSTCC ) || !CONFIG_IS_ENABLED (SHOW_BOOT_PROGRESS )#define show_boot_progress (val) do {} while (0)#else /**
Signature · 1 line
2.33.0
Quoted 9 lines · Marek Vasut
Allow usage of the bootstage facilities in SPL.
Signed-off-by Marek Vasut <[email protected]>Cc Simon Glass <[email protected]>--- common/Kconfig.boot | 9 +++++++++ include/bootstage.h | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-)
Reviewed-by Simon Glass <[email protected]>
Quoted 5 lines · Marek Vasut
Allow usage of the bootstage facilities in SPL.
Signed-off-by Marek Vasut <[email protected]>Cc Simon Glass <[email protected]>Reviewed-by Simon Glass <[email protected]>
This breaks a large number of platforms unfortunately, starting with sandbox_spl but also cortina_presidio-asic-emmc and likely many others.
Signature · 1 line
Tom