From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) (using TLSv1 with cipher CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 8E23381CEF for ; Thu, 27 Oct 2016 23:57:53 -0700 (PDT) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga104.fm.intel.com with ESMTP; 27 Oct 2016 22:50:46 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.31,556,1473145200"; d="scan'208";a="778912915" Received: from jyao1-mobl.ccr.corp.intel.com ([10.254.213.209]) by FMSMGA003.fm.intel.com with ESMTP; 27 Oct 2016 22:50:44 -0700 From: Jiewen Yao To: edk2-devel@lists.01.org Cc: Jeff Fan , Feng Tian , Star Zeng , Michael D Kinney , Liming Gao , Chao Zhang Date: Fri, 28 Oct 2016 13:50:27 +0800 Message-Id: <1477633828-15320-7-git-send-email-jiewen.yao@intel.com> X-Mailer: git-send-email 2.7.4.windows.1 In-Reply-To: <1477633828-15320-1-git-send-email-jiewen.yao@intel.com> References: <1477633828-15320-1-git-send-email-jiewen.yao@intel.com> Subject: [PATCH V6 6/7] UefiCpuPkg/MicrocodeUpdate: Add Microcode FMP build sample X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Oct 2016 06:57:53 -0000 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 Cc: Feng Tian Cc: Star Zeng Cc: Michael D Kinney Cc: Liming Gao Cc: Chao Zhang Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jiewen Yao --- 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.
+# 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.
+# +# 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.
+# +# 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.
+# +# 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