Kconfig: Drop the C_ENVIRONMENT_BOOTBLOCK symbol

The romcc bootblock will be deprecated soon and most platforms use
C_ENVIRONMENT_BOOTBLOCK already. This patch drops the
CONFIG_C_ENVIRONMENT_BOOTBLOCK symbol and adds CONFIG_ROMCC_BOOTBLOCK
where needed.

Change-Id: I773a76aade623303b7cd95ebe9b0411e5a7ecbaf
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/37154
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr>
Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-by: Michał Żygowski <michal.zygowski@3mdeb.com>
This commit is contained in:
Arthur Heymans
2019-11-22 21:01:30 +01:00
committed by Patrick Georgi
parent 689256797e
commit c05b1a66b3
47 changed files with 41 additions and 70 deletions

View File

@ -1177,9 +1177,7 @@ config BOOTBLOCK_CUSTOM
# src/lib/bootblock.c#main() C entry point. # src/lib/bootblock.c#main() C entry point.
bool bool
config C_ENVIRONMENT_BOOTBLOCK config ROMCC_BOOTBLOCK
# To be selected by arch or platform if a C environment is available during the
# bootblock. Normally this signifies availability of RW memory (e.g. SRAM).
bool bool
############################################################################### ###############################################################################

View File

@ -4,7 +4,6 @@ config ARCH_ARM
config ARCH_BOOTBLOCK_ARM config ARCH_BOOTBLOCK_ARM
bool bool
select ARCH_ARM select ARCH_ARM
select C_ENVIRONMENT_BOOTBLOCK
config ARCH_VERSTAGE_ARM config ARCH_VERSTAGE_ARM
bool bool

View File

@ -4,7 +4,6 @@ config ARCH_ARM64
config ARCH_BOOTBLOCK_ARM64 config ARCH_BOOTBLOCK_ARM64
bool bool
select ARCH_ARM64 select ARCH_ARM64
select C_ENVIRONMENT_BOOTBLOCK
config ARCH_VERSTAGE_ARM64 config ARCH_VERSTAGE_ARM64
bool bool

View File

@ -5,7 +5,6 @@ config ARCH_BOOTBLOCK_PPC64
bool bool
select ARCH_PPC64 select ARCH_PPC64
select BOOTBLOCK_CUSTOM select BOOTBLOCK_CUSTOM
select C_ENVIRONMENT_BOOTBLOCK
config ARCH_VERSTAGE_PPC64 config ARCH_VERSTAGE_PPC64
bool bool

View File

@ -77,7 +77,6 @@ config ARCH_RISCV_PMP
config ARCH_BOOTBLOCK_RISCV config ARCH_BOOTBLOCK_RISCV
bool bool
default n default n
select C_ENVIRONMENT_BOOTBLOCK
config ARCH_VERSTAGE_RISCV config ARCH_VERSTAGE_RISCV
bool bool

View File

@ -23,7 +23,7 @@ config ARCH_BOOTBLOCK_X86_32
bool bool
default n default n
select ARCH_X86 select ARCH_X86
select BOOTBLOCK_CUSTOM if !C_ENVIRONMENT_BOOTBLOCK select BOOTBLOCK_CUSTOM if ROMCC_BOOTBLOCK
config ARCH_VERSTAGE_X86_32 config ARCH_VERSTAGE_X86_32
bool bool
@ -47,7 +47,7 @@ config ARCH_BOOTBLOCK_X86_64
bool bool
default n default n
select ARCH_X86 select ARCH_X86
select BOOTBLOCK_CUSTOM if !C_ENVIRONMENT_BOOTBLOCK select BOOTBLOCK_CUSTOM if ROMCC_BOOTBLOCK
config ARCH_VERSTAGE_X86_64 config ARCH_VERSTAGE_X86_64
bool bool
@ -199,7 +199,7 @@ config ID_SECTION_OFFSET
hex hex
default 0x80 default 0x80
# 64KiB default bootblock size when employing C_ENVIRONMENT_BOOTBLOCK. # 64KiB default bootblock size
config C_ENV_BOOTBLOCK_SIZE config C_ENV_BOOTBLOCK_SIZE
hex hex
default 0x10000 default 0x10000
@ -239,7 +239,7 @@ config ROMSTAGE_DEBUG_SPINLOOP
choice choice
prompt "Bootblock behaviour" prompt "Bootblock behaviour"
default BOOTBLOCK_SIMPLE default BOOTBLOCK_SIMPLE
depends on !C_ENVIRONMENT_BOOTBLOCK depends on ROMCC_BOOTBLOCK
config BOOTBLOCK_SIMPLE config BOOTBLOCK_SIMPLE
bool "Always load fallback" bool "Always load fallback"

