summaryrefslogtreecommitdiff
path: root/UefiCpuPkg/MicrocodeMeasurementDxe/MicrocodeMeasurementDxe.inf
diff options
context:
space:
mode:
authorYang, Longlong <longlong.yang@intel.com>2021-12-14 15:18:55 +0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2021-12-24 09:08:20 +0000
commit6612ff85611bc2be16dc0fd5de0e1413df88941a (patch)
treee93396b37b91e7ed4fd3855d90910bf3154bd3bb /UefiCpuPkg/MicrocodeMeasurementDxe/MicrocodeMeasurementDxe.inf
parent15c596aeebc24bb97deb78d98bd8517a8b9ac243 (diff)
downloadedk2-6612ff85611bc2be16dc0fd5de0e1413df88941a.zip
edk2-6612ff85611bc2be16dc0fd5de0e1413df88941a.tar.gz
edk2-6612ff85611bc2be16dc0fd5de0e1413df88941a.tar.bz2
UefiCpuPkg: Extend measurement of microcode patches to TPM
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3683 TCG specification says BIOS should extend measurement of microcode to TPM. However, reference BIOS is not doing this. BIOS shall extend measurement of microcode to TPM. Cc: Eric Dong <eric.dong@intel.com> Reviewed-by: Ray Ni <ray.ni@intel.com> Cc: Rahul Kumar <rahul1.kumar@intel.com> Cc: Jiewen Yao <jiewen.yao@intel.com> Cc: Min M Xu <min.m.xu@intel.com> Cc: Qi Zhang <qi1.zhang@intel.com> Signed-off-by: Longlong Yang <longlong.yang@intel.com>
Diffstat (limited to 'UefiCpuPkg/MicrocodeMeasurementDxe/MicrocodeMeasurementDxe.inf')
-rw-r--r--UefiCpuPkg/MicrocodeMeasurementDxe/MicrocodeMeasurementDxe.inf56
1 files changed, 56 insertions, 0 deletions
diff --git a/UefiCpuPkg/MicrocodeMeasurementDxe/MicrocodeMeasurementDxe.inf b/UefiCpuPkg/MicrocodeMeasurementDxe/MicrocodeMeasurementDxe.inf
new file mode 100644
index 0000000..649fb94
--- /dev/null
+++ b/UefiCpuPkg/MicrocodeMeasurementDxe/MicrocodeMeasurementDxe.inf
@@ -0,0 +1,56 @@
+## @file
+# This driver measures microcode patches to TPM.
+#
+# This driver consumes gEdkiiMicrocodePatchHobGuid, packs all unique
+# microcode patch found in gEdkiiMicrocodePatchHobGuid to a binary blob,
+# and measures the binary blob to TPM.
+#
+# Copyright (c) 2021, Intel Corporation. All rights reserved.<BR>
+#
+# SPDX-License-Identifier: BSD-2-Clause-Patent
+#
+##
+
+[Defines]
+ INF_VERSION = 0x00010005
+ BASE_NAME = MicrocodeMeasurementDxe
+ MODULE_UNI_FILE = MicrocodeMeasurementDxe.uni
+ FILE_GUID = 0A32A803-ACDF-4C89-8293-91011548CD91
+ MODULE_TYPE = DXE_DRIVER
+ VERSION_STRING = 1.0
+ ENTRY_POINT = MicrocodeMeasurementDriverEntryPoint
+
+#
+# The following information is for reference only and not required by the build tools.
+#
+# VALID_ARCHITECTURES = IA32 X64
+#
+
+[Sources]
+ MicrocodeMeasurementDxe.c
+
+[Packages]
+ MdePkg/MdePkg.dec
+ MdeModulePkg/MdeModulePkg.dec
+ UefiCpuPkg/UefiCpuPkg.dec
+
+[LibraryClasses]
+ UefiBootServicesTableLib
+ MemoryAllocationLib
+ BaseMemoryLib
+ BaseLib
+ UefiLib
+ UefiDriverEntryPoint
+ DebugLib
+ HobLib
+ MicrocodeLib
+ TpmMeasurementLib
+
+[Guids]
+ gEdkiiMicrocodePatchHobGuid ## CONSUMES ## HOB
+
+[UserExtensions.TianoCore."ExtraFiles"]
+ MicrocodeMeasurementDxeExtra.uni
+
+[Depex]
+ TRUE