2010-11-01 07:30:58 +01:00
|
|
|
## @file
|
|
|
|
# Cryptographic Library Package for UEFI Security Implementation.
|
2019-11-21 18:25:01 +01:00
|
|
|
# PEIM, DXE Driver, and SMM Driver with all crypto services enabled.
|
2010-11-01 07:30:58 +01:00
|
|
|
#
|
2021-03-12 06:15:04 +01:00
|
|
|
# Copyright (c) 2009 - 2021, Intel Corporation. All rights reserved.<BR>
|
2020-03-27 04:08:01 +01:00
|
|
|
# Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>
|
2019-04-04 01:03:30 +02:00
|
|
|
# SPDX-License-Identifier: BSD-2-Clause-Patent
|
2018-06-27 11:32:13 +02:00
|
|
|
#
|
2010-11-01 07:30:58 +01:00
|
|
|
##
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# Defines Section - statements that will be processed to create a Makefile.
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
[Defines]
|
|
|
|
PLATFORM_NAME = CryptoPkg
|
|
|
|
PLATFORM_GUID = E1063286-6C8C-4c25-AEF0-67A9A5B6E6B6
|
2018-01-22 07:59:21 +01:00
|
|
|
PLATFORM_VERSION = 0.98
|
2010-11-01 07:30:58 +01:00
|
|
|
DSC_SPECIFICATION = 0x00010005
|
|
|
|
OUTPUT_DIRECTORY = Build/CryptoPkg
|
2020-03-27 04:08:01 +01:00
|
|
|
SUPPORTED_ARCHITECTURES = IA32|X64|ARM|AARCH64|RISCV64
|
2016-01-19 05:04:54 +01:00
|
|
|
BUILD_TARGETS = DEBUG|RELEASE|NOOPT
|
2010-11-01 07:30:58 +01:00
|
|
|
SKUID_IDENTIFIER = DEFAULT
|
|
|
|
|
2019-11-21 18:25:01 +01:00
|
|
|
#
|
|
|
|
# Flavor of PEI, DXE, SMM modules to build.
|
|
|
|
# Must be one of ALL, NONE, MIN_PEI, MIN_DXE_MIN_SMM.
|
|
|
|
# Default is ALL that is used for package build verification.
|
|
|
|
# PACKAGE - Package verification build of all components. Null
|
|
|
|
# versions of libraries are used to minimize build times.
|
|
|
|
# ALL - Build PEIM, DXE, and SMM drivers. Protocols and PPIs
|
|
|
|
# publish all services.
|
|
|
|
# NONE - Build PEIM, DXE, and SMM drivers. Protocols and PPIs
|
|
|
|
# publish no services. Used to verify compiler/linker
|
|
|
|
# optimizations are working correctly.
|
|
|
|
# MIN_PEI - Build PEIM with PPI that publishes minimum required
|
|
|
|
# services.
|
|
|
|
# MIN_DXE_MIN_SMM - Build DXE and SMM drivers with Protocols that publish
|
|
|
|
# minimum required services.
|
|
|
|
#
|
|
|
|
DEFINE CRYPTO_SERVICES = PACKAGE
|
|
|
|
!if $(CRYPTO_SERVICES) IN "PACKAGE ALL NONE MIN_PEI MIN_DXE_MIN_SMM"
|
|
|
|
!else
|
|
|
|
!error CRYPTO_SERVICES must be set to one of PACKAGE ALL NONE MIN_PEI MIN_DXE_MIN_SMM.
|
|
|
|
!endif
|
|
|
|
|
2021-02-03 00:20:16 +01:00
|
|
|
!include UnitTestFrameworkPkg/UnitTestFrameworkPkgTarget.dsc.inc
|
|
|
|
|
2010-11-01 07:30:58 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# Library Class section - list of all Library Classes needed by this Platform.
|
|
|
|
#
|
|
|
|
################################################################################
|
2021-03-12 06:15:04 +01:00
|
|
|
|
|
|
|
!include MdePkg/MdeLibs.dsc.inc
|
|
|
|
|
2010-11-01 07:30:58 +01:00
|
|
|
[LibraryClasses]
|
|
|
|
BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
|
|
|
|
BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
|
|
|
|
PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
|
|
|
|
DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
|
|
|
|
UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
|
|
|
|
UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
|
2019-11-21 18:25:01 +01:00
|
|
|
BaseCryptLib|CryptoPkg/Library/BaseCryptLibNull/BaseCryptLibNull.inf
|
|
|
|
TlsLib|CryptoPkg/Library/TlsLibNull/TlsLibNull.inf
|
2020-02-03 19:18:50 +01:00
|
|
|
HashApiLib|CryptoPkg/Library/BaseHashApiLib/BaseHashApiLib.inf
|
2020-07-23 23:59:23 +02:00
|
|
|
RngLib|MdePkg/Library/BaseRngLibNull/BaseRngLibNull.inf
|
2010-11-01 07:30:58 +01:00
|
|
|
|
2014-08-26 17:06:45 +02:00
|
|
|
[LibraryClasses.ARM, LibraryClasses.AARCH64]
|
2011-04-19 18:25:31 +02:00
|
|
|
#
|
|
|
|
# It is not possible to prevent the ARM compiler for generic intrinsic functions.
|
|
|
|
# This library provides the instrinsic functions generate by a given compiler.
|
2014-08-26 17:06:45 +02:00
|
|
|
# [LibraryClasses.ARM, LibraryClasses.AARCH64] and NULL mean link this library
|
|
|
|
# into all ARM and AARCH64 images.
|
2011-04-19 18:25:31 +02:00
|
|
|
#
|
|
|
|
NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf
|
|
|
|
|
2014-08-26 17:05:22 +02:00
|
|
|
# Add support for stack protector
|
|
|
|
NULL|MdePkg/Library/BaseStackCheckLib/BaseStackCheckLib.inf
|
|
|
|
|
2019-11-21 18:25:01 +01:00
|
|
|
[LibraryClasses.common.PEIM]
|
|
|
|
PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf
|
|
|
|
MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
|
|
|
|
PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointerLib.inf
|
|
|
|
PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
|
|
|
|
HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
|
|
|
|
|
|
|
|
[LibraryClasses.common.DXE_SMM_DRIVER]
|
|
|
|
SmmServicesTableLib|MdePkg/Library/SmmServicesTableLib/SmmServicesTableLib.inf
|
|
|
|
MemoryAllocationLib|MdePkg/Library/SmmMemoryAllocationLib/SmmMemoryAllocationLib.inf
|
|
|
|
|
|
|
|
!if $(CRYPTO_SERVICES) IN "ALL NONE MIN_PEI MIN_DXE_MIN_SMM"
|
|
|
|
[LibraryClasses]
|
|
|
|
MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
|
|
|
|
DebugLib|MdeModulePkg/Library/PeiDxeDebugLibReportStatusCode/PeiDxeDebugLibReportStatusCode.inf
|
|
|
|
DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
|
|
|
|
OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
|
|
|
|
PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
|
|
|
|
DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
|
|
|
|
PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
|
|
|
|
TimerLib|MdePkg/Library/BaseTimerLibNullTemplate/BaseTimerLibNullTemplate.inf
|
|
|
|
UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf #???
|
|
|
|
IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf #???
|
|
|
|
OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf
|
|
|
|
IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
|
|
|
|
SafeIntLib|MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf
|
|
|
|
|
2015-12-07 10:20:09 +01:00
|
|
|
[LibraryClasses.ARM]
|
|
|
|
ArmSoftFloatLib|ArmPkg/Library/ArmSoftFloatLib/ArmSoftFloatLib.inf
|
|
|
|
|
2010-11-01 07:30:58 +01:00
|
|
|
[LibraryClasses.common.PEIM]
|
2019-11-21 18:25:01 +01:00
|
|
|
PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
|
|
|
|
ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
|
2010-11-01 07:30:58 +01:00
|
|
|
BaseCryptLib|CryptoPkg/Library/BaseCryptLib/PeiCryptLib.inf
|
2019-11-21 18:25:01 +01:00
|
|
|
TlsLib|CryptoPkg/Library/TlsLibNull/TlsLibNull.inf
|
|
|
|
|
|
|
|
[LibraryClasses.IA32.PEIM, LibraryClasses.X64.PEIM]
|
|
|
|
PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
|
|
|
|
|
|
|
|
[LibraryClasses.ARM.PEIM, LibraryClasses.AARCH64.PEIM]
|
|
|
|
PeiServicesTablePointerLib|ArmPkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointerLib.inf
|
2010-11-01 07:30:58 +01:00
|
|
|
|
|
|
|
[LibraryClasses.common.DXE_DRIVER]
|
2019-11-21 18:25:01 +01:00
|
|
|
ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
|
2010-11-01 07:30:58 +01:00
|
|
|
BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
|
2019-11-21 18:25:01 +01:00
|
|
|
TlsLib|CryptoPkg/Library/TlsLib/TlsLib.inf
|
2010-11-01 07:30:58 +01:00
|
|
|
|
2011-08-16 08:46:52 +02:00
|
|
|
[LibraryClasses.common.DXE_SMM_DRIVER]
|
2019-11-21 18:25:01 +01:00
|
|
|
ReportStatusCodeLib|MdeModulePkg/Library/SmmReportStatusCodeLib/SmmReportStatusCodeLib.inf
|
2011-08-16 08:46:52 +02:00
|
|
|
BaseCryptLib|CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf
|
2019-11-21 18:25:01 +01:00
|
|
|
TlsLib|CryptoPkg/Library/TlsLibNull/TlsLibNull.inf
|
|
|
|
!endif
|
2010-11-01 07:30:58 +01:00
|
|
|
|
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# Pcd Section - list of all EDK II PCD Entries defined by this Platform
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
[PcdsFixedAtBuild]
|
|
|
|
gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x0f
|
|
|
|
gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x80000000
|
|
|
|
gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x06
|
|
|
|
|
2019-11-21 18:25:01 +01:00
|
|
|
!if $(CRYPTO_SERVICES) IN "PACKAGE ALL"
|
2020-04-23 08:43:08 +02:00
|
|
|
gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.HmacSha256.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
|
|
|
gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Md5.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
|
|
|
gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Pkcs.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
|
|
|
gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Dh.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
|
|
|
gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Random.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
|
|
|
gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Rsa.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
|
|
|
gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Sha1.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
|
|
|
gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Sha256.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
|
|
|
gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Sha384.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
|
|
|
gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Sha512.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
|
|
|
gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.X509.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
|
|
|
gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Tdes.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
|
|
|
gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Aes.Services.GetContextSize | TRUE
|
|
|
|
gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Aes.Services.Init | TRUE
|
|
|
|
gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Aes.Services.CbcEncrypt | TRUE
|
|
|
|
gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Aes.Services.CbcDecrypt | TRUE
|
|
|
|
gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Arc4.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
|
|
|
gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Sm3.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
|
|
|
gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Hkdf.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
|
|
|
gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Tls.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
|
|
|
gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.TlsSet.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
|
|
|
gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.TlsGet.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
2019-11-21 18:25:01 +01:00
|
|
|
!endif
|
|
|
|
|
|
|
|
!if $(CRYPTO_SERVICES) == MIN_PEI
|
|
|
|
gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.HmacSha256.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
|
|
|
gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Sha1.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
|
|
|
gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Sha256.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
|
|
|
gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Sha384.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
|
|
|
gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Sha512.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
|
|
|
gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Sm3.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
|
|
|
gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Rsa.Services.Pkcs1Verify | TRUE
|
|
|
|
gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Rsa.Services.New | TRUE
|
|
|
|
gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Rsa.Services.Free | TRUE
|
|
|
|
gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Rsa.Services.SetKey | TRUE
|
|
|
|
gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Pkcs.Services.Pkcs5HashPassword | TRUE
|
|
|
|
!endif
|
|
|
|
|
|
|
|
!if $(CRYPTO_SERVICES) == MIN_DXE_MIN_SMM
|
|
|
|
gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.HmacSha256.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
|
|
|
gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Pkcs.Services.Pkcs1v2Encrypt | TRUE
|
|
|
|
gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Pkcs.Services.Pkcs5HashPassword | TRUE
|
|
|
|
gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Pkcs.Services.Pkcs7Verify | TRUE
|
|
|
|
gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Pkcs.Services.VerifyEKUsInPkcs7Signature | TRUE
|
|
|
|
gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Pkcs.Services.Pkcs7GetSigners | TRUE
|
|
|
|
gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Pkcs.Services.Pkcs7FreeSigners | TRUE
|
|
|
|
gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Pkcs.Services.AuthenticodeVerify | TRUE
|
|
|
|
gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Random.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
|
|
|
gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Rsa.Services.Pkcs1Verify | TRUE
|
|
|
|
gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Rsa.Services.New | TRUE
|
|
|
|
gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Rsa.Services.Free | TRUE
|
|
|
|
gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Rsa.Services.SetKey | TRUE
|
|
|
|
gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Rsa.Services.GetPublicKeyFromX509 | TRUE
|
|
|
|
gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Sha1.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
|
|
|
gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Sha256.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
|
|
|
gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Sha256.Services.HashAll | FALSE
|
|
|
|
gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.X509.Services.GetSubjectName | TRUE
|
|
|
|
gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.X509.Services.GetCommonName | TRUE
|
|
|
|
gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.X509.Services.GetOrganizationName | TRUE
|
|
|
|
gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.X509.Services.GetTBSCert | TRUE
|
|
|
|
gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Tls.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
|
|
|
gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.TlsSet.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
|
|
|
gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.TlsGet.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
|
|
|
gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Aes.Services.Init | TRUE
|
|
|
|
gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Aes.Services.CbcEncrypt | TRUE
|
|
|
|
gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Aes.Services.CbcDecrypt | TRUE
|
|
|
|
!endif
|
|
|
|
|
2010-11-01 07:30:58 +01:00
|
|
|
###################################################################################################
|
|
|
|
#
|
|
|
|
# Components Section - list of the modules and components that will be processed by compilation
|
|
|
|
# tools and the EDK II tools to generate PE32/PE32+/Coff image files.
|
|
|
|
#
|
|
|
|
# Note: The EDK II DSC file is not used to specify how compiled binary images get placed
|
|
|
|
# into firmware volume images. This section is just a list of modules to compile from
|
|
|
|
# source into UEFI-compliant binaries.
|
|
|
|
# It is the FDF file that contains information on combining binary files into firmware
|
|
|
|
# volume images, whose concept is beyond UEFI and is described in PI specification.
|
|
|
|
# Binary modules do not need to be listed in this section, as they should be
|
|
|
|
# specified in the FDF file. For example: Shell binary (Shell_Full.efi), FAT binary (Fat.efi),
|
|
|
|
# Logo (Logo.bmp), and etc.
|
|
|
|
# There may also be modules listed in this section that are not required in the FDF file,
|
|
|
|
# When a module listed here is excluded from FDF file, then UEFI-compliant binary will be
|
|
|
|
# generated for it, but the binary will not be put into any firmware volume.
|
|
|
|
#
|
|
|
|
###################################################################################################
|
2020-10-09 00:37:46 +02:00
|
|
|
[Components]
|
|
|
|
CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
|
2021-02-03 00:20:16 +01:00
|
|
|
CryptoPkg/Test/UnitTest/Library/BaseCryptLib/TestBaseCryptLibShell.inf
|
2020-10-09 00:37:46 +02:00
|
|
|
|
2019-11-21 18:25:01 +01:00
|
|
|
!if $(CRYPTO_SERVICES) == PACKAGE
|
2010-11-01 07:30:58 +01:00
|
|
|
[Components]
|
|
|
|
CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
|
|
|
|
CryptoPkg/Library/BaseCryptLib/PeiCryptLib.inf
|
2019-11-21 18:25:01 +01:00
|
|
|
CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf
|
2010-11-01 07:30:58 +01:00
|
|
|
CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
|
2019-09-25 19:14:09 +02:00
|
|
|
CryptoPkg/Library/BaseCryptLibNull/BaseCryptLibNull.inf
|
2019-10-08 05:28:46 +02:00
|
|
|
CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
|
2016-12-14 03:34:57 +01:00
|
|
|
CryptoPkg/Library/TlsLib/TlsLib.inf
|
2019-09-25 19:14:40 +02:00
|
|
|
CryptoPkg/Library/TlsLibNull/TlsLibNull.inf
|
2018-12-13 08:37:44 +01:00
|
|
|
CryptoPkg/Library/OpensslLib/OpensslLib.inf
|
2019-06-12 04:30:00 +02:00
|
|
|
CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf
|
2020-02-03 19:18:50 +01:00
|
|
|
CryptoPkg/Library/BaseHashApiLib/BaseHashApiLib.inf
|
2010-11-01 07:30:58 +01:00
|
|
|
|
2019-11-21 18:25:01 +01:00
|
|
|
CryptoPkg/Library/BaseCryptLibOnProtocolPpi/PeiCryptLib.inf
|
|
|
|
CryptoPkg/Library/BaseCryptLibOnProtocolPpi/DxeCryptLib.inf
|
|
|
|
CryptoPkg/Library/BaseCryptLibOnProtocolPpi/SmmCryptLib.inf
|
|
|
|
!endif
|
|
|
|
|
|
|
|
!if $(CRYPTO_SERVICES) IN "PACKAGE ALL NONE MIN_PEI"
|
|
|
|
[Components.IA32, Components.X64, Components.ARM, Components.AARCH64]
|
|
|
|
CryptoPkg/Driver/CryptoPei.inf {
|
|
|
|
<Defines>
|
|
|
|
!if $(CRYPTO_SERVICES) == ALL
|
|
|
|
FILE_GUID = 8DF53C2E-3380-495F-A8B7-370CFE28E1C6
|
|
|
|
!elseif $(CRYPTO_SERVICES) == NONE
|
|
|
|
FILE_GUID = E5A97EE3-71CC-407F-9DA9-6BE0C8A6C7DF
|
|
|
|
!elseif $(CRYPTO_SERVICES) == MIN_PEI
|
|
|
|
FILE_GUID = 0F5827A9-35FD-4F41-8D38-9BAFCE594D31
|
|
|
|
!endif
|
|
|
|
}
|
|
|
|
!endif
|
|
|
|
|
|
|
|
!if $(CRYPTO_SERVICES) IN "PACKAGE ALL NONE MIN_DXE_MIN_SMM"
|
|
|
|
[Components.IA32, Components.X64, Components.AARCH64]
|
|
|
|
CryptoPkg/Driver/CryptoDxe.inf {
|
|
|
|
<Defines>
|
|
|
|
!if $(CRYPTO_SERVICES) == ALL
|
|
|
|
FILE_GUID = D9444B06-060D-42C5-9344-F04707BE0169
|
|
|
|
!elseif $(CRYPTO_SERVICES) == NONE
|
|
|
|
FILE_GUID = C7A340F4-A6CC-4F95-A2DA-42BEA4C3944A
|
|
|
|
!elseif $(CRYPTO_SERVICES) == MIN_DXE_MIN_SMM
|
|
|
|
FILE_GUID = DDF5BE9E-159A-4B77-B6D7-82B84B5763A2
|
|
|
|
!endif
|
|
|
|
}
|
|
|
|
|
2010-11-02 07:06:38 +01:00
|
|
|
[Components.IA32, Components.X64]
|
2019-11-21 18:25:01 +01:00
|
|
|
CryptoPkg/Driver/CryptoSmm.inf {
|
|
|
|
<Defines>
|
|
|
|
!if $(CRYPTO_SERVICES) == ALL
|
|
|
|
FILE_GUID = A3542CE8-77F7-49DC-A834-45D37D2EC1FA
|
|
|
|
!elseif $(CRYPTO_SERVICES) == NONE
|
|
|
|
FILE_GUID = 6DCB3127-01E7-4131-A487-DC77A965A541
|
|
|
|
!elseif $(CRYPTO_SERVICES) == MIN_DXE_MIN_SMM
|
|
|
|
FILE_GUID = 85F7EA15-3A2B-474A-8875-180542CD6BF3
|
|
|
|
!endif
|
|
|
|
}
|
|
|
|
!endif
|
2010-11-02 07:06:38 +01:00
|
|
|
|
2016-08-01 08:22:19 +02:00
|
|
|
[BuildOptions]
|
|
|
|
*_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES
|
2020-11-12 06:55:48 +01:00
|
|
|
!if $(CRYPTO_SERVICES) IN "PACKAGE ALL"
|
|
|
|
MSFT:*_*_*_CC_FLAGS = /D ENABLE_MD5_DEPRECATED_INTERFACES
|
|
|
|
INTEL:*_*_*_CC_FLAGS = /D ENABLE_MD5_DEPRECATED_INTERFACES
|
|
|
|
GCC:*_*_*_CC_FLAGS = -D ENABLE_MD5_DEPRECATED_INTERFACES
|
|
|
|
RVCT:*_*_*_CC_FLAGS = -DENABLE_MD5_DEPRECATED_INTERFACES
|
|
|
|
!endif
|