View File

@ -116,7 +116,7 @@ bootblock-$(CONFIG_X86_TOP4G_BOOTMEDIA_MAP) += mmap_boot.c
bootblock-y += id.S bootblock-y += id.S
$(call src-to-obj,bootblock,$(dir)/id.S): $(obj)/build.h $(call src-to-obj,bootblock,$(dir)/id.S): $(obj)/build.h
ifeq ($(CONFIG_C_ENVIRONMENT_BOOTBLOCK),y) ifneq ($(CONFIG_ROMCC_BOOTBLOCK),y)
bootblock-y += bootblock_crt0.S bootblock-y += bootblock_crt0.S
@ -128,7 +128,7 @@ endif
bootblock-$(CONFIG_ARCH_BOOTBLOCK_X86_32) += walkcbfs.S bootblock-$(CONFIG_ARCH_BOOTBLOCK_X86_32) += walkcbfs.S
else # !C_ENVIRONMENT_BOOTBLOCK else # ROMCC_BOOTBLOCK
# x86-specific linker flags # x86-specific linker flags
ifeq ($(CONFIG_ARCH_BOOTBLOCK_X86_32),y) ifeq ($(CONFIG_ARCH_BOOTBLOCK_X86_32),y)
@ -178,7 +178,7 @@ $(objcbfs)/bootblock.debug: $$(bootblock-objs)
$(filter-out %.ld,$(bootblock-objs)) \ $(filter-out %.ld,$(bootblock-objs)) \
-T $(call src-to-obj,bootblock,src/arch/x86/bootblock.ld) -T $(call src-to-obj,bootblock,src/arch/x86/bootblock.ld)
endif # C_ENVIRONMENT_BOOTBLOCK endif # ROMCC_BOOTBLOCK
endif # CONFIG_ARCH_BOOTBLOCK_X86_32 / CONFIG_ARCH_BOOTBLOCK_X86_64 endif # CONFIG_ARCH_BOOTBLOCK_X86_32 / CONFIG_ARCH_BOOTBLOCK_X86_64
@ -223,7 +223,9 @@ ifeq ($(CONFIG_ARCH_ROMSTAGE_X86_32)$(CONFIG_ARCH_ROMSTAGE_X86_64),y)
romstage-$(CONFIG_HAVE_ACPI_RESUME) += acpi_s3.c romstage-$(CONFIG_HAVE_ACPI_RESUME) += acpi_s3.c
# gdt_init.S is included by entry32.inc when romstage is the first C # gdt_init.S is included by entry32.inc when romstage is the first C
# environment. # environment.
romstage-$(CONFIG_C_ENVIRONMENT_BOOTBLOCK) += gdt_init.S ifneq ($(CONFIG_ROMCC_BOOTBLOCK),y)
romstage-y += gdt_init.S
endif
romstage-y += cbmem.c romstage-y += cbmem.c
romstage-$(CONFIG_IDT_IN_EVERY_STAGE) += exception.c romstage-$(CONFIG_IDT_IN_EVERY_STAGE) += exception.c
romstage-$(CONFIG_IDT_IN_EVERY_STAGE) += idt.S romstage-$(CONFIG_IDT_IN_EVERY_STAGE) += idt.S

View File

@ -13,14 +13,13 @@
#include <rules.h> #include <rules.h>
#if CONFIG(C_ENVIRONMENT_BOOTBLOCK) #if !CONFIG(ROMCC_BOOTBLOCK)
/* /*
* This path is for stages that are post bootblock when employing * This path is for stages that are post bootblock. The gdt is reloaded
* CONFIG_C_ENVIRONMENT_BOOTBLOCK. The gdt is reloaded to accommodate * to accommodate platforms that are executing out of CAR. In order to
* platforms that are executing out of CAR. In order to continue with * continue with C code execution one needs to set stack pointer and
* C code execution one needs to set stack pointer and clear CAR_GLOBAL * clear .bss variables that are stage specific.
* variables that are stage specific.
*/ */
.section ".text._start", "ax", @progbits .section ".text._start", "ax", @progbits
.global _start .global _start

View File

@ -11,8 +11,7 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details. * GNU General Public License for more details.
* *
* This is the modern bootblock. It is used by platforms which select * This is the modern bootblock. It prepares the system for C environment runtime
* C_ENVIRONMENT_BOOTBLOCK, and it prepares the system for C environment runtime
* setup. The actual setup is done by hardware-specific code. * setup. The actual setup is done by hardware-specific code.
* *
* It provides a bootflow similar to other architectures, and thus is considered * It provides a bootflow similar to other architectures, and thus is considered

