Skip to contentSkip to conversation

bootstage: Update SPL support Kconfig description

PATCH In review Marek Vasut 2 participants 8 messages Nov 3, 2021 – Dec 19, 2021 Arm i.MX and Layerscape

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 bootstage: Update SPL support Kconfig description

Add "in SPL" suffix to the Kconfig description, to make it differ from the "proper" U-Boot entry.

---
 common/Kconfig.boot | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
common/Kconfig.boot +1 -1
index a8d4be23a97..d3a12be2281 100644
@@ -704,7 +704,7 @@ config SHOW_BOOT_PROGRESS
 	  151	common/cmd_nand.c	FIT image format OK
 
 config SPL_SHOW_BOOT_PROGRESS
-	bool "Show boot progress in a board-specific manner"
+	bool "Show boot progress in a board-specific manner in SPL"
 	depends on SPL
 	help
 	  Defining this option allows to add some board-specific code (calling
Signature · 1 line
2.33.0
#1 lore raw

PATCH 2/3 bootstage: Fix up remaining bootstage config misuse

All these macros really guard show_boot_progress() function, which is used only if BOOT_PROGRESS is enabled in Kconfig. Fix up the macro guards.

---
 board/Seagate/dockstar/dockstar.c     | 2 +-
 board/Seagate/goflexhome/goflexhome.c | 2 +-
 board/bosch/shc/board.c               | 2 +-
 board/buffalo/lsxl/lsxl.c             | 2 +-
 board/k+p/kp_imx53/kp_imx53.c         | 2 +-
 board/st/stv0991/stv0991.c            | 2 +-
 include/bootstage.h                   | 2 +-
 7 files changed, 7 insertions(+), 7 deletions(-)
board/Seagate/dockstar/dockstar.c +1 -1
index fb691931580..819fc685565 100644
@@ -140,7 +140,7 @@ void reset_phy(void)
 }
 #endif /* CONFIG_RESET_PHY_R */
 
-#if CONFIG_IS_ENABLED(BOOTSTAGE)
+#if CONFIG_IS_ENABLED(SHOW_BOOT_PROGRESS)
 #define GREEN_LED	(1 << 14)
 #define ORANGE_LED	(1 << 15)
 #define BOTH_LEDS	(GREEN_LED | ORANGE_LED)
board/Seagate/goflexhome/goflexhome.c +1 -1
index 52be64fb8c2..e99335d5339 100644
@@ -175,7 +175,7 @@ void reset_phy(void)
 }
 #endif /* CONFIG_RESET_PHY_R */
 
-#if CONFIG_IS_ENABLED(BOOTSTAGE)
+#if CONFIG_IS_ENABLED(SHOW_BOOT_PROGRESS)
 #define GREEN_LED	(1 << 14)
 #define ORANGE_LED	(1 << 15)
 #define BOTH_LEDS	(GREEN_LED | ORANGE_LED)
board/bosch/shc/board.c +1 -1
index a7a9775fdf4..33edf412871 100644
@@ -480,7 +480,7 @@ int board_eth_init(struct bd_info *bis)
 }
 #endif
 
