src: Move select ARCH_X86 to platforms

To generalise the choice of 32-bit or 64-bit coreboot on x86 hardware,
have platforms select `ARCH_X86` directly instead of through per-stage
Kconfig options, effectively reversing the dependency order.

Change-Id: If15436817ba664398055e9efc6c7c656de3bf3e4
Signed-off-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/55758
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Rudolph <siro@das-labor.org>
This commit is contained in:
Angel Pons
2021-06-22 12:58:20 +02:00
committed by Werner Zeh
parent c839b37049
commit 8e035e3c13
36 changed files with 37 additions and 10 deletions

View File

@@ -7,6 +7,7 @@ if CPU_INTEL_HASWELL
config CPU_SPECIFIC_OPTIONS
def_bool y
select ARCH_ALL_STAGES_X86_32
select ARCH_X86
select BOOT_DEVICE_SPI_FLASH_NO_EARLY_WRITES
select MMX
select SSE2

View File

@@ -1,6 +1,7 @@
config CPU_INTEL_MODEL_1067X
bool
select ARCH_ALL_STAGES_X86_32
select ARCH_X86
select SSE2
select UDELAY_TSC
select TSC_MONOTONIC_TIMER

View File

@@ -1,6 +1,7 @@
config CPU_INTEL_MODEL_106CX
bool
select ARCH_ALL_STAGES_X86_32
select ARCH_X86
select SSE2
select UDELAY_TSC
select TSC_MONOTONIC_TIMER

View File

@@ -6,6 +6,7 @@ if CPU_INTEL_MODEL_2065X
config CPU_SPECIFIC_OPTIONS
def_bool y
select ARCH_ALL_STAGES_X86_32
select ARCH_X86
select BOOT_DEVICE_SPI_FLASH_NO_EARLY_WRITES
select SSE2
select UDELAY_TSC

View File

@@ -12,6 +12,7 @@ config CPU_SPECIFIC_OPTIONS
def_bool y
select ARCH_ALL_STAGES_X86_32 if !ARCH_EXP_X86_64
select ARCH_ALL_STAGES_X86_64 if ARCH_EXP_X86_64
select ARCH_X86
select BOOT_DEVICE_SPI_FLASH_NO_EARLY_WRITES
select MMX
select SSE2

View File

@@ -1,4 +1,5 @@
config CPU_INTEL_MODEL_65X
bool
select ARCH_ALL_STAGES_X86_32
select ARCH_X86
select SUPPORT_CPU_UCODE_IN_CBFS

View File

@@ -1,4 +1,5 @@
config CPU_INTEL_MODEL_67X
bool
select ARCH_ALL_STAGES_X86_32
select ARCH_X86
select SUPPORT_CPU_UCODE_IN_CBFS

View File

@@ -3,4 +3,5 @@
config CPU_INTEL_MODEL_68X
bool
select ARCH_ALL_STAGES_X86_32
select ARCH_X86
select SUPPORT_CPU_UCODE_IN_CBFS

View File

@@ -1,4 +1,5 @@
config CPU_INTEL_MODEL_6BX
bool
select ARCH_ALL_STAGES_X86_32
select ARCH_X86
select SUPPORT_CPU_UCODE_IN_CBFS

View File

@@ -1,6 +1,7 @@
config CPU_INTEL_MODEL_6EX
bool
select ARCH_ALL_STAGES_X86_32
select ARCH_X86
select SSE2
select UDELAY_TSC
select TSC_MONOTONIC_TIMER

View File

@@ -1,6 +1,7 @@
config CPU_INTEL_MODEL_6FX
bool
select ARCH_ALL_STAGES_X86_32
select ARCH_X86
select SSE2
select UDELAY_TSC
select TSC_MONOTONIC_TIMER

View File

@@ -1,4 +1,5 @@
config CPU_INTEL_MODEL_6XX
bool
select ARCH_ALL_STAGES_X86_32
select ARCH_X86
select SUPPORT_CPU_UCODE_IN_CBFS

View File

@@ -1,6 +1,7 @@
config CPU_INTEL_MODEL_F2X
bool
select ARCH_ALL_STAGES_X86_32
select ARCH_X86
select SUPPORT_CPU_UCODE_IN_CBFS
select SMM_ASEG
select CPU_INTEL_COMMON

View File

@@ -1,5 +1,6 @@
config CPU_INTEL_MODEL_F3X
bool
select ARCH_ALL_STAGES_X86_32
select ARCH_X86
select SUPPORT_CPU_UCODE_IN_CBFS
select CPU_INTEL_COMMON

View File

@@ -1,4 +1,5 @@
config CPU_INTEL_MODEL_F4X
bool
select ARCH_ALL_STAGES_X86_32
select ARCH_X86
select SUPPORT_CPU_UCODE_IN_CBFS