lmb: move CONFIG_LMB in Kconfig
authorPatrick Delaunay <patrick.delaunay@foss.st.com>
Wed, 10 Mar 2021 09:16:25 +0000 (10:16 +0100)
committerTom Rini <trini@konsulko.com>
Thu, 22 Apr 2021 18:09:45 +0000 (14:09 -0400)
Migrate CONFIG_LMB in Kconfig.

Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
18 files changed:
arch/arc/include/asm/config.h
arch/arm/include/asm/config.h
arch/m68k/include/asm/config.h
arch/microblaze/include/asm/config.h
arch/mips/include/asm/config.h
arch/nds32/include/asm/config.h
arch/powerpc/include/asm/config.h
arch/riscv/include/asm/config.h
arch/sh/include/asm/config.h
arch/x86/include/asm/config.h
arch/xtensa/include/asm/config.h
include/configs/10m50_devboard.h
include/configs/3c120_devboard.h
include/configs/sandbox.h
include/configs/x86-common.h
include/image.h
lib/Kconfig
scripts/config_whitelist.txt

index d88c361..46e94be 100644 (file)
@@ -8,6 +8,4 @@
 
 #define CONFIG_SYS_BOOT_RAMDISK_HIGH
 
-#define CONFIG_LMB
-
 #endif /*__ASM_ARC_CONFIG_H_ */
index bf692ce..14860d8 100644 (file)
@@ -6,7 +6,6 @@
 #ifndef _ASM_CONFIG_H_
 #define _ASM_CONFIG_H_
 
-#define CONFIG_LMB
 #define CONFIG_SYS_BOOT_RAMDISK_HIGH
 
 #if defined(CONFIG_ARCH_LS1021A) || \
index 7ea4436..221eb93 100644 (file)
@@ -6,7 +6,6 @@
 #ifndef _ASM_CONFIG_H_
 #define _ASM_CONFIG_H_
 
-#define CONFIG_LMB
 #define CONFIG_SYS_BOOT_RAMDISK_HIGH
 
 #endif
index 3ae71b3..221eb93 100644 (file)
@@ -6,8 +6,6 @@
 #ifndef _ASM_CONFIG_H_
 #define _ASM_CONFIG_H_
 
-#define CONFIG_LMB
-
 #define CONFIG_SYS_BOOT_RAMDISK_HIGH
 
 #endif
index 7ea4436..221eb93 100644 (file)
@@ -6,7 +6,6 @@
 #ifndef _ASM_CONFIG_H_
 #define _ASM_CONFIG_H_
 
-#define CONFIG_LMB
 #define CONFIG_SYS_BOOT_RAMDISK_HIGH
 
 #endif
index 8964a58..6c1cbce 100644 (file)
@@ -7,6 +7,5 @@
 
 #ifndef _ASM_CONFIG_H_
 #define _ASM_CONFIG_H_
-#define CONFIG_LMB
 
 #endif
index c9c9964..99b410d 100644 (file)
@@ -18,7 +18,6 @@
   #define HWCONFIG_BUFFER_SIZE 256
 #endif
 
-#define CONFIG_LMB
 #define CONFIG_SYS_BOOT_RAMDISK_HIGH
 
 #ifndef CONFIG_MAX_MEM_MAPPED
index 156cb94..d911007 100644 (file)
@@ -7,7 +7,6 @@
 #ifndef _ASM_CONFIG_H_
 #define _ASM_CONFIG_H_
 
-#define CONFIG_LMB
 #define CONFIG_SYS_BOOT_RAMDISK_HIGH
 
 #endif
index e1cd322..406156d 100644 (file)
@@ -8,8 +8,6 @@
 
 #include <asm/processor.h>
 
-#define CONFIG_LMB
-
 /* Timer */
 #define CONFIG_SYS_TIMER_COUNTS_DOWN
 #define CONFIG_SYS_TIMER_COUNTER       (TMU_BASE + 0xc)        /* TCNT0 */
index 7ea4436..221eb93 100644 (file)
@@ -6,7 +6,6 @@
 #ifndef _ASM_CONFIG_H_
 #define _ASM_CONFIG_H_
 
-#define CONFIG_LMB
 #define CONFIG_SYS_BOOT_RAMDISK_HIGH
 
 #endif
index 5a95fc9..a1096ab 100644 (file)
@@ -9,8 +9,6 @@
 
 #include <asm/arch/core.h>
 
-#define CONFIG_LMB
-
 /*
  * Make boot parameters available in the MMUv2 virtual memory layout by
  * restricting used physical memory to the first 128MB.
index 768b4a6..3ffc744 100644 (file)
 #define CONFIG_BOOTP_BOOTFILESIZE
 
 /*
- * FDT options
- */
-#define CONFIG_LMB
-
-/*
  * MEMORY ORGANIZATION
  * -Monitor at top of sdram.
  * -The heap is placed below the monitor
index 30bbd71..3f065ff 100644 (file)
 #define CONFIG_BOOTP_BOOTFILESIZE
 
 /*
- * FDT options
- */
-#define CONFIG_LMB
-
-/*
  * MEMORY ORGANIZATION
  * -Monitor at top of sdram.
  * -The heap is placed below the monitor
index 6e79d3f..8eeccdd 100644 (file)
@@ -22,8 +22,6 @@
 #define CONFIG_SYS_TIMER_RATE          1000000
 #endif
 
-#define CONFIG_LMB
-
 #define CONFIG_HOST_MAX_DEVICES 4
 
 /*
index 641ed2c..f186dd6 100644 (file)
@@ -16,8 +16,6 @@
  */
 #define CONFIG_PHYSMEM
 
-#define CONFIG_LMB
-
 #define CONFIG_SYS_BOOTM_LEN           (16 << 20)
 
 /* SATA AHCI storage */
index 3ff3c03..459685d 100644 (file)
@@ -434,7 +434,7 @@ typedef struct bootm_headers {
 #define        BOOTM_STATE_OS_GO       (0x00000400)
        int             state;
 
-#ifdef CONFIG_LMB
+#if defined(CONFIG_LMB) && !defined(USE_HOSTCC)
        struct lmb      lmb;            /* for memory mgmt */
 #endif
 } bootm_headers_t;
index ab8c9cc..b7df9eb 100644 (file)
@@ -700,6 +700,13 @@ config LIB_ELF
          Support basic elf loading/validating functions.
          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 || NDS32 || \
+                    NIOS2 || PPC || RISCV || SANDBOX || SH || X86 || XTENSA
+       help
+         Support the library logical memory blocks.
+
 endmenu
 
 config PHANDLE_CHECK_SEQ
index a2fcafd..3eda10e 100644 (file)
@@ -948,7 +948,6 @@ CONFIG_LEGACY_BOOTCMD_ENV
 CONFIG_LINUX
 CONFIG_LINUX_RESET_VEC
 CONFIG_LITTLETON_LCD
-CONFIG_LMB
 CONFIG_LMS283GF05
 CONFIG_LOADADDR
 CONFIG_LOADCMD