We don't have any platforms left that build without LMB.
Configuring something useful without LMB is difficult.

Always enforce CONFIG_LMB=y.
Move selecting CONFIG_ARCH_MISC_INIT to the `config PPC` definition.

Signed-off-by: Heinrich Schuchardt <[email protected]>
---
 arch/Kconfig | 1 +
 lib/Kconfig  | 6 ++----
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/arch/Kconfig b/arch/Kconfig
index 4af0da2485f..4b243eb969d 100644
--- a/arch/Kconfig
+++ b/arch/Kconfig
@@ -155,6 +155,7 @@ config PPC
        select SUPPORT_OF_CONTROL
        select SYS_BOOT_GET_CMDLINE
        select SYS_BOOT_GET_KBD
+       select ARCH_MISC_INIT if LMB
 
 config RISCV
        bool "RISC-V architecture"
diff --git a/lib/Kconfig b/lib/Kconfig
index fe0b878a206..f30dfa1748f 100644
--- a/lib/Kconfig
+++ b/lib/Kconfig
@@ -1239,10 +1239,8 @@ config LIB_ELF
          This supports for 32 bit and 64 bit versions.
 
 config LMB
-       bool "Enable the logical memory blocks library (lmb)"
-       default y if ARC || ARM || M68K || MICROBLAZE || MIPS || \
-                    NIOS2 || PPC || RISCV || SANDBOX || SH || X86 || XTENSA
-       select ARCH_MISC_INIT if PPC
+       bool
+       default y
        help
          Support the library logical memory blocks. This will require
          a malloc() implementation for defining the data structures
-- 
2.51.0

Reply via email to