From 39fea6e2a87aa79e6b156c96f0b2ba3ae9a35ba2 Mon Sep 17 00:00:00 2001 From: Vadim Bendebury Date: Tue, 19 Jun 2012 08:34:51 -0700 Subject: Add microcode blob processing When microcode storage in CBFS is enabled, the make system is supposed to generate the microcode blob and place it into the generated ROM image as a CBFS component. The microcode source representation does not change: it is still an array of 32 bit constants. This new addition compiles the array into a separate object file and then strips all sections but data. The raw data section is then included into CBFS as a file named 'microcode_blob.bin' of type 0x53, which is assigned to microcode storage. Change-Id: I84ae040be52f520b106e3471c7e391e64d7847d9 Signed-off-by: Vadim Bendebury Reviewed-on: http://review.coreboot.org/1295 Tested-by: build bot (Jenkins) --- src/arch/x86/Makefile.inc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/arch') diff --git a/src/arch/x86/Makefile.inc b/src/arch/x86/Makefile.inc index f49883182e..306f239a9b 100644 --- a/src/arch/x86/Makefile.inc +++ b/src/arch/x86/Makefile.inc @@ -34,6 +34,12 @@ cmos_layout.bin-type = 0x01aa OPTION_TABLE_H:=$(obj)/option_table.h endif +ifeq ($(CONFIG_MICROCODE_IN_CBFS),y) +cbfs-files-y += microcode_blob.bin +microcode_blob.bin-file = $(obj)/microcode_blob.bin +microcode_blob.bin-type = 0x53 +endif + ####################################################################### # Build the final rom image COREBOOT_ROM_DEPENDENCIES:= -- cgit v1.2.3