-#if CONFIG_IS_ENABLED(BOOTSTAGE)
+#if CONFIG_IS_ENABLED(SHOW_BOOT_PROGRESS)
 static void bosch_check_reset_pin(void)
 {
 	if (readl(GPIO1_BASE + OMAP_GPIO_IRQSTATUS_SET_0) & RESET_MASK) {
board/buffalo/lsxl/lsxl.c +1 -1
index 738b6bc25ce..3544a779968 100644
@@ -271,7 +271,7 @@ int misc_init_r(void)
 }
 #endif
 
-#if CONFIG_IS_ENABLED(BOOTSTAGE)
+#if CONFIG_IS_ENABLED(SHOW_BOOT_PROGRESS)
 void show_boot_progress(int progress)
 {
 	if (progress > 0)
board/k+p/kp_imx53/kp_imx53.c +1 -1
index 7c3a695cb25..81f1191633e 100644
@@ -155,7 +155,7 @@ int board_late_init(void)
 	return ret;
 }
 
-#if CONFIG_IS_ENABLED(BOOTSTAGE)
+#if CONFIG_IS_ENABLED(SHOW_BOOT_PROGRESS)
 #define GPIO_DR 0x0
 #define GPIO_GDIR 0x4
 #define GPIO_ALT1 0x1
board/st/stv0991/stv0991.c +1 -1
index 57ca9f659c1..7f1b31b654e 100644
@@ -37,7 +37,7 @@ U_BOOT_DRVINFO(stv09911_serials) = {
 };
 #endif
 
-#if CONFIG_IS_ENABLED(BOOTSTAGE)
+#if CONFIG_IS_ENABLED(SHOW_BOOT_PROGRESS)
 void show_boot_progress(int progress)
 {
 	printf("%i\n", progress);
include/bootstage.h +1 -1
index 8d1989ac0e5..63d338c932e 100644
@@ -233,7 +233,7 @@ void show_boot_progress(int val);
 #endif
 
 #if !defined(USE_HOSTCC)
-#if CONFIG_IS_ENABLED(BOOTSTAGE)
+#if CONFIG_IS_ENABLED(SHOW_BOOT_PROGRESS)
 #define ENABLE_BOOTSTAGE
 #endif
 #endif
Signature · 1 line
2.33.0
Reviewed-by on v1 2/3
#2 lore raw

Re: [PATCH 2/3] bootstage: Fix up remaining bootstage config misuse

Quoted 7 lines · Marek Vasut

All these macros really guard show_boot_progress() function, which is used only if BOOT_PROGRESS is enabled in Kconfig. Fix up the macro guards.

Quoted 10 lines
---
 board/Seagate/dockstar/dockstar.c     | 2 +-
 board/Seagate/goflexhome/goflexhome.c | 2 +-
 board/bosch/shc/board.c               | 2 +-
 board/buffalo/lsxl/lsxl.c             | 2 +-
 board/k+p/kp_imx53/kp_imx53.c         | 2 +-
 board/st/stv0991/stv0991.c            | 2 +-
 include/bootstage.h                   | 2 +-
 7 files changed, 7 insertions(+), 7 deletions(-)
#3 lore raw

Re: [PATCH 2/3] bootstage: Fix up remaining bootstage config misuse

Hi Marek,

Quoted 19 lines · Simon Glass
Quoted 7 lines · Marek Vasut

All these macros really guard show_boot_progress() function, which is used only if BOOT_PROGRESS is enabled in Kconfig. Fix up the macro guards.

Quoted 10 lines
---
 board/Seagate/dockstar/dockstar.c     | 2 +-
 board/Seagate/goflexhome/goflexhome.c | 2 +-
 board/bosch/shc/board.c               | 2 +-
 board/buffalo/lsxl/lsxl.c             | 2 +-
 board/k+p/kp_imx53/kp_imx53.c         | 2 +-
 board/st/stv0991/stv0991.c            | 2 +-
 include/bootstage.h                   | 2 +-
 7 files changed, 7 insertions(+), 7 deletions(-)
Quoted 1 line

This patch and the next one fail to build (make qcheck). Can you please take a look?

Regards,
Simon

#4 lore raw

PATCH 3/3 bootstage: Enable SPL bootstage in sandbox_spl config

In reply to Marek Vasut

Enable SPL bootstage support in sandbox_spl config to detect build issues in CI.

---
 configs/sandbox_spl_defconfig | 1 +
 1 file changed, 1 insertion(+)
configs/sandbox_spl_defconfig +1 -0
index 1e3ccbb98bf..e3f47476c8c 100644
@@ -23,6 +23,7 @@ CONFIG_FIT_VERBOSE=y
 CONFIG_SPL_LOAD_FIT=y
 # CONFIG_USE_SPL_FIT_GENERATOR is not set
 CONFIG_BOOTSTAGE=y
+CONFIG_SPL_BOOTSTAGE=y
 CONFIG_BOOTSTAGE_REPORT=y
 CONFIG_BOOTSTAGE_FDT=y
 CONFIG_BOOTSTAGE_STASH=y
Signature · 1 line
2.33.0
#6 lore raw

Re: [PATCH 3/3] bootstage: Enable SPL bootstage in sandbox_spl config

Quoted 4 lines · Simon Glass
Quoted 3 lines · Marek Vasut

Enable SPL bootstage support in sandbox_spl config to detect build issues in CI.

Quoted 8 lines
Quoted 6 lines
---
  configs/sandbox_spl_defconfig | 1 +
  1 file changed, 1 insertion(+)

It seems neither of these patches have been applied.