lib: Fix BINMAN_FDT dependency
authorBin Meng <bmeng.cn@gmail.com>
Wed, 3 Feb 2021 13:20:02 +0000 (21:20 +0800)
committerSimon Glass <sjg@chromium.org>
Thu, 4 Mar 2021 02:17:25 +0000 (19:17 -0700)
lib/binman.c references the following 3 ofnode APIs:
ofnode_first_subnode(), ofnode_path() and ofnode_read_bool().

These APIs get built only when DM is on. Fix the dependency then.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
lib/Kconfig

index b35a71a..7f4c30e 100644 (file)
@@ -22,7 +22,7 @@ config BCH
 
 config BINMAN_FDT
        bool "Allow access to binman information in the device tree"
-       depends on BINMAN && OF_CONTROL
+       depends on BINMAN && DM && OF_CONTROL
        default y
        help
          This enables U-Boot to access information about binman entries,