View File

@ -20,7 +20,7 @@
* - timestamp.inc: store TSC in MMX registers * - timestamp.inc: store TSC in MMX registers
* - generated/bootblock.inc: ROMCC part of the bootblock * - generated/bootblock.inc: ROMCC part of the bootblock
* *
* This is used on platforms which do not select C_ENVIRONMENT_BOOTBLOCK, and it * This is used on platforms which select ROMCC_BOOTBLOCK, and it
* tries to do the absolute minimum before walking CBFS and jumping to romstage. * tries to do the absolute minimum before walking CBFS and jumping to romstage.
* *
* This file assembles the bootblock program by the order of the includes. Thus, * This file assembles the bootblock program by the order of the includes. Thus,

View File

@ -36,7 +36,7 @@
/* Stack for CAR stages. Since it persists across all stages that /* Stack for CAR stages. Since it persists across all stages that
* use CAR it can be reused. The chipset/SoC is expected to provide * use CAR it can be reused. The chipset/SoC is expected to provide
* the stack size. */ * the stack size. */
#if CONFIG(C_ENVIRONMENT_BOOTBLOCK) #if !CONFIG(ROMCC_BOOTBLOCK)
_car_stack = .; _car_stack = .;
. += CONFIG_DCACHE_BSP_STACK_SIZE; . += CONFIG_DCACHE_BSP_STACK_SIZE;
_ecar_stack = .; _ecar_stack = .;
@ -90,7 +90,7 @@
_ebss = .; _ebss = .;
_car_unallocated_start = .; _car_unallocated_start = .;
#if !CONFIG(C_ENVIRONMENT_BOOTBLOCK) #if CONFIG(ROMCC_BOOTBLOCK)
_car_stack = .; _car_stack = .;
_ecar_stack = _car_region_end; _ecar_stack = _car_region_end;
#endif #endif
@ -121,6 +121,6 @@ _bogus = ASSERT((CONFIG_DCACHE_RAM_SIZE == 0) || (SIZEOF(.car.data) <= CONFIG_DC
#if CONFIG(PAGING_IN_CACHE_AS_RAM) #if CONFIG(PAGING_IN_CACHE_AS_RAM)
_bogus2 = ASSERT(_pagetables == ALIGN(_pagetables, 4096), "_pagetables aren't 4KiB aligned"); _bogus2 = ASSERT(_pagetables == ALIGN(_pagetables, 4096), "_pagetables aren't 4KiB aligned");
#endif #endif
#if CONFIG(C_ENVIRONMENT_BOOTBLOCK) #if !CONFIG(ROMCC_BOOTBLOCK)
_bogus3 = ASSERT(CONFIG_DCACHE_BSP_STACK_SIZE > 0x0, "BSP stack size not configured"); _bogus3 = ASSERT(CONFIG_DCACHE_BSP_STACK_SIZE > 0x0, "BSP stack size not configured");
#endif #endif

View File

@ -288,9 +288,8 @@ static inline void get_fms(struct cpuinfo_x86 *c, uint32_t tfms)
#define asmlinkage __attribute__((regparm(0))) #define asmlinkage __attribute__((regparm(0)))
/* /*
* When using CONFIG_C_ENVIRONMENT_BOOTBLOCK the car_stage_entry() * When not using a romcc bootblock the car_stage_entry() is the symbol
* is the symbol jumped to for each stage after bootblock using * jumped to for each stage after bootblock using cache-as-ram.
* cache-as-ram.
*/ */
asmlinkage void car_stage_entry(void); asmlinkage void car_stage_entry(void);

View File

@ -49,8 +49,7 @@ SECTIONS
#include EARLY_MEMLAYOUT #include EARLY_MEMLAYOUT
#elif ENV_BOOTBLOCK #elif ENV_BOOTBLOCK
/* This is for C_ENVIRONMENT_BOOTBLOCK. arch/x86/bootblock.ld contains /* arch/x86/bootblock.ld contains the logic for the ROMCC_BOOTBLOCK linking. */
* the logic for the romcc linking. */
BOOTBLOCK(0xffffffff - CONFIG_C_ENV_BOOTBLOCK_SIZE + 1, BOOTBLOCK(0xffffffff - CONFIG_C_ENV_BOOTBLOCK_SIZE + 1,
CONFIG_C_ENV_BOOTBLOCK_SIZE) CONFIG_C_ENV_BOOTBLOCK_SIZE)

View File

@ -5,7 +5,7 @@ config NO_BOOTBLOCK_CONSOLE
config BOOTBLOCK_CONSOLE config BOOTBLOCK_CONSOLE
bool "Enable early (bootblock) console output." bool "Enable early (bootblock) console output."
depends on C_ENVIRONMENT_BOOTBLOCK && !NO_BOOTBLOCK_CONSOLE depends on !ROMCC_BOOTBLOCK && !NO_BOOTBLOCK_CONSOLE
default y default y
help help
Use console during the bootblock if supported Use console during the bootblock if supported

View File

@ -29,7 +29,7 @@ _cache_as_ram_setup:
bootblock_pre_c_entry: bootblock_pre_c_entry:
#if CONFIG(C_ENVIRONMENT_BOOTBLOCK) #if !CONFIG(ROMCC_BOOTBLOCK)
movl $cache_as_ram, %esp /* return address */ movl $cache_as_ram, %esp /* return address */
jmp check_mtrr /* Check if CPU properly reset */ jmp check_mtrr /* Check if CPU properly reset */
#endif #endif

View File

@ -18,7 +18,7 @@
#define CACHE_AS_RAM_SIZE CONFIG_DCACHE_RAM_SIZE #define CACHE_AS_RAM_SIZE CONFIG_DCACHE_RAM_SIZE
#define CACHE_AS_RAM_BASE CONFIG_DCACHE_RAM_BASE #define CACHE_AS_RAM_BASE CONFIG_DCACHE_RAM_BASE
#if CONFIG(C_ENVIRONMENT_BOOTBLOCK) #if !CONFIG(ROMCC_BOOTBLOCK)
#if ((CONFIG_C_ENV_BOOTBLOCK_SIZE & (CONFIG_C_ENV_BOOTBLOCK_SIZE - 1)) != 0) #if ((CONFIG_C_ENV_BOOTBLOCK_SIZE & (CONFIG_C_ENV_BOOTBLOCK_SIZE - 1)) != 0)
#error "CONFIG_C_ENV_BOOTBLOCK_SIZE must be a power of 2!" #error "CONFIG_C_ENV_BOOTBLOCK_SIZE must be a power of 2!"
#endif #endif

View File

@ -71,8 +71,8 @@ static void romstage_main(unsigned long bist)
/* We do not return here. */ /* We do not return here. */
} }
#if !CONFIG(C_ENVIRONMENT_BOOTBLOCK) #if CONFIG(ROMCC_BOOTBLOCK)
/* This wrapper enables easy transition towards C_ENVIRONMENT_BOOTBLOCK, /* This wrapper enables easy transition away from ROMCC_BOOTBLOCK
* keeping changes in cache_as_ram.S easy to manage. * keeping changes in cache_as_ram.S easy to manage.
*/ */
asmlinkage void bootblock_c_entry_bist(uint64_t base_timestamp, uint32_t bist) asmlinkage void bootblock_c_entry_bist(uint64_t base_timestamp, uint32_t bist)

