[PATCH] test: Correct dependencies for SPL_UNIT_TEST

Tom Rini trini at konsulko.com
Tue Mar 17 02:24:54 CET 2026


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.

Signed-off-by: Tom Rini <trini at konsulko.com>
---
 test/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/test/Kconfig b/test/Kconfig
index 24105c133049..14b5b0e2a9a4 100644
--- a/test/Kconfig
+++ b/test/Kconfig
@@ -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
-- 
2.43.0



More information about the U-Boot mailing list