This patch aims to improve the microcode in CBFS handling that was brought by the last patches from Stefan and the Chromium team. Choices in Kconfig - 1) Generate microcode from tree (default) - 2) Include external microcode file - 3) Do not put microcode in CBFS The idea is to give the user full control over including non-free blobs in the final ROM image. MICROCODE_INCLUDE_PATH Kconfig variable is eliminated. Microcode is handled by a special class, cpu_microcode, as such: cpu_microcode-y += microcode_file.c MICROCODE_IN_CBFS should, in the future, be eliminated. Right now it is needed by intel microcode updating. Once all intel cpus are converted to cbfs updating, this variable can go away. These files are then compiled and assembled into a binary CBFS file. The advantage of doing it this way versus the current method is that 1) The rule is CPU-agnostic 2) Gives user more control over if and how to include microcode blobs 3) The rules for building the microcode binary are kept in src/cpu/Makefile.inc, and thus would not clobber the other makefiles, which are already overloaded and very difficult to navigate. Change-Id: I38d0c9851691aa112e93031860e94895857ebb76 Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com> Reviewed-on: http://review.coreboot.org/1245 Tested-by: build bot (Jenkins) Reviewed-by: Anton Kochkov <anton.kochkov@gmail.com> Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
35 lines
553 B
Plaintext
35 lines
553 B
Plaintext
config CPU_INTEL_MODEL_206AX
|
|
bool
|
|
|
|
config CPU_INTEL_MODEL_306AX
|
|
bool
|
|
|
|
if CPU_INTEL_MODEL_206AX || CPU_INTEL_MODEL_306AX
|
|
|
|
config CPU_SPECIFIC_OPTIONS
|
|
def_bool y
|
|
select SMP
|
|
select SSE2
|
|
select UDELAY_LAPIC
|
|
select SMM_TSEG
|
|
select CPU_MICROCODE_IN_CBFS
|
|
#select AP_IN_SIPI_WAIT
|
|
select TSC_SYNC_MFENCE
|
|
|
|
config BOOTBLOCK_CPU_INIT
|
|
string
|
|
default "cpu/intel/model_206ax/bootblock.c"
|
|
|
|
config SERIAL_CPU_INIT
|
|
bool
|
|
default n
|
|
|
|
config SMM_TSEG_SIZE
|
|
hex
|
|
default 0x800000
|
|
|
|
config MICROCODE_INCLUDE_PATH
|
|
string
|
|
default "src/cpu/intel/model_206ax"
|
|
endif
|