View File

@ -1,7 +1,7 @@
config MICROCODE_UPDATE_PRE_RAM config MICROCODE_UPDATE_PRE_RAM
bool bool
depends on SUPPORT_CPU_UCODE_IN_CBFS depends on SUPPORT_CPU_UCODE_IN_CBFS
default y if C_ENVIRONMENT_BOOTBLOCK default y if !ROMCC_BOOTBLOCK
help help
Select this option if you want to update the microcode Select this option if you want to update the microcode
during the cache as ram setup. during the cache as ram setup.

View File

@ -21,7 +21,6 @@ config CPU_SPECIFIC_OPTIONS
select CPU_INTEL_COMMON_TIMEBASE select CPU_INTEL_COMMON_TIMEBASE
select PARALLEL_MP select PARALLEL_MP
select NO_FIXED_XIP_ROM_SIZE select NO_FIXED_XIP_ROM_SIZE
select C_ENVIRONMENT_BOOTBLOCK
config SMM_TSEG_SIZE config SMM_TSEG_SIZE
hex hex

View File

@ -27,6 +27,7 @@ config SLOT_SPECIFIC_OPTIONS # dummy
select UDELAY_TSC select UDELAY_TSC
select TSC_MONOTONIC_TIMER select TSC_MONOTONIC_TIMER
select UNKNOWN_TSC_RATE select UNKNOWN_TSC_RATE
select ROMCC_BOOTBLOCK
config DCACHE_RAM_BASE config DCACHE_RAM_BASE
hex hex

View File

@ -11,7 +11,6 @@ config SOCKET_SPECIFIC_OPTIONS # dummy
select UDELAY_TSC select UDELAY_TSC
select TSC_MONOTONIC_TIMER select TSC_MONOTONIC_TIMER
select SIPI_VECTOR_IN_ROM select SIPI_VECTOR_IN_ROM
select C_ENVIRONMENT_BOOTBLOCK
select CPU_INTEL_COMMON select CPU_INTEL_COMMON
select CPU_INTEL_COMMON_TIMEBASE select CPU_INTEL_COMMON_TIMEBASE

