#\r
# Copyright (c) 2009 - 2021, Intel Corporation. All rights reserved.<BR>\r
# (C) Copyright 2015-2020 Hewlett Packard Enterprise Development LP<BR>\r
+# Copyright (c) 2022, Loongson Technology Corporation Limited. All rights reserved.<BR>\r
# SPDX-License-Identifier: BSD-2-Clause-Patent\r
#\r
##\r
PLATFORM_VERSION = 0.98\r
DSC_SPECIFICATION = 0x00010005\r
OUTPUT_DIRECTORY = Build/SecurityPkg\r
- SUPPORTED_ARCHITECTURES = IA32|X64|EBC|ARM|AARCH64|RISCV64\r
+ SUPPORTED_ARCHITECTURES = IA32|X64|EBC|ARM|AARCH64|RISCV64|LOONGARCH64\r
BUILD_TARGETS = DEBUG|RELEASE|NOOPT\r
SKUID_IDENTIFIER = DEFAULT\r
\r
TcgEventLogRecordLib|SecurityPkg/Library/TcgEventLogRecordLib/TcgEventLogRecordLib.inf\r
MmUnblockMemoryLib|MdePkg/Library/MmUnblockMemoryLib/MmUnblockMemoryLibNull.inf\r
SecureBootVariableLib|SecurityPkg/Library/SecureBootVariableLib/SecureBootVariableLib.inf\r
+ PlatformPKProtectionLib|SecurityPkg/Library/PlatformPKProtectionLibVarPolicy/PlatformPKProtectionLibVarPolicy.inf\r
SecureBootVariableProvisionLib|SecurityPkg/Library/SecureBootVariableProvisionLib/SecureBootVariableProvisionLib.inf\r
+ TdxLib|MdePkg/Library/TdxLib/TdxLib.inf\r
\r
[LibraryClasses.ARM, LibraryClasses.AARCH64]\r
#\r
# Add support for GCC stack protector\r
NULL|MdePkg/Library/BaseStackCheckLib/BaseStackCheckLib.inf\r
\r
+ ArmSoftFloatLib|ArmPkg/Library/ArmSoftFloatLib/ArmSoftFloatLib.inf\r
+\r
+[LibraryClasses.ARM]\r
+ RngLib|MdePkg/Library/BaseRngLibTimerLib/BaseRngLibTimerLib.inf\r
+\r
+[LibraryClasses.RISCV64]\r
+ RngLib|MdePkg/Library/BaseRngLibTimerLib/BaseRngLibTimerLib.inf\r
+\r
+[LibraryClasses.X64.SEC]\r
+ HashLib|SecurityPkg/Library/HashLibTdx/HashLibTdx.inf\r
+ TpmMeasurementLib|SecurityPkg/Library/SecTpmMeasurementLib/SecTpmMeasurementLibTdx.inf\r
+\r
+[LibraryClasses.X64.DXE_DRIVER]\r
+ HashLib|SecurityPkg/Library/HashLibTdx/HashLibTdx.inf\r
+\r
[LibraryClasses.common.PEIM]\r
PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf\r
PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf\r
SecurityPkg/Library/HashLibTpm2/HashLibTpm2.inf\r
\r
SecurityPkg/Library/PeiDxeTpmPlatformHierarchyLib/PeiDxeTpmPlatformHierarchyLib.inf\r
+ SecurityPkg/Library/PeiDxeTpmPlatformHierarchyLibNull/PeiDxeTpmPlatformHierarchyLib.inf\r
\r
#\r
# TCG Storage.\r
#\r
SecurityPkg/Library/VariableKeyLibNull/VariableKeyLibNull.inf\r
SecurityPkg/Library/RpmcLibNull/RpmcLibNull.inf\r
+ SecurityPkg/Library/PlatformPKProtectionLibVarPolicy/PlatformPKProtectionLibVarPolicy.inf\r
\r
#\r
# Other\r
#\r
SecurityPkg/RandomNumberGenerator/RngDxe/RngDxe.inf\r
\r
+[Components.X64]\r
+ SecurityPkg/Library/HashLibTdx/HashLibTdx.inf\r
+ SecurityPkg/Library/SecTpmMeasurementLib/SecTpmMeasurementLibTdx.inf\r
+\r
[Components.IA32, Components.X64]\r
SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf\r
\r
MSFT:*_*_IA32_DLINK_FLAGS = /ALIGN:256\r
INTEL:*_*_IA32_DLINK_FLAGS = /ALIGN:256\r
*_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES\r
-\r