Skip to contentSkip to conversation

global: Disable xPL phases when we have enabled COMPILE_TEST

PATCH In review Tom Rini 1 participant 2 messages Oct 3, 2025 – Oct 14, 2025

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 global: Disable xPL phases when we have enabled COMPILE_TEST

Due to how we implement the logic for selecting what should/shouldn't be built in a given phase it becomes extremely cumbersome to make these phases link when configured by "allyesconfig". As a starting point for being able to enable "allyesconfig" and expand our static coverage, disable all other phases in this case.

Future work can be done to enable other phases as time and interest permit.

---
 common/spl/Kconfig | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
common/spl/Kconfig +3 -3
index 458dce01700a..debc59b1d713 100644
@@ -12,7 +12,7 @@ config SPL_DFU_NO_RESET
 
 config SPL
 	bool "Enable SPL"
-	depends on SUPPORT_SPL
+	depends on SUPPORT_SPL && !COMPILE_TEST
 	help
 	  If you want to build SPL as well as the normal image, say Y.
 
@@ -1630,7 +1630,7 @@ config SPL_AT91_MCK_BYPASS
 endmenu
 
 config TPL
-	depends on SUPPORT_TPL
+	depends on SUPPORT_TPL && !COMPILE_TEST
 	bool "Enable TPL"
 	help
 	  If you want to build TPL as well as the normal image and SPL, say Y.
@@ -1638,7 +1638,7 @@ config TPL
 source "common/spl/Kconfig.tpl"
 
 config VPL
-	depends on SUPPORT_SPL
+	depends on SUPPORT_SPL && !COMPILE_TEST
 	bool "Enable VPL"
 	help
 	  If you want to build VPL as well as the normal image, TPL and SPL,
Signature · 1 line
2.43.0
author
#1 lore raw
Quoted 10 lines · Tom Rini

Due to how we implement the logic for selecting what should/shouldn't be built in a given phase it becomes extremely cumbersome to make these phases link when configured by "allyesconfig". As a starting point for being able to enable "allyesconfig" and expand our static coverage, disable all other phases in this case.

Future work can be done to enable other phases as time and interest permit.

[...]

Applied to u-boot/master, thanks!

[1/1] global: Disable xPL phases when we have enabled COMPILE_TEST

      commit: ee7d07f9d00eeecab6671d8db2c8d22cd8b13d89
Signature · 1 line
Tom