Skip to content

Commit

Permalink
Drop non-shared crypto from QemuQ35Pkg and QemuSbsaPkg (#835)
Browse files Browse the repository at this point in the history
## Description

Moving forward the OpenSSL submodule will no longer be present in
`CryptoPkg` and the only option to integrate crypto into the platform
will be shared crypto (via the binary crypto ext dep).

The option to enable/disable shared crypto is removed since disabling
it is no longer an option.

Notes:

- Integrates newly available `AARCH64` PEI and Standalone MM shared
crypto binaries.

- The `BaseCryptLibUnitTest` EFI shell test is removed since it depends
on
functions not present in the PPI/Protocol instances of `BaseCryptLib`
and
the crypto releases should have the tests run before the release is
made.
  
- An issue to track this is here:
microsoft/mu_crypto_release#56

- Runtime DXE crypto is not currently available. It is only needed at
this time for
the non-SMM instance of `QemuQ35Pkg` (`VariableRuntimeDxe`). Since this
is not the
primary target for `QemuQ35Pkg`, the Runtime DXE binary will be updated
in the
  future to unblock Mu Basecore updates in Mu Tiano Platforms.

- An issue to track that is here:
microsoft/mu_crypto_release#55

---

Updates these submodules to the following release points:

- `MU_BASECORE`:
[v2023020013.1.0](https://github.com/microsoft/mu_basecore/releases/tag/v2023020013.1.0)

- `Common/MU_TIANO`:
[v2023020000.2.0](https://github.com/microsoft/mu_tiano_plus/releases/tag/v2023020000.2.0)

- `Features/MM_SUPV`:
[v8.1.8](https://github.com/microsoft/mu_feature_mm_supv/releases/tag/v8.1.8)

---

- [x] Impacts functionality?
- **Functionality** - Does the change ultimately impact how firmware
functions?
- Examples: Add a new library, publish a new PPI, update an algorithm,
...
- [x] Impacts security?
- **Security** - Does the change have a direct security impact on an
application,
    flow, or firmware?
  - Examples: Crypto algorithm change, buffer overflow fix, parameter
    validation improvement, ...
- [ ] Breaking change?
- **Breaking change** - Will anyone consuming this change experience a
break
    in build or boot behavior?
- Examples: Add a new library class, move a module to a different repo,
call
    a function in a new library class in a pre-existing module, ...
- [ ] Includes tests?
  - **Tests** - Does the change include any explicit test code?
  - Examples: Unit tests, integration tests, robot tests, ...
- [ ] Includes documentation?
- **Documentation** - Does the change contain explicit documentation
additions
    outside direct code modifications (and comments)?
- Examples: Update readme file, add feature readme file, link to
documentation
    on an a separate Web page, ...

## How This Was Tested

- `QemuQ35Pkg` and `QemuSbsaPkg` CI build and boot.

## Integration Instructions

- These changes only affect mu_tiano_platforms.

Signed-off-by: Michael Kubacki <[email protected]>
  • Loading branch information
makubacki authored Feb 1, 2024
1 parent 28b24f7 commit 0208c0e
Show file tree
Hide file tree
Showing 11 changed files with 74 additions and 179 deletions.
2 changes: 1 addition & 1 deletion Common/MU_TIANO
Submodule MU_TIANO updated 24 files
+29 −5 .github/workflows/codeql.yml
+4 −3 FmpDevicePkg/FmpDevicePkg.ci.yaml
+10 −7 FmpDevicePkg/FmpDevicePkg.dsc
+47 −32 SecurityPkg/Library/DxeTpm2MeasureBootLib/DxeTpm2MeasureBootLib.c
+3 −1 SecurityPkg/Library/DxeTpm2MeasureBootLib/DxeTpm2MeasureBootLib.inf
+319 −0 SecurityPkg/Library/DxeTpm2MeasureBootLib/DxeTpm2MeasureBootLibSanitization.c
+139 −0 SecurityPkg/Library/DxeTpm2MeasureBootLib/DxeTpm2MeasureBootLibSanitization.h
+345 −0 SecurityPkg/Library/DxeTpm2MeasureBootLib/InternalUnitTest/DxeTpm2MeasureBootLibSanitizationTest.c
+28 −0 SecurityPkg/Library/DxeTpm2MeasureBootLib/InternalUnitTest/DxeTpm2MeasureBootLibSanitizationTestHost.inf
+36 −17 SecurityPkg/Library/DxeTpmMeasureBootLib/DxeTpmMeasureBootLib.c
+3 −1 SecurityPkg/Library/DxeTpmMeasureBootLib/DxeTpmMeasureBootLib.inf
+285 −0 SecurityPkg/Library/DxeTpmMeasureBootLib/DxeTpmMeasureBootLibSanitization.c
+137 −0 SecurityPkg/Library/DxeTpmMeasureBootLib/DxeTpmMeasureBootLibSanitization.h
+387 −0 SecurityPkg/Library/DxeTpmMeasureBootLib/InternalUnitTest/DxeTpmMeasureBootLibSanitizationTest.c
+28 −0 SecurityPkg/Library/DxeTpmMeasureBootLib/InternalUnitTest/DxeTpmMeasureBootLibSanitizationTestHost.inf
+38 −18 SecurityPkg/RandomNumberGenerator/RngDxe/AArch64/AArch64Algo.c
+9 −14 SecurityPkg/RandomNumberGenerator/RngDxe/ArmRngDxe.c
+1 −3 SecurityPkg/RandomNumberGenerator/RngDxe/RngDxe.inf
+32 −0 SecurityPkg/SecurityFixes.yaml
+6 −3 SecurityPkg/SecurityPkg.ci.yaml
+0 −2 SecurityPkg/SecurityPkg.dec
+36 −30 SecurityPkg/SecurityPkg.dsc
+2 −0 SecurityPkg/Test/SecurityPkgHostTest.dsc
+2 −2 pip-requirements.txt
2 changes: 1 addition & 1 deletion MU_BASECORE
Submodule MU_BASECORE updated 353 files
Binary file not shown.
111 changes: 12 additions & 99 deletions Platforms/QemuQ35Pkg/QemuQ35Pkg.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -43,20 +43,14 @@
DEFINE NETWORK_HTTP_ENABLE = TRUE
DEFINE NETWORK_ALLOW_HTTP_CONNECTIONS = TRUE

# Configure Shared Crypto
!ifndef ENABLE_SHARED_CRYPTO # by default true
ENABLE_SHARED_CRYPTO = TRUE
!endif
!if $(ENABLE_SHARED_CRYPTO) == TRUE
PEI_CRYPTO_SERVICES = TINY_SHA
DXE_CRYPTO_SERVICES = STANDARD
SMM_CRYPTO_SERVICES = STANDARD
STANDALONEMM_CRYPTO_SERVICES = STANDARD
PEI_CRYPTO_ARCH = IA32
DXE_CRYPTO_ARCH = X64
SMM_CRYPTO_ARCH = X64
STANDALONEMM_CRYPTO_ARCH = X64
!endif

PEI_CRYPTO_SERVICES = TINY_SHA
DXE_CRYPTO_SERVICES = STANDARD
SMM_CRYPTO_SERVICES = NONE
STANDALONEMM_CRYPTO_SERVICES = STANDARD
PEI_CRYPTO_ARCH = IA32
DXE_CRYPTO_ARCH = X64
STANDALONEMM_CRYPTO_ARCH = X64

################################################################################
#
Expand Down Expand Up @@ -308,69 +302,6 @@
PlatformSmmProtectionsTestLib|UefiTestingPkg/Library/PlatformSmmProtectionsTestLibNull/PlatformSmmProtectionsTestLibNull.inf
FmpDependencyLib|FmpDevicePkg/Library/FmpDependencyLib/FmpDependencyLib.inf

#SHARED_CRYPTO
!if $(ENABLE_SHARED_CRYPTO) == FALSE
[LibraryClasses.IA32]
BaseCryptLib|CryptoPkg/Library/BaseCryptLibOnProtocolPpi/PeiCryptLib.inf
TlsLib|CryptoPkg/Library/BaseCryptLibOnProtocolPpi/PeiCryptLib.inf

[LibraryClasses.X64]
BaseCryptLib|CryptoPkg/Library/BaseCryptLibOnProtocolPpi/DxeCryptLib.inf
TlsLib|CryptoPkg/Library/BaseCryptLibOnProtocolPpi/DxeCryptLib.inf

[LibraryClasses.X64.DXE_SMM_DRIVER]
BaseCryptLib|CryptoPkg/Library/BaseCryptLibOnProtocolPpi/SmmCryptLib.inf
TlsLib|CryptoPkg/Library/BaseCryptLibOnProtocolPpi/SmmCryptLib.inf

[LibraryClasses.X64.MM_STANDALONE]
BaseCryptLib|CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf

[Components.IA32]
CryptoPkg/Driver/CryptoPei.inf {
<LibraryClasses>
BaseCryptLib|CryptoPkg/Library/BaseCryptLib/PeiCryptLib.inf
TlsLib|CryptoPkg/Library/TlsLibNull/TlsLibNull.inf
!if "MSFT" IN $(FAMILY)
NULL|MdePkg/Library/VsIntrinsicLib/VsIntrinsicLib.inf
!endif
IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLibFullAccel.inf # Contains openSSL library used by BaseCryptoLib
<PcdsFixedAtBuild>
!include CryptoPkg/Driver/Bin/Crypto.pcd.TINY_SHA.inc.dsc
}

[Components.X64]
CryptoPkg/Driver/CryptoDxe.inf {
<LibraryClasses>
BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
TlsLib|CryptoPkg/Library/TlsLib/TlsLib.inf
IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLibFullAccel.inf # Contains openSSL library used by BaseCryptoLib
<PcdsFixedAtBuild>
!include CryptoPkg/Driver/Bin/Crypto.pcd.STANDARD.inc.dsc
}
CryptoPkg/Driver/CryptoSmm.inf {
<LibraryClasses>
BaseCryptLib|CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf
TlsLib|CryptoPkg/Library/TlsLibNull/TlsLibNull.inf
IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLibFullAccel.inf # Contains openSSL library used by BaseCryptoLib
<PcdsFixedAtBuild>
!include CryptoPkg/Driver/Bin/Crypto.pcd.STANDARD.inc.dsc
}
CryptoPkg/Driver/CryptoStandaloneMm.inf {
<LibraryClasses>
BaseCryptLib |CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf
TlsLib |CryptoPkg/Library/TlsLibNull/TlsLibNull.inf
OpensslLib |CryptoPkg/Library/OpensslLib/OpensslLibFullAccel.inf
IntrinsicLib |CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
FltUsedLib |MdePkg/Library/FltUsedLib/FltUsedLib.inf
SafeIntLib |MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf
<PcdsFixedAtBuild>
!include CryptoPkg/Driver/Bin/Crypto.pcd.STANDARD.inc.dsc
}
!endif

[LibraryClasses]
# Platform Runtime Mechanism (PRM) libraries
PrmContextBufferLib|PrmPkg/Library/DxePrmContextBufferLib/DxePrmContextBufferLib.inf
Expand Down Expand Up @@ -589,9 +520,6 @@
ReportStatusCodeLib|MdeModulePkg/Library/SmmReportStatusCodeLib/StandaloneMmReportStatusCodeLib.inf
HwResetSystemLib|QemuQ35Pkg/Library/ResetSystemLib/StandaloneMmResetSystemLib.inf
StandaloneMmDriverEntryPoint|MmSupervisorPkg/Library/StandaloneMmDriverEntryPoint/StandaloneMmDriverEntryPoint.inf
BaseCryptLib|CryptoPkg/Library/BaseCryptLibOnProtocolPpi/StandaloneMmCryptLib.inf
OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLibFullAccel.inf
IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
AdvLoggerAccessLib|AdvLoggerPkg/Library/AdvLoggerMmAccessLib/AdvLoggerMmAccessLib.inf
DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLibStandaloneMm.inf
RngLib|MdePkg/Library/BaseRngLib/BaseRngLib.inf
Expand Down Expand Up @@ -924,10 +852,7 @@
#
################################################################################
[Components]
# Shared Crypto Include
!if $(ENABLE_SHARED_CRYPTO) == TRUE
!include CryptoPkg/Driver/Bin/CryptoDriver.inc.dsc
!endif

QemuQ35Pkg/Library/PeiFvMeasurementExclusionLib/PeiFvMeasurementExclusionLib.inf

Expand Down Expand Up @@ -1387,18 +1312,6 @@ QemuQ35Pkg/Library/ResetSystemLib/StandaloneMmResetSystemLib.inf
!if $(BUILD_UNIT_TESTS) == TRUE

AdvLoggerPkg/UnitTests/LineParser/LineParserTestApp.inf
CryptoPkg/Test/UnitTest/Library/BaseCryptLib/BaseCryptLibUnitTestApp.inf {
<LibraryClasses>
BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLibFullAccel.inf # Contains openSSL library used by BaseCryptoLib
IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
<PcdsPatchableInModule>
#Turn off Halt on Assert and Print Assert so that libraries can
#be tested in more of a release mode environment
gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x0E
<PcdsFixedAtBuild>
!include CryptoPkg/Test/Crypto.pcd.ALL.inc.dsc
}
DfciPkg/UnitTests/DeviceIdTest/DeviceIdTestApp.inf
# DfciPkg/UnitTests/DfciVarLockAudit/UEFI/DfciVarLockAuditTestApp.inf # DOESN'T PRODUCE OUTPUT
FmpDevicePkg/Test/UnitTest/Library/FmpDependencyLib/FmpDependencyLibUnitTestApp.inf
Expand Down Expand Up @@ -1504,10 +1417,10 @@ QemuQ35Pkg/Library/ResetSystemLib/StandaloneMmResetSystemLib.inf
MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {
<LibraryClasses>
BaseCryptLib|CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
TlsLib|CryptoPkg/Library/TlsLib/TlsLib.inf
IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLibFullAccel.inf # Contains openSSL library used by BaseCryptoLib
# TODO: Replace with DxeRuntimeCryptLib.
# In the meantime, a pre-built VariableRuntimeDxe driver is used.
# Kept in the DSC to verify build during this time.
BaseCryptLib|CryptoPkg/Library/BaseCryptLibNull/BaseCryptLibNull.inf
}

#
Expand Down
27 changes: 11 additions & 16 deletions Platforms/QemuQ35Pkg/QemuQ35Pkg.fdf
Original file line number Diff line number Diff line change
Expand Up @@ -274,12 +274,7 @@ INF PolicyServicePkg/PolicyService/Pei/PolicyPei.inf
INF QemuQ35Pkg/ConfigKnobs/ConfigKnobs.inf
INF OemPkg/OemConfigPolicyCreatorPei/OemConfigPolicyCreatorPei.inf

# Shared Crypto
!if $(ENABLE_SHARED_CRYPTO) == TRUE
!include CryptoPkg/Driver/Bin/CryptoDriver.PEI.inc.fdf
!else
INF CryptoPkg/Driver/CryptoPei.inf
!endif
!include CryptoPkg/Driver/Bin/CryptoDriver.PEI.inc.fdf

################################################################################

Expand Down Expand Up @@ -474,7 +469,14 @@ INF MdeModulePkg/Universal/Variable/RuntimeDxe/VariableStandaloneMm.inf
INF MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmmRuntimeDxe.inf
!else
INF MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
INF MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf
# TODO: Remove pre-built VariableRuntimeDxe when DxeRuntimeCryptLib is integrated
# The pre-built driver has crypto statically linked.
# INF MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf
FILE DRIVER = CBD2E4D5-7068-4FF5-B462-9822B4AD8D60 {
SECTION PE32 = QemuQ35Pkg/Binaries/VariableRuntimeDxe.efi
SECTION DXE_DEPEX_EXP = {gEfiPcdProtocolGuid AND gEfiDevicePathUtilitiesProtocolGuid}
SECTION UI = "VariableRuntimeDxe"
}
!endif

#
Expand Down Expand Up @@ -522,15 +524,8 @@ INF SecurityPkg/Hash2DxeCrypto/Hash2DxeCrypto.inf
INF MsCorePkg/HelloWorldRustDxe/HelloWorldRustDxe.inf
INF MsCorePkg/AcpiRGRT/AcpiRgrt.inf

#SHARED_CRYPTO Crypto Bin Modules
!if $(ENABLE_SHARED_CRYPTO) == TRUE
!include CryptoPkg/Driver/Bin/CryptoDriver.DXE.inc.fdf
!include CryptoPkg/Driver/Bin/CryptoDriver.STANDALONEMM.inc.fdf
!else
INF CryptoPkg/Driver/CryptoDxe.inf
INF CryptoPkg/Driver/CryptoSmm.inf
INF CryptoPkg/Driver/CryptoStandaloneMm.inf
!endif
!include CryptoPkg/Driver/Bin/CryptoDriver.DXE.inc.fdf
!include CryptoPkg/Driver/Bin/CryptoDriver.STANDALONEMM.inc.fdf

!if $(BUILD_UNIT_TESTS) == TRUE
# INF UefiTestingPkg/FunctionalSystemTests/SmmPagingProtectionsTest/Smm/SmmPagingProtectionsTestStandaloneMm.inf # NOT YET SUPPORTED
Expand Down
2 changes: 0 additions & 2 deletions Platforms/QemuQ35Pkg/Test/QemuQ35PkgHostTest.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,6 @@
ConfigVariableListLib|SetupDataPkg/Library/ConfigVariableListLib/ConfigVariableListLib.inf
ConfigSystemModeLib|SetupDataPkg/Test/MockLibrary/MockConfigSystemModeLib/MockConfigSystemModeLib.inf
ConfigKnobShimLib|SetupDataPkg/Library/ConfigKnobShimLib/ConfigKnobShimDxeLib/ConfigKnobShimDxeLib.inf
OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf
BaseCryptLib|CryptoPkg/Library/BaseCryptLib/UnitTestHostBaseCryptLib.inf
RngLib|MdePkg/Library/BaseRngLib/BaseRngLib.inf
MmServicesTableLib|MdePkg/Library/MmServicesTableLib/MmServicesTableLib.inf
SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
Expand Down
3 changes: 2 additions & 1 deletion Platforms/QemuSbsaPkg/QemuSbsaPkg.ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,8 @@
"noclearmem",
"unblank",
"dmaivrs",
"nxcompat"
"nxcompat",
"standalonemm"
], # words to extend to the dictionary for this package
"IgnoreStandardPaths": [], # Standard Plugin defined paths that should be ignore
"AdditionalIncludePaths": [] # Additional paths to spell check (wildcards supported)
Expand Down
59 changes: 12 additions & 47 deletions Platforms/QemuSbsaPkg/QemuSbsaPkg.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -46,21 +46,6 @@
# DEBUG_ERROR 0x80000000 // Error
DEFINE DEBUG_PRINT_ERROR_LEVEL = 0x80080246

!if $(TARGET) != NOOPT
DEFINE FD_SIZE_IN_MB = 2
!else
DEFINE FD_SIZE_IN_MB = 3
!endif

!if $(FD_SIZE_IN_MB) == 2
DEFINE FD_SIZE = 0x200000
DEFINE FD_NUM_BLOCKS = 0x200
!endif
!if $(FD_SIZE_IN_MB) == 3
DEFINE FD_SIZE = 0x300000
DEFINE FD_NUM_BLOCKS = 0x300
!endif

#
# Defines for default states. These can be changed on the command line.
# -D FLAG=VALUE
Expand All @@ -80,6 +65,14 @@
DEFINE NETWORK_ALLOW_HTTP_CONNECTIONS = TRUE
DEFINE NETWORK_ISCSI_ENABLE = FALSE

PEI_CRYPTO_SERVICES = TINY_SHA
DXE_CRYPTO_SERVICES = STANDARD
STANDALONEMM_CRYPTO_SERVICES = STANDARD
SMM_CRYPTO_SERVICES = NONE
PEI_CRYPTO_ARCH = AARCH64
DXE_CRYPTO_ARCH = AARCH64
STANDALONEMM_CRYPTO_ARCH = AARCH64

!if $(NETWORK_SNP_ENABLE) == TRUE
!error "NETWORK_SNP_ENABLE is IA32/X64/EBC only"
!endif
Expand All @@ -89,6 +82,7 @@
!include MdePkg/MdeLibs.dsc.inc

[LibraryClasses.common]
BaseCryptLib|CryptoPkg/Library/BaseCryptLibNull/BaseCryptLibNull.inf
DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf

BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
Expand Down Expand Up @@ -137,9 +131,6 @@

# Networking Requirements
!include NetworkPkg/NetworkLibs.dsc.inc
!if $(NETWORK_TLS_ENABLE) == TRUE
TlsLib|CryptoPkg/Library/TlsLib/TlsLib.inf
!endif

NonDiscoverableDeviceRegistrationLib|MdeModulePkg/Library/NonDiscoverableDeviceRegistrationLib/NonDiscoverableDeviceRegistrationLib.inf

Expand Down Expand Up @@ -201,17 +192,7 @@
# USB Libraries
UefiUsbLib|MdePkg/Library/UefiUsbLib/UefiUsbLib.inf

#
# CryptoPkg libraries needed by multiple firmware features
#
IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
!if $(NETWORK_TLS_ENABLE) == TRUE
OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLibFull.inf
!else
OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf
!endif
BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
RngLib|MdePkg/Library/BaseRngLib/BaseRngLib.inf
RngLib|MdeModulePkg/Library/BaseRngLibTimerLib/BaseRngLibTimerLib.inf
ArmMonitorLib|ArmPkg/Library/ArmMonitorLib/ArmMonitorLib.inf
ArmTrngLib|ArmPkg/Library/ArmTrngLib/ArmTrngLib.inf
Hash2CryptoLib|SecurityPkg/Library/BaseHash2CryptoLibNull/BaseHash2CryptoLibNull.inf
Expand Down Expand Up @@ -437,7 +418,6 @@
PolicyLib |PolicyServicePkg/Library/PeiPolicyLib/PeiPolicyLib.inf

!if $(TPM2_ENABLE) == TRUE
BaseCryptLib|CryptoPkg/Library/BaseCryptLib/PeiCryptLib.inf
Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2DeviceLibDTpm.inf
!endif

Expand Down Expand Up @@ -472,10 +452,6 @@
VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLibRuntimeDxe.inf
ResetSystemLib|MdeModulePkg/Library/RuntimeResetSystemLib/RuntimeResetSystemLib.inf

!if $(SECURE_BOOT_ENABLE) == TRUE
BaseCryptLib|CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
!endif

[LibraryClasses.common.MM_CORE_STANDALONE]
BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
ExtractGuidedSectionLib|EmbeddedPkg/Library/PrePiExtractGuidedSectionLib/PrePiExtractGuidedSectionLib.inf
Expand All @@ -495,9 +471,6 @@
HobLib|StandaloneMmPkg/Library/StandaloneMmHobLib/StandaloneMmHobLib.inf
MmServicesTableLib|MdePkg/Library/StandaloneMmServicesTableLib/StandaloneMmServicesTableLib.inf
MemoryAllocationLib|StandaloneMmPkg/Library/StandaloneMmMemoryAllocationLib/StandaloneMmMemoryAllocationLib.inf
BaseCryptLib|CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf
IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLibFull.inf
RngLib|MdePkg/Library/BaseRngLibTimerLib/BaseRngLibTimerLib.inf
SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
VarCheckLib|MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf
Expand Down Expand Up @@ -904,6 +877,8 @@
#
################################################################################
[Components.common]
!include CryptoPkg/Driver/Bin/CryptoDriver.inc.dsc

#
# PEI Phase modules
#
Expand Down Expand Up @@ -1223,16 +1198,6 @@
!if $(BUILD_UNIT_TESTS) == TRUE

AdvLoggerPkg/UnitTests/LineParser/LineParserTestApp.inf
CryptoPkg/Test/UnitTest/Library/BaseCryptLib/BaseCryptLibUnitTestApp.inf {
<LibraryClasses>
BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLibFull.inf # Contains openSSL library used by BaseCryptoLib
IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
<PcdsPatchableInModule>
#Turn off Halt on Assert and Print Assert so that libraries can
#be tested in more of a release mode environment
gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x0E
}
DfciPkg/UnitTests/DeviceIdTest/DeviceIdTestApp.inf
# DfciPkg/UnitTests/DfciVarLockAudit/UEFI/DfciVarLockAuditTestApp.inf # DOESN'T PRODUCE OUTPUT
FmpDevicePkg/Test/UnitTest/Library/FmpDependencyLib/FmpDependencyLibUnitTestApp.inf
Expand Down
Loading

0 comments on commit 0208c0e

Please sign in to comment.