Skip to contentSkip to conversation

lmb: Correct dependency around CMD_BOOT[IMZ]

PATCH In review Tom Rini 1 participant 2 messages Mar 20 – Apr 3

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 lmb: Correct dependency around CMD_BOOT[IMZ]

The calls around lmb functions for these commands are not specific to SYS_BOOT_RAMDISK_HIGH but rather part of the general loading portion of the command itself currently. Move this dependency to the right spot.

---
 boot/Kconfig | 1 -
 cmd/Kconfig  | 3 +++
 2 files changed, 3 insertions(+), 1 deletion(-)
boot/Kconfig +0 -1
index a56b7aa2f378..2fe3f4fe4d1e 100644
@@ -1164,7 +1164,6 @@ config SYS_BOOT_RAMDISK_HIGH
 	depends on CMD_BOOTM || CMD_BOOTI || CMD_BOOTZ
 	depends on !(NIOS2 || SANDBOX || SH || XTENSA)
 	def_bool y
-	select LMB
 	help
 	  Enable initrd_high functionality.  If defined then the initrd_high
 	  feature is enabled and the boot* ramdisk subcommand is enabled.
cmd/Kconfig +3 -0
index f459f6b029c2..4077cdce1069 100644
@@ -298,6 +298,7 @@ config CMD_BOOTD
 
 config CMD_BOOTM
 	bool "bootm"
+	depends on LMB
 	default y
 	select LIB_BOOTM
 	help
@@ -376,6 +377,7 @@ config BOOTM_ELF
 
 config CMD_BOOTZ
 	bool "bootz"
+	depends on LMB
 	select LIB_BOOTZ
 	select LIB_BOOTM
 	help
@@ -384,6 +386,7 @@ config CMD_BOOTZ
 config CMD_BOOTI
 	bool "booti"
 	depends on ARM64 || RISCV || SANDBOX
+	depends on LMB
 	default y
 	select LIB_BOOTI
 	select LIB_BOOTM
Signature · 1 line
2.43.0
author
#1 lore raw
Quoted 5 lines · Tom Rini

The calls around lmb functions for these commands are not specific to SYS_BOOT_RAMDISK_HIGH but rather part of the general loading portion of the command itself currently. Move this dependency to the right spot.

Applied to u-boot/next, thanks!

[1/1] lmb: Correct dependency around CMD_BOOT[IMZ]

      commit: 5116481a7e604bf0985417f30d1a6fcbc89067b5
Signature · 1 line
Tom