From: Simon Glass <sjg@chromium.org>
Date: Fri, 24 Mar 2023 20:58:12 +0000 (-0400)
Subject: lmb: Enable LMB if SYS_BOOT_RAMDISK_HIGH
X-Git-Tag: v2025.01-rc5-pxa1908~1072^2~4
X-Git-Url: http://git.dujemihanovic.xyz/posts?a=commitdiff_plain;h=febb9852613708c768c1b40807ce502504d79002;p=u-boot.git

lmb: Enable LMB if SYS_BOOT_RAMDISK_HIGH

Ramdisk relocation requires LMB, so enable it automatically to avoid
build errors.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

diff --git a/boot/Kconfig b/boot/Kconfig
index 170ab63f27..8fa3181d7e 100644
--- a/boot/Kconfig
+++ b/boot/Kconfig
@@ -814,6 +814,7 @@ 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.