]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
tpl: Correct dependencies for TPL_OF_CONTROL
authorTom Rini <trini@konsulko.com>
Mon, 23 Mar 2026 19:53:13 +0000 (13:53 -0600)
committerTom Rini <trini@konsulko.com>
Tue, 7 Apr 2026 17:32:52 +0000 (11:32 -0600)
The TPL_OF_CONTROL option can only select TPL_OF_LIBFDT functionality if
we also have enabled TPL_LIBGENERIC_SUPPORT, so express this dependency
in Kconfig.

Signed-off-by: Tom Rini <trini@konsulko.com>
dts/Kconfig

index 169abe607837cc93ab3bc0c9713956146e47c371..6b501c2239edb67f169a691647eff66256f26669 100644 (file)
@@ -59,7 +59,7 @@ config SPL_OF_CONTROL
 config TPL_OF_CONTROL
        bool "Enable run-time configuration via Device Tree in TPL"
        depends on TPL && OF_CONTROL
-       select TPL_OF_LIBFDT if !TPL_OF_PLATDATA
+       select TPL_OF_LIBFDT if !TPL_OF_PLATDATA && TPL_LIBGENERIC_SUPPORT
        select TPL_OF_REAL if !TPL_OF_PLATDATA
        help
          Some boards use device tree in U-Boot but only have 4KB of SRAM