From 2b71470628c035ce3ccc76d12e50bdc453bdbc93 Mon Sep 17 00:00:00 2001
From: Raymond Mao <raymond.mao@linaro.org>
Date: Sat, 3 Feb 2024 08:36:27 -0800
Subject: [PATCH] dts: OF_HAS_PRIOR_STAGE should depend on !BLOBLIST

When BLOBLIST is enabled, FDT is expected to be from bloblist
carried from previous stage, instead of from OF_BOARD, therefore
only enable OF_HAS_PRIOR_STAGE when BLOBLIST is disabled.

Signed-off-by: Raymond Mao <raymond.mao@linaro.org>
---
 dts/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dts/Kconfig b/dts/Kconfig
index 00c0aeff89..def0e17241 100644
--- a/dts/Kconfig
+++ b/dts/Kconfig
@@ -121,6 +121,7 @@ config OF_BOARD
 
 config OF_HAS_PRIOR_STAGE
 	bool
+	depends on !BLOBLIST
 	help
 	  Indicates that a prior stage of the firmware (before U-Boot proper)
 	  makes use of device tree and this board normally boots with that prior
-- 
2.39.5