This folder provides the sample build for Microcode FMP. The INF is to convert the text format Microcode to binary. The DSC/FDF is to convert the Microcode binary to Microcode FMP.
Cc: Jeff Fan <jeff....@intel.com> Cc: Feng Tian <feng.t...@intel.com> Cc: Star Zeng <star.z...@intel.com> Cc: Michael D Kinney <michael.d.kin...@intel.com> Cc: Liming Gao <liming....@intel.com> Cc: Chao Zhang <chao.b.zh...@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jiewen Yao <jiewen....@intel.com> --- UefiCpuPkg/MicrocodeUpdate/SampleBuild/MicrocodePkg/Microcode/Microcode.inf | 25 ++++++++++++ UefiCpuPkg/MicrocodeUpdate/SampleBuild/MicrocodePkg/MicrocodeFmpPkg.dsc | 23 +++++++++++ UefiCpuPkg/MicrocodeUpdate/SampleBuild/MicrocodePkg/MicrocodeFmpPkg.fdf | 40 ++++++++++++++++++++ UefiCpuPkg/MicrocodeUpdate/SampleBuild/MicrocodePkg/MicrocodePkg.dsc | 25 ++++++++++++ 4 files changed, 113 insertions(+) diff --git a/UefiCpuPkg/MicrocodeUpdate/SampleBuild/MicrocodePkg/Microcode/Microcode.inf b/UefiCpuPkg/MicrocodeUpdate/SampleBuild/MicrocodePkg/Microcode/Microcode.inf new file mode 100644 index 0000000..00afe62 --- /dev/null +++ b/UefiCpuPkg/MicrocodeUpdate/SampleBuild/MicrocodePkg/Microcode/Microcode.inf @@ -0,0 +1,25 @@ +## @file +# Microcode text file to binary +# +# Convert text format microcode to binary format. +# +# Copyright (c) 2016, Intel Corporation. All rights reserved.<BR> +# This program and the accompanying materials +# are licensed and made available under the terms and conditions of the BSD License +# which accompanies this distribution. The full text of the license may be found at +# http://opensource.org/licenses/bsd-license.php +# +# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. +# +## + +[Defines] +BASE_NAME = Microcode +FILE_GUID = ABC36AAC-2031-4422-896E-0A3B899AD0B4 +COMPONENT_TYPE = Microcode +FFS_EXT = .ffs + +[Sources] +Microcode1.inc +Microcode2.inc diff --git a/UefiCpuPkg/MicrocodeUpdate/SampleBuild/MicrocodePkg/MicrocodeFmpPkg.dsc b/UefiCpuPkg/MicrocodeUpdate/SampleBuild/MicrocodePkg/MicrocodeFmpPkg.dsc new file mode 100644 index 0000000..081122b --- /dev/null +++ b/UefiCpuPkg/MicrocodeUpdate/SampleBuild/MicrocodePkg/MicrocodeFmpPkg.dsc @@ -0,0 +1,23 @@ +## @file +# +# Copyright (c) 2016, Intel Corporation. All rights reserved.<BR> +# +# This program and the accompanying materials +# are licensed and made available under the terms and conditions of the BSD License +# which accompanies this distribution. The full text of the license may be found at +# http://opensource.org/licenses/bsd-license.php +# +# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. +# +## + +[Defines] + PLATFORM_NAME = MicrocodeFmpPkg + PLATFORM_GUID = 6875FD33-602E-4EF9-9DF2-8BA7D8B7A7AF + PLATFORM_VERSION = 0.1 + FLASH_DEFINITION = MicrocodePkg/MicrocodeFmpPkg.fdf + OUTPUT_DIRECTORY = Build/MicrocodePkg + SUPPORTED_ARCHITECTURES = IA32|X64 + BUILD_TARGETS = DEBUG|RELEASE + SKUID_IDENTIFIER = DEFAULT diff --git a/UefiCpuPkg/MicrocodeUpdate/SampleBuild/MicrocodePkg/MicrocodeFmpPkg.fdf b/UefiCpuPkg/MicrocodeUpdate/SampleBuild/MicrocodePkg/MicrocodeFmpPkg.fdf new file mode 100644 index 0000000..0436090 --- /dev/null +++ b/UefiCpuPkg/MicrocodeUpdate/SampleBuild/MicrocodePkg/MicrocodeFmpPkg.fdf @@ -0,0 +1,40 @@ +## @file +# +# Copyright (c) 2016, Intel Corporation. All rights reserved.<BR> +# +# This program and the accompanying materials +# are licensed and made available under the terms and conditions of the BSD License +# which accompanies this distribution. The full text of the license may be found at +# http://opensource.org/licenses/bsd-license.php +# +# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. +# +## + +[FmpPayload.FmpPayloadMicrocode1] +IMAGE_HEADER_INIT_VERSION = 0x02 +IMAGE_TYPE_ID = 96d4fdcd-1502-424d-9d4c-9b12d2dcae5c # Microcode GUID (do not change it) +IMAGE_INDEX = 0x1 +HARDWARE_INSTANCE = 0x0 + +FILE DATA = $(WORKSPACE)/$(OUTPUT_DIRECTORY)/$(TARGET)_$(TOOL_CHAIN_TAG)/IA32/MicrocodePkg/Microcode/Microcode/OUTPUT/Microcode1.mcb +#FILE DATA = MicrocodePkg/Microcode/Microcode1.mcb + +[FmpPayload.FmpPayloadMicrocode2] +IMAGE_HEADER_INIT_VERSION = 0x02 +IMAGE_TYPE_ID = 96d4fdcd-1502-424d-9d4c-9b12d2dcae5c # Microcode GUID (do not change it) +IMAGE_INDEX = 0x2 +HARDWARE_INSTANCE = 0x0 + +FILE DATA = $(WORKSPACE)/$(OUTPUT_DIRECTORY)/$(TARGET)_$(TOOL_CHAIN_TAG)/IA32/MicrocodePkg/Microcode/Microcode/OUTPUT/Microcode2.mcb +#FILE DATA = MicrocodePkg/Microcode/Microcode2.mcb + +[Capsule.MicrocodeCapsule] +CAPSULE_GUID = 6dcbd5ed-e82d-4c44-bda1-7194199ad92a # FMP special Guid (do not change it) +CAPSULE_FLAGS = PersistAcrossReset,InitiateReset +CAPSULE_HEADER_SIZE = 0x20 +CAPSULE_HEADER_INIT_VERSION = 0x1 + +FMP_PAYLOAD = FmpPayloadMicrocode1 +FMP_PAYLOAD = FmpPayloadMicrocode2 diff --git a/UefiCpuPkg/MicrocodeUpdate/SampleBuild/MicrocodePkg/MicrocodePkg.dsc b/UefiCpuPkg/MicrocodeUpdate/SampleBuild/MicrocodePkg/MicrocodePkg.dsc new file mode 100644 index 0000000..3572a47 --- /dev/null +++ b/UefiCpuPkg/MicrocodeUpdate/SampleBuild/MicrocodePkg/MicrocodePkg.dsc @@ -0,0 +1,25 @@ +## @file +# +# Copyright (c) 2016, Intel Corporation. All rights reserved.<BR> +# +# This program and the accompanying materials +# are licensed and made available under the terms and conditions of the BSD License +# which accompanies this distribution. The full text of the license may be found at +# http://opensource.org/licenses/bsd-license.php +# +# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. +# +## + +[Defines] + PLATFORM_NAME = MicrocodePkg + PLATFORM_GUID = 89495A67-A67B-4DC8-8277-679CA6D930CB + PLATFORM_VERSION = 0.1 + OUTPUT_DIRECTORY = Build/MicrocodePkg + SUPPORTED_ARCHITECTURES = IA32|X64 + BUILD_TARGETS = DEBUG|RELEASE + SKUID_IDENTIFIER = DEFAULT + +[Components] + MicrocodePkg/Microcode/Microcode.inf -- 2.7.4.windows.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel