[PATCH 6/8] pbl: Fix Kconfig dependencies

Alexander Shiyan eagle.alexander923 at gmail.com
Mon Jun 27 03:24:58 PDT 2022


WARNING: unmet direct dependencies detected for PBL_IMAGE
Depends on [n]: HAVE_PBL_IMAGE [=n]
Selected by [y]:
- PBL_MULTI_IMAGES [=y] && HAVE_PBL_MULTI_IMAGES [=y]

WARNING: unmet direct dependencies detected for PBL_VERIFY_PIGGY
Depends on [n]: PBL_IMAGE [=n] && ARM [=y]
Selected by [y]:
- ARCH_IMX8M [=y] && ARCH_IMX [=y] && HABV4 [=y]

WARNING: unmet direct dependencies detected for BOARD_GENERIC_DT
Depends on [n]: PBL_IMAGE [=n]
Selected by [y]:
- BOARD_ARM_GENERIC_DT [=y] && HAVE_PBL_MULTI_IMAGES [=y] && OFDEVICE [=y]

Signed-off-by: Alexander Shiyan <eagle.alexander923 at gmail.com>
---
 pbl/Kconfig | 24 +++++++++++-------------
 1 file changed, 11 insertions(+), 13 deletions(-)

diff --git a/pbl/Kconfig b/pbl/Kconfig
index ce0acbb646..90eeafe29f 100644
--- a/pbl/Kconfig
+++ b/pbl/Kconfig
@@ -11,23 +11,29 @@ config HAVE_IMAGE_COMPRESSION
 
 config PBL_IMAGE
 	bool "Pre-Bootloader image"
-	depends on HAVE_PBL_IMAGE
+	depends on HAVE_PBL_IMAGE || HAVE_PBL_MULTI_IMAGES
+
+config PBL_VERIFY_PIGGY
+	depends on ARM
+	bool
+
+config BOARD_GENERIC_DT
+	bool
+	select LIBFDT
+
+if PBL_IMAGE
 
 config PBL_MULTI_IMAGES
 	bool
-	select PBL_IMAGE
 	select PBL_RELOCATABLE
 	depends on HAVE_PBL_MULTI_IMAGES
 	default y
 
 config PBL_SINGLE_IMAGE
 	bool
-	depends on PBL_IMAGE
 	depends on !HAVE_PBL_MULTI_IMAGES
 	default y
 
-if PBL_IMAGE
-
 config PBL_RELOCATABLE
 	depends on ARM || MIPS || RISCV
 	bool "relocatable pbl image"
@@ -38,14 +44,6 @@ config PBL_RELOCATABLE
 	  This option only influences the PBL image. See RELOCATABLE to also make
 	  the real image relocatable.
 
-config PBL_VERIFY_PIGGY
-	depends on ARM
-	bool
-
-config BOARD_GENERIC_DT
-	bool
-	select LIBFDT
-
 config IMAGE_COMPRESSION
 	bool
 	depends on HAVE_IMAGE_COMPRESSION
-- 
2.32.0




More information about the barebox mailing list