]> git.sur5r.net Git - u-boot/commitdiff
x86: coreboot: Move coreboot-specific defines from coreboot.h to Kconfig
authorBin Meng <bmeng.cn@gmail.com>
Tue, 6 Jan 2015 14:14:18 +0000 (22:14 +0800)
committerSimon Glass <sjg@chromium.org>
Tue, 13 Jan 2015 15:25:03 +0000 (07:25 -0800)
There are many places in the U-Boot source tree which refer to
CONFIG_SYS_COREBOOT, CONFIG_CBMEM_CONSOLE and CONFIG_VIDEO_COREBOOT
that is currently defined in coreboot.h.

Move them to arch/x86/cpu/coreboot/Kconfig so that we can switch
to board configuration file to build U-Boot later.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Acked-by: Simon Glass <sjg@chromium.org>
arch/x86/Kconfig
arch/x86/cpu/coreboot/Kconfig [new file with mode: 0644]
include/configs/coreboot.h

index 512b6f6e1f1e14f4cb5062dad57119bc75a64b01..90e828a26ee4b02290724868cceec5b6683a71b3 100644 (file)
@@ -344,6 +344,8 @@ config TSC_FREQ_IN_MHZ
        help
          The running frequency in MHz of Time-Stamp Counter (TSC).
 
+source "arch/x86/cpu/coreboot/Kconfig"
+
 source "arch/x86/cpu/ivybridge/Kconfig"
 
 source "arch/x86/cpu/queensbay/Kconfig"
diff --git a/arch/x86/cpu/coreboot/Kconfig b/arch/x86/cpu/coreboot/Kconfig
new file mode 100644 (file)
index 0000000..e0e3c64
--- /dev/null
@@ -0,0 +1,15 @@
+if TARGET_COREBOOT
+
+config SYS_COREBOOT
+       bool
+       default y
+
+config CBMEM_CONSOLE
+       bool
+       default y
+
+config VIDEO_COREBOOT
+       bool
+       default y
+
+endif
index 990a2d186e3e30456408c5b82cb3ee089c21a849..a0d99522b7262a83a8e7d04c99cff481774ee6e7 100644 (file)
@@ -19,7 +19,6 @@
  * High Level Configuration Options
  * (easy to change)
  */
-#define CONFIG_SYS_COREBOOT
 #define CONFIG_LAST_STAGE_INIT
 #define CONFIG_SYS_EARLY_PCI_INIT
 
                                        "stdout=vga,serial,cbmem\0" \
                                        "stderr=vga,serial,cbmem\0"
 
-#define CONFIG_CBMEM_CONSOLE
-
-#define CONFIG_VIDEO_COREBOOT
-
 #define CONFIG_NR_DRAM_BANKS                   4
 
 #define CONFIG_TRACE