Skip to contentSkip to conversation

cmd: correct ELF-related commands dependencies

PATCH In review Maxim Moskalets 2 participants 2 messages Jul 15, 2024 – Jul 20, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cmd: correct ELF-related commands dependencies

Enable BOOTM_ELF by default for all configs with LIB_ELF selected. Use OF_LIBFDT as dependency for CMD_ELF_FDT_SETUP.

---
 cmd/Kconfig | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
cmd/Kconfig +2 -3
index 0cf0d8ad8ab..5d34282c196 100644
@@ -324,7 +324,7 @@ config BOOTM_EFI
 config BOOTM_ELF
 	bool "Support booting ELF images"
 	depends on CMD_BOOTM && LIB_ELF
-	default n
+	default y if LIB_ELF
 	help
 	  Support booting ELF images via the bootm command.
 
@@ -500,8 +500,7 @@ config CMD_ELF
 config CMD_ELF_FDT_SETUP
 	bool "Flattened Device Tree setup in bootelf cmd"
 	depends on CMD_ELF
-	select LIB_LIBFDT
-	select LMB
+	select OF_LIBFDT
 	help
 	  Do FDT setup in bootelf command optionally by param -d, which
 	  allows to bring additional system info (e.g. /memory node) to
Signature · 1 line
2.39.2
#1 lore raw
Quoted 4 lines · Maxim Moskalets

Enable BOOTM_ELF by default for all configs with LIB_ELF selected. Use OF_LIBFDT as dependency for CMD_ELF_FDT_SETUP.

Applied to u-boot/master, thanks!

Signature · 1 line
Tom