mirror of
https://github.com/tianocore/edk2
synced 2026-08-27 00:23:19 -04:00
ArmPlatformPkg/PeilessSec: apply PeilessSecMeasureLib in PeilessSec
To add event logs like Tcg2Pei, apply PeilessSecMeasureLib in PeilessSec. Signed-off-by: Yeoreum Yun <yeoreum.yun@arm.com>
This commit is contained in:
parent
9bca0ee3b2
commit
289b23ec12
5 changed files with 14 additions and 0 deletions
|
|
@ -50,6 +50,7 @@
|
|||
"EmbeddedPkg/EmbeddedPkg.dec",
|
||||
"MdeModulePkg/MdeModulePkg.dec",
|
||||
"MdePkg/MdePkg.dec",
|
||||
"SecurityPkg/SecurityPkg.dec",
|
||||
"UefiCpuPkg/UefiCpuPkg.dec"
|
||||
],
|
||||
# For host based unit tests
|
||||
|
|
|
|||
|
|
@ -39,6 +39,8 @@
|
|||
ArmLib|ArmPkg/Library/ArmLib/ArmBaseLib.inf
|
||||
ArmPlatformLib|ArmPlatformPkg/Library/ArmPlatformLibNull/ArmPlatformLibNull.inf
|
||||
ArmMmuLib|UefiCpuPkg/Library/ArmMmuLib/ArmMmuBaseLib.inf
|
||||
ArmSmcLib|MdePkg/Library/ArmSmcLib/ArmSmcLib.inf
|
||||
ArmSvcLib|MdePkg/Library/ArmSvcLib/ArmSvcLib.inf
|
||||
BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
|
||||
BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
|
||||
CacheMaintenanceLib|ArmPkg/Library/ArmCacheMaintenanceLib/ArmCacheMaintenanceLib.inf
|
||||
|
|
@ -80,10 +82,15 @@
|
|||
PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointerLib.inf
|
||||
|
||||
[LibraryClasses.common.SEC]
|
||||
ArmFfaLib|MdeModulePkg/Library/ArmFfaLib/ArmFfaSecLib.inf
|
||||
ExtractGuidedSectionLib|EmbeddedPkg/Library/PrePiExtractGuidedSectionLib/PrePiExtractGuidedSectionLib.inf
|
||||
HobLib|EmbeddedPkg/Library/PrePiHobLib/PrePiHobLib.inf
|
||||
MemoryAllocationLib|EmbeddedPkg/Library/PrePiMemoryAllocationLib/PrePiMemoryAllocationLib.inf
|
||||
PrePiHobListPointerLib|ArmPlatformPkg/Library/PrePiHobListPointerLib/PrePiHobListPointerLib.inf
|
||||
Tpm2CommandLib|SecurityPkg/Library/Tpm2CommandLib/Tpm2CommandLib.inf
|
||||
Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibFfa/Tpm2DeviceSecLibFfa.inf
|
||||
HashLib|SecurityPkg/Library/HashLibTpm2/HashLibTpm2PeilessSecLib.inf
|
||||
PeilessSecMeasureLib|SecurityPkg/Library/PeilessSecMeasureLib/PeilessSecMeasureLib.inf
|
||||
|
||||
[LibraryClasses.AARCH64.MM_STANDALONE]
|
||||
HobLib|StandaloneMmPkg/Library/StandaloneMmHobLib/StandaloneMmHobLib.inf
|
||||
|
|
|
|||
|
|
@ -180,6 +180,9 @@ SecMain (
|
|||
Status = DecompressFirstFv ();
|
||||
ASSERT_EFI_ERROR (Status);
|
||||
|
||||
Status = MeasurePeilessSec ();
|
||||
ASSERT_EFI_ERROR (Status);
|
||||
|
||||
// Load the DXE Core and transfer control to it
|
||||
Status = LoadDxeCoreFromFv (NULL, 0);
|
||||
ASSERT_EFI_ERROR (Status);
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@
|
|||
#include <Library/DebugLib.h>
|
||||
#include <Library/HobLib.h>
|
||||
#include <Library/PerformanceLib.h>
|
||||
#include <Library/PeilessSecMeasureLib.h>
|
||||
#include <Library/PrePiHobListPointerLib.h>
|
||||
#include <Library/PrePiLib.h>
|
||||
#include <Library/PrintLib.h>
|
||||
|
|
|
|||
|
|
@ -30,6 +30,7 @@
|
|||
EmbeddedPkg/EmbeddedPkg.dec
|
||||
MdeModulePkg/MdeModulePkg.dec
|
||||
MdePkg/MdePkg.dec
|
||||
SecurityPkg/SecurityPkg.dec
|
||||
|
||||
[LibraryClasses]
|
||||
ArmLib
|
||||
|
|
@ -40,6 +41,7 @@
|
|||
DebugLib
|
||||
HobLib
|
||||
MemoryInitPeiLib
|
||||
PeilessSecMeasureLib
|
||||
PerformanceLib
|
||||
PlatformPeiLib
|
||||
PrePiHobListPointerLib
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue