Skip to contentSkip to conversation

test: Correct dependencies for SPL_UNIT_TEST

PATCH In review Tom Rini 1 participant 2 messages Mar 17 – Mar 30

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 test: Correct dependencies for SPL_UNIT_TEST

As exposed by "make randconfig", we have an issue with the dependencies for SPL_UNIT_TEST. In order to test SPL_DM_DEVICE_REMOVE we also need to have ensured that SPL_DM is enabled, so that that select as well.

---
 test/Kconfig | 1 +
 1 file changed, 1 insertion(+)
test/Kconfig +1 -0
index 24105c133049..14b5b0e2a9a4 100644
@@ -15,6 +15,7 @@ config SPL_UNIT_TEST
 	bool "Unit tests in SPL"
 	depends on SPL
 	# We need to be able to unbind devices for tests to work
+	select SPL_DM
 	select SPL_DM_DEVICE_REMOVE
 	help
 	  Select this to enable unit tests in SPL. Most test are designed for
Signature · 1 line
2.43.0
author
#1 lore raw
Quoted 5 lines · Tom Rini

As exposed by "make randconfig", we have an issue with the dependencies for SPL_UNIT_TEST. In order to test SPL_DM_DEVICE_REMOVE we also need to have ensured that SPL_DM is enabled, so that that select as well.

Applied to u-boot/next, thanks!

[1/1] test: Correct dependencies for SPL_UNIT_TEST

      commit: 2ee6606f3576d017ce2b914b3d4f858de562bebe
Signature · 1 line
Tom