audk/IntelSiliconPkg/Feature/Capsule/MicrocodeCapsuleTxt
Star Zeng c8a2f3c332 IntelSiliconPkg: Move MicrocodeUpdate from UefiCpuPkg
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=540

To consume FIT table for Microcode update,
UefiCpuPkg/Feature/Capsule/MicrocodeUpdateDxe
needs to be updated to consume
IntelSiliconPkg/Include/IndustryStandard/FirmwareInterfaceTable.h,
but UefiCpuPkg could not depend on IntelSiliconPkg.

Since the Microcode update feature is specific to Intel,
we can first move the Microcode update feature code from
UefiCpuPkg to IntelSiliconPkg [first step], then update
the code to consume FIT table [second step].

This patch series is for the first step.

Note: No any code change in this patch, just move.
Next patch will update MicrocodeUpdate to build with the package.

Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Cc: Eric Dong <eric.dong@intel.com>
Cc: Laszlo Ersek <lersek@redhat.com>
Regression-tested-by: Yonghong Zhu <yonghong.zhu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
Acked-by: Laszlo Ersek <lersek@redhat.com>
2017-11-30 09:25:28 +08:00
..
Microcode IntelSiliconPkg: Move MicrocodeUpdate from UefiCpuPkg 2017-11-30 09:25:28 +08:00
MicrocodeCapsuleTxt.dsc IntelSiliconPkg: Move MicrocodeUpdate from UefiCpuPkg 2017-11-30 09:25:28 +08:00
MicrocodeCapsuleTxt.fdf IntelSiliconPkg: Move MicrocodeUpdate from UefiCpuPkg 2017-11-30 09:25:28 +08:00
Readme.md IntelSiliconPkg: Move MicrocodeUpdate from UefiCpuPkg 2017-11-30 09:25:28 +08:00

Readme.md

How to generate Microcode FMP from Microcode TXT file

  1. Copy directory UefiCpuPkg/Feature/Capsule/MicrocodeUpdateTxt to <Your Platform Package>/MicrocodeUpdateTxt

  2. Copy microcode TXT file to<Your Platform Package>/MicrocodeUpdateTxt/Microcode

  3. Uncomment and update statement in [Sources] section of <Your Platform Package>/MicrocodeUpdateTxt/Microcode/Microcode.inf with name of Microcode TXT file copied in previous step.

    [Sources]

Uncomment and update FILE DATA statement in <Your Platform Package>/MicrocodeUpdateTxt/MicrocodeCapsuleTxt.fdf with path to a Microcode MCB file. The MCB file is placed in $(WORKSPACE)/$(OUTPUT_DIRECTORY)/$(TARGET)_$(TOOL_CHAIN_TAG)/IA32/<Your Platform Package>/MicrocodeUpdateTxt/Microcode/Microcode/OUTPUT/.

FILE DATA = <your Microcode MCB file path>

Uncomment and update PLATFORM_NAME, FLASH_DEFINITION, OUTPUT_DIRECTORY section in <Your Platform Package>/MicrocodeUpdateTxt/MicrocodeCapsuleTxt.dsc with .

PLATFORM_NAME                  = <Your Platform Package>
FLASH_DEFINITION               = <Your Platform Package>/MicrocodeCapsuleTxt/MicrocodeCapsuleTxt.fdf
OUTPUT_DIRECTORY               = Build/<Your Platform Package>

Uncomment and update statement in Components section of <Your Platform Package>/MicrocodeUpdateTxt/MicrocodeCapsuleTxt.dsc with path to a Microcode INF file.

[Components]
<Your Microcode INF file>
  1. Use EDK II build tools to generate the Microcode FMP Capsule

build -p <Your Platform Package>/MicrocodeCapsuleTxt/MicrocodeCapsuleTxt.dsc

  1. The generated Microcode FMP Capsule is found at $(WORKSPACE)/$(OUTPUT_DIRECTORY)/$(TARGET)_$(TOOL_CHAIN_TAG)/FV/MicrocodeCapsule.Cap