View File

@ -21,5 +21,4 @@ config CPU_QEMU_X86
select UDELAY_TSC select UDELAY_TSC
select TSC_MONOTONIC_TIMER select TSC_MONOTONIC_TIMER
select UNKNOWN_TSC_RATE select UNKNOWN_TSC_RATE
select C_ENVIRONMENT_BOOTBLOCK
select SMM_ASEG select SMM_ASEG

View File

@ -29,7 +29,7 @@
#include <arch/rom_segs.h> #include <arch/rom_segs.h>
#if CONFIG(C_ENVIRONMENT_BOOTBLOCK) || \ #if !CONFIG(ROMCC_BOOTBLOCK) || \
CONFIG(SIPI_VECTOR_IN_ROM) CONFIG(SIPI_VECTOR_IN_ROM)
/* Symbol _start16bit must be aligned to 4kB to start AP CPUs with /* Symbol _start16bit must be aligned to 4kB to start AP CPUs with
* Startup IPI message without RAM. * Startup IPI message without RAM.

View File

@ -77,7 +77,7 @@ config XIP_ROM_SIZE
config SETUP_XIP_CACHE config SETUP_XIP_CACHE
bool bool
depends on C_ENVIRONMENT_BOOTBLOCK depends on !ROMCC_BOOTBLOCK
depends on !NO_XIP_EARLY_STAGES depends on !NO_XIP_EARLY_STAGES
help help
Select this option to set up an MTRR to cache XIP stages loaded Select this option to set up an MTRR to cache XIP stages loaded

View File

@ -268,7 +268,9 @@ postcar-$(CONFIG_COLLECT_TIMESTAMPS) += timestamp.c
postcar-$(CONFIG_GENERIC_UDELAY) += timer.c postcar-$(CONFIG_GENERIC_UDELAY) += timer.c
# Use program.ld for all the platforms which use C fo the bootblock. # Use program.ld for all the platforms which use C fo the bootblock.
bootblock-$(CONFIG_C_ENVIRONMENT_BOOTBLOCK) += program.ld ifneq ($(CONFIG_ROMCC_BOOTBLOCK),y)
bootblock-y += program.ld
endif
decompressor-y += program.ld decompressor-y += program.ld
postcar-y += program.ld postcar-y += program.ld

View File

@ -17,6 +17,7 @@ config NORTHBRIDGE_AMD_AGESA
bool bool
default CPU_AMD_AGESA default CPU_AMD_AGESA
select CBMEM_TOP_BACKUP select CBMEM_TOP_BACKUP
select ROMCC_BOOTBLOCK
if NORTHBRIDGE_AMD_AGESA if NORTHBRIDGE_AMD_AGESA

View File

@ -18,6 +18,7 @@ config NORTHBRIDGE_AMD_PI
default y if CPU_AMD_PI default y if CPU_AMD_PI
default n default n
select CBMEM_TOP_BACKUP select CBMEM_TOP_BACKUP
select ROMCC_BOOTBLOCK
if NORTHBRIDGE_AMD_PI if NORTHBRIDGE_AMD_PI

View File

@ -26,7 +26,6 @@ config NORTHBRIDGE_SPECIFIC_OPTIONS # dummy
select INTEL_GMA_ACPI select INTEL_GMA_ACPI
select INTEL_GMA_SSC_ALTERNATE_REF select INTEL_GMA_SSC_ALTERNATE_REF
select PARALLEL_MP select PARALLEL_MP
select C_ENVIRONMENT_BOOTBLOCK
config VBOOT config VBOOT
select VBOOT_STARTS_IN_BOOTBLOCK select VBOOT_STARTS_IN_BOOTBLOCK

View File

@ -19,7 +19,6 @@ config NORTHBRIDGE_INTEL_HASWELL
select CACHE_MRC_SETTINGS select CACHE_MRC_SETTINGS
select INTEL_DDI select INTEL_DDI
select INTEL_GMA_ACPI select INTEL_GMA_ACPI
select C_ENVIRONMENT_BOOTBLOCK
select BOOTBLOCK_CONSOLE select BOOTBLOCK_CONSOLE
if NORTHBRIDGE_INTEL_HASWELL if NORTHBRIDGE_INTEL_HASWELL

View File

@ -27,7 +27,6 @@ config NORTHBRIDGE_SPECIFIC_OPTIONS # dummy
select INTEL_EDID select INTEL_EDID
select HAVE_VGA_TEXT_FRAMEBUFFER if MAINBOARD_DO_NATIVE_VGA_INIT select HAVE_VGA_TEXT_FRAMEBUFFER if MAINBOARD_DO_NATIVE_VGA_INIT
select PARALLEL_MP select PARALLEL_MP
select C_ENVIRONMENT_BOOTBLOCK
config NORTHBRIDGE_INTEL_SUBTYPE_I945GC config NORTHBRIDGE_INTEL_SUBTYPE_I945GC
def_bool n def_bool n

View File

@ -21,7 +21,6 @@ config NORTHBRIDGE_INTEL_NEHALEM
select INTEL_GMA_ACPI select INTEL_GMA_ACPI
select CACHE_MRC_SETTINGS select CACHE_MRC_SETTINGS
select HAVE_DEBUG_RAM_SETUP select HAVE_DEBUG_RAM_SETUP
select C_ENVIRONMENT_BOOTBLOCK
if NORTHBRIDGE_INTEL_NEHALEM if NORTHBRIDGE_INTEL_NEHALEM

View File

@ -28,7 +28,6 @@ config NORTHBRIDGE_SPECIFIC_OPTIONS # dummy
select INTEL_EDID if MAINBOARD_DO_NATIVE_VGA_INIT select INTEL_EDID if MAINBOARD_DO_NATIVE_VGA_INIT
select INTEL_GMA_ACPI select INTEL_GMA_ACPI
select PARALLEL_MP select PARALLEL_MP
select C_ENVIRONMENT_BOOTBLOCK
config VGA_BIOS_ID config VGA_BIOS_ID
string string

View File

@ -26,7 +26,6 @@ config NORTHBRIDGE_SPECIFIC_OPTIONS # dummy
select INTEL_GMA_ACPI select INTEL_GMA_ACPI
select CACHE_MRC_SETTINGS select CACHE_MRC_SETTINGS
select PARALLEL_MP select PARALLEL_MP
select C_ENVIRONMENT_BOOTBLOCK
config CBFS_SIZE config CBFS_SIZE
hex hex

View File

@ -95,7 +95,7 @@ config VBOOT_VBNV_FLASH
config VBOOT_STARTS_IN_BOOTBLOCK config VBOOT_STARTS_IN_BOOTBLOCK
bool bool
default n default n
depends on C_ENVIRONMENT_BOOTBLOCK depends on !ROMCC_BOOTBLOCK
help help
Firmware verification happens during the end of or right after the Firmware verification happens during the end of or right after the
bootblock. This implies that a static VBOOT2_WORK() buffer must be bootblock. This implies that a static VBOOT2_WORK() buffer must be

View File

@ -49,7 +49,6 @@ config CPU_SPECIFIC_OPTIONS
select SOC_AMD_COMMON_BLOCK_HDA select SOC_AMD_COMMON_BLOCK_HDA
select SOC_AMD_COMMON_BLOCK_SATA select SOC_AMD_COMMON_BLOCK_SATA
select SOC_AMD_COMMON_BLOCK_S3 select SOC_AMD_COMMON_BLOCK_S3
select C_ENVIRONMENT_BOOTBLOCK
select BOOT_DEVICE_SUPPORTS_WRITES if BOOT_DEVICE_SPI_FLASH select BOOT_DEVICE_SUPPORTS_WRITES if BOOT_DEVICE_SPI_FLASH
select BOOT_DEVICE_SPI_FLASH_RW_NOMMAP_EARLY if BOOT_DEVICE_SPI_FLASH select BOOT_DEVICE_SPI_FLASH_RW_NOMMAP_EARLY if BOOT_DEVICE_SPI_FLASH
select PARALLEL_MP select PARALLEL_MP
@ -82,7 +81,6 @@ config DCACHE_RAM_SIZE
default 0x10000 default 0x10000
config DCACHE_BSP_STACK_SIZE config DCACHE_BSP_STACK_SIZE
depends on C_ENVIRONMENT_BOOTBLOCK
hex hex
default 0x4000 default 0x4000
help help

View File

@ -69,7 +69,6 @@ config CPU_SPECIFIC_OPTIONS
select SOC_AMD_COMMON_BLOCK_PSP select SOC_AMD_COMMON_BLOCK_PSP
select SOC_AMD_COMMON_BLOCK_CAR select SOC_AMD_COMMON_BLOCK_CAR
select SOC_AMD_COMMON_BLOCK_S3 select SOC_AMD_COMMON_BLOCK_S3
select C_ENVIRONMENT_BOOTBLOCK
select BOOT_DEVICE_SUPPORTS_WRITES if BOOT_DEVICE_SPI_FLASH select BOOT_DEVICE_SUPPORTS_WRITES if BOOT_DEVICE_SPI_FLASH
select BOOT_DEVICE_SPI_FLASH_RW_NOMMAP_EARLY if BOOT_DEVICE_SPI_FLASH select BOOT_DEVICE_SPI_FLASH_RW_NOMMAP_EARLY if BOOT_DEVICE_SPI_FLASH
select PARALLEL_MP select PARALLEL_MP
@ -98,7 +97,6 @@ config DCACHE_RAM_SIZE
default 0x10000 default 0x10000
config DCACHE_BSP_STACK_SIZE config DCACHE_BSP_STACK_SIZE
depends on C_ENVIRONMENT_BOOTBLOCK
hex hex
default 0x4000 default 0x4000
help help

View File

@ -38,7 +38,6 @@ config CPU_SPECIFIC_OPTIONS
select ACPI_NHLT select ACPI_NHLT
select SOC_INTEL_COMMON_NHLT select SOC_INTEL_COMMON_NHLT
# Misc options # Misc options
select C_ENVIRONMENT_BOOTBLOCK
select CACHE_MRC_SETTINGS select CACHE_MRC_SETTINGS
select COMMON_FADT select COMMON_FADT
select FSP_PLATFORM_MEMORY_SETTINGS_VERSIONS select FSP_PLATFORM_MEMORY_SETTINGS_VERSIONS

View File

@ -37,6 +37,7 @@ config CPU_SPECIFIC_OPTIONS
select INTEL_GMA_SWSMISCI select INTEL_GMA_SWSMISCI
select CPU_INTEL_COMMON select CPU_INTEL_COMMON
select CPU_HAS_L2_ENABLE_MSR select CPU_HAS_L2_ENABLE_MSR
select ROMCC_BOOTBLOCK
config VBOOT config VBOOT
select VBOOT_MUST_REQUEST_DISPLAY select VBOOT_MUST_REQUEST_DISPLAY

View File

@ -46,7 +46,6 @@ config CPU_SPECIFIC_OPTIONS
select INTEL_GMA_SWSMISCI select INTEL_GMA_SWSMISCI
select CPU_INTEL_COMMON select CPU_INTEL_COMMON
select SOUTHBRIDGE_INTEL_COMMON_SMBUS select SOUTHBRIDGE_INTEL_COMMON_SMBUS
select C_ENVIRONMENT_BOOTBLOCK
config DCACHE_BSP_STACK_SIZE config DCACHE_BSP_STACK_SIZE
hex hex

View File

@ -41,7 +41,6 @@ config CPU_SPECIFIC_OPTIONS
select HAVE_POWER_STATE_AFTER_FAILURE select HAVE_POWER_STATE_AFTER_FAILURE
select HAVE_POWER_STATE_PREVIOUS_AFTER_FAILURE select HAVE_POWER_STATE_PREVIOUS_AFTER_FAILURE
select NO_FIXED_XIP_ROM_SIZE select NO_FIXED_XIP_ROM_SIZE
select C_ENVIRONMENT_BOOTBLOCK
config PCIEXP_ASPM config PCIEXP_ASPM
bool bool

View File

@ -58,7 +58,6 @@ config CPU_SPECIFIC_OPTIONS
select ARCH_VERSTAGE_X86_32 select ARCH_VERSTAGE_X86_32
select BOOT_DEVICE_SPI_FLASH_RW_NOMMAP_EARLY if BOOT_DEVICE_SPI_FLASH select BOOT_DEVICE_SPI_FLASH_RW_NOMMAP_EARLY if BOOT_DEVICE_SPI_FLASH
select BOOT_DEVICE_SUPPORTS_WRITES select BOOT_DEVICE_SUPPORTS_WRITES
select C_ENVIRONMENT_BOOTBLOCK
select CACHE_MRC_SETTINGS select CACHE_MRC_SETTINGS
select COMMON_FADT select COMMON_FADT
select CPU_INTEL_COMMON select CPU_INTEL_COMMON

View File

@ -32,7 +32,6 @@ config CPU_SPECIFIC_OPTIONS
select SOC_INTEL_COMMON select SOC_INTEL_COMMON
select SOC_INTEL_COMMON_RESET select SOC_INTEL_COMMON_RESET
select PLATFORM_USES_FSP2_0 select PLATFORM_USES_FSP2_0
select C_ENVIRONMENT_BOOTBLOCK
select IOAPIC select IOAPIC
select HAVE_SMI_HANDLER select HAVE_SMI_HANDLER
select CACHE_MRC_SETTINGS select CACHE_MRC_SETTINGS

View File

@ -14,7 +14,6 @@ config CPU_SPECIFIC_OPTIONS
select ARCH_VERSTAGE_X86_32 select ARCH_VERSTAGE_X86_32
select BOOT_DEVICE_SPI_FLASH_RW_NOMMAP_EARLY if BOOT_DEVICE_SPI_FLASH select BOOT_DEVICE_SPI_FLASH_RW_NOMMAP_EARLY if BOOT_DEVICE_SPI_FLASH
select BOOT_DEVICE_SUPPORTS_WRITES select BOOT_DEVICE_SUPPORTS_WRITES
select C_ENVIRONMENT_BOOTBLOCK
select CACHE_MRC_SETTINGS select CACHE_MRC_SETTINGS
select COMMON_FADT select COMMON_FADT
select CPU_INTEL_FIRMWARE_INTERFACE_TABLE select CPU_INTEL_FIRMWARE_INTERFACE_TABLE

View File

@ -26,7 +26,6 @@ config CPU_SPECIFIC_OPTIONS
select ARCH_RAMSTAGE_X86_32 select ARCH_RAMSTAGE_X86_32
select ARCH_ROMSTAGE_X86_32 select ARCH_ROMSTAGE_X86_32
select ARCH_VERSTAGE_X86_32 select ARCH_VERSTAGE_X86_32
select C_ENVIRONMENT_BOOTBLOCK
select NO_MMCONF_SUPPORT select NO_MMCONF_SUPPORT
select REG_SCRIPT select REG_SCRIPT
select PLATFORM_USES_FSP2_0 select PLATFORM_USES_FSP2_0
@ -226,11 +225,6 @@ config RMU_LOC
The location in CBFS that the RMU is located. It must match the The location in CBFS that the RMU is located. It must match the
strap-determined base address. strap-determined base address.
#####
# Bootblock
# The following options support the C_ENVIRONMENT_BOOTBLOCK.
#####
config DCACHE_BSP_STACK_SIZE config DCACHE_BSP_STACK_SIZE
hex hex
default 0x4000 default 0x4000

View File

@ -30,7 +30,6 @@ config CPU_SPECIFIC_OPTIONS
select CPU_INTEL_COMMON select CPU_INTEL_COMMON
select CPU_INTEL_FIRMWARE_INTERFACE_TABLE select CPU_INTEL_FIRMWARE_INTERFACE_TABLE
select CPU_INTEL_COMMON_HYPERTHREADING select CPU_INTEL_COMMON_HYPERTHREADING
select C_ENVIRONMENT_BOOTBLOCK
select FSP_M_XIP select FSP_M_XIP
select FSP_T_XIP if FSP_CAR select FSP_T_XIP if FSP_CAR
select GENERIC_GPIO_LIB select GENERIC_GPIO_LIB

View File

@ -14,7 +14,6 @@ config CPU_SPECIFIC_OPTIONS
select ARCH_VERSTAGE_X86_32 select ARCH_VERSTAGE_X86_32
select BOOT_DEVICE_SPI_FLASH_RW_NOMMAP_EARLY if BOOT_DEVICE_SPI_FLASH select BOOT_DEVICE_SPI_FLASH_RW_NOMMAP_EARLY if BOOT_DEVICE_SPI_FLASH
select BOOT_DEVICE_SUPPORTS_WRITES select BOOT_DEVICE_SUPPORTS_WRITES
select C_ENVIRONMENT_BOOTBLOCK
select CACHE_MRC_SETTINGS select CACHE_MRC_SETTINGS
select COMMON_FADT select COMMON_FADT
select CPU_INTEL_FIRMWARE_INTERFACE_TABLE select CPU_INTEL_FIRMWARE_INTERFACE_TABLE

View File

@ -276,7 +276,7 @@ void verified_boot_early_check(void)
{ {
printk(BIOS_SPEW, "%s: processing early items\n", __func__); printk(BIOS_SPEW, "%s: processing early items\n", __func__);
if (!CONFIG(C_ENVIRONMENT_BOOTBLOCK) && if (CONFIG(ROMCC_BOOTBLOCK) &&
CONFIG(VENDORCODE_ELTAN_VBOOT_SIGNED_MANIFEST)) { CONFIG(VENDORCODE_ELTAN_VBOOT_SIGNED_MANIFEST)) {
printk(BIOS_SPEW, "%s: check the manifest\n", __func__); printk(BIOS_SPEW, "%s: check the manifest\n", __func__);
if (verified_boot_check_manifest() != 0) if (verified_boot_check_manifest() != 0)