]> git.proxmox.com Git - mirror_edk2.git/commitdiff
IntelFsp2Wrapper/dsc: Add FspTpmMeasurementLib and PcdFspMeasurementConfig.
authorJiewen Yao <jiewen.yao@intel.com>
Tue, 18 Aug 2020 06:26:16 +0000 (14:26 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Wed, 26 Aug 2020 15:56:11 +0000 (15:56 +0000)
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2376

Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Chasel Chiu <chasel.chiu@intel.com>
Cc: Nate DeSimone <nathaniel.l.desimone@intel.com>
Cc: Star Zeng <star.zeng@intel.com>
Cc: Qi Zhang <qi1.zhang@intel.com>
Signed-off-by: Jiewen Yao <jiewen.yao@intel.com>
Message-Id: <20200818062618.3698-7-qi1.zhang@intel.com>
Reviewed-by: Jian J Wang <jian.j.wang@intel.com>
[lersek@redhat.com: extend (C) notice in DEC to 2020 per Chasel's request]
Reviewed-by: Chasel Chiu <chasel.chiu@intel.com>
IntelFsp2WrapperPkg/IntelFsp2WrapperPkg.dec
IntelFsp2WrapperPkg/IntelFsp2WrapperPkg.dsc

index faf2be621c3431a193cc0115046a4dfd17472cb6..768df1336fac394b7d4df9b34521b49e05282218 100644 (file)
@@ -1,7 +1,7 @@
 ## @file\r
 # Provides drivers and definitions to support fsp in EDKII bios.\r
 #\r
-# Copyright (c) 2014 - 2018, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2014 - 2020, Intel Corporation. All rights reserved.<BR>\r
 # SPDX-License-Identifier: BSD-2-Clause-Patent\r
 #\r
 ##\r
   #\r
   gIntelFsp2WrapperTokenSpaceGuid.PcdFspModeSelection|0x00000001|UINT8|0x4000000A\r
 \r
+  ## This PCD decides how FSP is measured\r
+  # 1) The BootGuard ACM may already measured the FSP component, such as FSPT/FSPM.\r
+  # We need a flag (PCD) to indicate if there is need to do such FSP measurement or NOT.\r
+  # 2) The FSP binary includes FSP code and FSP UPD region. The UPD region is considered\r
+  # as configuration block, and it may be updated by OEM by design.\r
+  # This flag (PCD) is to indicate if we need isolate the the UPD region from the FSP code region.\r
+  # BIT0: Need measure FSP. (for FSP1.x) - reserved in FSP2.\r
+  # BIT1: Need measure FSPT. (for FSP 2.x)\r
+  # BIT2: Need measure FSPM. (for FSP 2.x)\r
+  # BIT3: Need measure FSPS. (for FSP 2.x)\r
+  # BIT4~30: reserved.\r
+  # BIT31: Need isolate UPD region measurement.\r
+    #0: measure FSP[T|M|S] as one binary in one record (PCR0).\r
+    #1: measure FSP UPD region in one record (PCR1), the FSP code without UPD in another record (PCR0).\r
+  #\r
+  gIntelFsp2WrapperTokenSpaceGuid.PcdFspMeasurementConfig|0x00000000|UINT32|0x4000000B\r
+\r
 [PcdsFixedAtBuild, PcdsPatchableInModule,PcdsDynamic,PcdsDynamicEx]\r
   #\r
   ## These are the base address of FSP-M/S\r
index cb4f69285ddf71d08e4ccda12546047f0f14ec78..aa2eb26c33275d1aca3a96c708737a8ca3d289f6 100644 (file)
@@ -1,7 +1,7 @@
 ## @file\r
 # Provides drivers and definitions to support fsp in EDKII bios.\r
 #\r
-# Copyright (c) 2014 - 2016, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2014 - 2020, Intel Corporation. All rights reserved.<BR>\r
 # SPDX-License-Identifier: BSD-2-Clause-Patent\r
 #\r
 ##\r
@@ -45,6 +45,7 @@
   # FSP Wrapper Lib\r
   FspWrapperApiLib|IntelFsp2WrapperPkg/Library/BaseFspWrapperApiLib/BaseFspWrapperApiLib.inf\r
   FspWrapperApiTestLib|IntelFsp2WrapperPkg/Library/BaseFspWrapperApiTestLibNull/BaseFspWrapperApiTestLibNull.inf\r
+  FspMeasurementLib|IntelFsp2WrapperPkg/Library/BaseFspMeasurementLib/BaseFspMeasurementLib.inf\r
 \r
   # FSP platform sample\r
   FspWrapperPlatformLib|IntelFsp2WrapperPkg/Library/BaseFspWrapperPlatformLibSample/BaseFspWrapperPlatformLibSample.inf\r
@@ -57,6 +58,8 @@
   PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf\r
   MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf\r
   HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf\r
+  TpmMeasurementLib|SecurityPkg/Library/PeiTpmMeasurementLib/PeiTpmMeasurementLib.inf\r
+  TcgEventLogRecordLib|SecurityPkg/Library/TcgEventLogRecordLib/TcgEventLogRecordLib.inf\r
 \r
 [LibraryClasses.common.DXE_DRIVER]\r
   UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf\r
@@ -73,6 +76,7 @@
   IntelFsp2WrapperPkg/Library/SecFspWrapperPlatformSecLibSample/SecFspWrapperPlatformSecLibSample.inf\r
   IntelFsp2WrapperPkg/Library/PeiFspWrapperHobProcessLibSample/PeiFspWrapperHobProcessLibSample.inf\r
   IntelFsp2WrapperPkg/Library/PeiFspWrapperApiTestLib/PeiFspWrapperApiTestLib.inf\r
+  IntelFsp2WrapperPkg/Library/BaseFspMeasurementLib/BaseFspMeasurementLib.inf\r
 \r
   IntelFsp2WrapperPkg/FspmWrapperPeim/FspmWrapperPeim.inf\r
   IntelFsp2WrapperPkg/FspsWrapperPeim/FspsWrapperPeim.inf\r