spl: handoff: Correct Kconfig condition for SPL and TPL
authorSimon Glass <sjg@chromium.org>
Wed, 25 Sep 2019 14:11:17 +0000 (08:11 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Tue, 8 Oct 2019 05:51:03 +0000 (13:51 +0800)
At present these options can be enabled when bloblist is not enabled for
SPL or TPL. This is incorrect as SPL handoff requires bloblist. Fix it.

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

index f467eca2be729874b385ac04896272718b87a6d9..62b93c112b1f4e010622bdcc59ffd2b5feb7965c 100644 (file)
@@ -115,7 +115,7 @@ if SPL
 
 config SPL_HANDOFF
        bool "Pass hand-off information from SPL to U-Boot proper"
-       depends on HANDOFF
+       depends on HANDOFF && SPL_BLOBLIST
        default y
        help
          This option enables SPL to write handoff information. This can be
@@ -1185,7 +1185,7 @@ if TPL
 
 config TPL_HANDOFF
        bool "Pass hand-off information from TPL to SPL and U-Boot proper"
-       depends on HANDOFF
+       depends on HANDOFF && TPL_BLOBLIST
        default y
        help
          This option enables TPL to write handoff information. This can be