1 | ## @file
|
---|
2 | # Cryptographic Library Package for UEFI Security Implementation.
|
---|
3 | # PEIM, DXE Driver, and SMM Driver with all crypto services enabled.
|
---|
4 | #
|
---|
5 | # Copyright (c) 2009 - 2021, Intel Corporation. All rights reserved.<BR>
|
---|
6 | # Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>
|
---|
7 | # SPDX-License-Identifier: BSD-2-Clause-Patent
|
---|
8 | #
|
---|
9 | ##
|
---|
10 |
|
---|
11 | ################################################################################
|
---|
12 | #
|
---|
13 | # Defines Section - statements that will be processed to create a Makefile.
|
---|
14 | #
|
---|
15 | ################################################################################
|
---|
16 | [Defines]
|
---|
17 | PLATFORM_NAME = CryptoPkg
|
---|
18 | PLATFORM_GUID = E1063286-6C8C-4c25-AEF0-67A9A5B6E6B6
|
---|
19 | PLATFORM_VERSION = 0.98
|
---|
20 | DSC_SPECIFICATION = 0x00010005
|
---|
21 | OUTPUT_DIRECTORY = Build/CryptoPkg
|
---|
22 | SUPPORTED_ARCHITECTURES = IA32|X64|ARM|AARCH64|RISCV64
|
---|
23 | BUILD_TARGETS = DEBUG|RELEASE|NOOPT
|
---|
24 | SKUID_IDENTIFIER = DEFAULT
|
---|
25 |
|
---|
26 | #
|
---|
27 | # Flavor of PEI, DXE, SMM modules to build.
|
---|
28 | # Must be one of ALL, NONE, MIN_PEI, MIN_DXE_MIN_SMM.
|
---|
29 | # Default is ALL that is used for package build verification.
|
---|
30 | # PACKAGE - Package verification build of all components. Null
|
---|
31 | # versions of libraries are used to minimize build times.
|
---|
32 | # ALL - Build PEIM, DXE, and SMM drivers. Protocols and PPIs
|
---|
33 | # publish all services.
|
---|
34 | # NONE - Build PEIM, DXE, and SMM drivers. Protocols and PPIs
|
---|
35 | # publish no services. Used to verify compiler/linker
|
---|
36 | # optimizations are working correctly.
|
---|
37 | # MIN_PEI - Build PEIM with PPI that publishes minimum required
|
---|
38 | # services.
|
---|
39 | # MIN_DXE_MIN_SMM - Build DXE and SMM drivers with Protocols that publish
|
---|
40 | # minimum required services.
|
---|
41 | #
|
---|
42 | DEFINE CRYPTO_SERVICES = PACKAGE
|
---|
43 | !if $(CRYPTO_SERVICES) IN "PACKAGE ALL NONE MIN_PEI MIN_DXE_MIN_SMM"
|
---|
44 | !else
|
---|
45 | !error CRYPTO_SERVICES must be set to one of PACKAGE ALL NONE MIN_PEI MIN_DXE_MIN_SMM.
|
---|
46 | !endif
|
---|
47 |
|
---|
48 | !include UnitTestFrameworkPkg/UnitTestFrameworkPkgTarget.dsc.inc
|
---|
49 |
|
---|
50 | ################################################################################
|
---|
51 | #
|
---|
52 | # Library Class section - list of all Library Classes needed by this Platform.
|
---|
53 | #
|
---|
54 | ################################################################################
|
---|
55 |
|
---|
56 | !include MdePkg/MdeLibs.dsc.inc
|
---|
57 |
|
---|
58 | [LibraryClasses]
|
---|
59 | BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
|
---|
60 | BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
|
---|
61 | PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
|
---|
62 | DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
|
---|
63 | UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
|
---|
64 | UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
|
---|
65 | BaseCryptLib|CryptoPkg/Library/BaseCryptLibNull/BaseCryptLibNull.inf
|
---|
66 | TlsLib|CryptoPkg/Library/TlsLibNull/TlsLibNull.inf
|
---|
67 | HashApiLib|CryptoPkg/Library/BaseHashApiLib/BaseHashApiLib.inf
|
---|
68 | RngLib|MdePkg/Library/BaseRngLibNull/BaseRngLibNull.inf
|
---|
69 |
|
---|
70 | [LibraryClasses.ARM, LibraryClasses.AARCH64]
|
---|
71 | #
|
---|
72 | # It is not possible to prevent the ARM compiler for generic intrinsic functions.
|
---|
73 | # This library provides the instrinsic functions generate by a given compiler.
|
---|
74 | # [LibraryClasses.ARM, LibraryClasses.AARCH64] and NULL mean link this library
|
---|
75 | # into all ARM and AARCH64 images.
|
---|
76 | #
|
---|
77 | NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf
|
---|
78 |
|
---|
79 | # Add support for stack protector
|
---|
80 | NULL|MdePkg/Library/BaseStackCheckLib/BaseStackCheckLib.inf
|
---|
81 |
|
---|
82 | [LibraryClasses.common.PEIM]
|
---|
83 | PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf
|
---|
84 | MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
|
---|
85 | PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointerLib.inf
|
---|
86 | PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
|
---|
87 | HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
|
---|
88 |
|
---|
89 | [LibraryClasses.common.DXE_SMM_DRIVER]
|
---|
90 | SmmServicesTableLib|MdePkg/Library/SmmServicesTableLib/SmmServicesTableLib.inf
|
---|
91 | MemoryAllocationLib|MdePkg/Library/SmmMemoryAllocationLib/SmmMemoryAllocationLib.inf
|
---|
92 |
|
---|
93 | !if $(CRYPTO_SERVICES) IN "ALL NONE MIN_PEI MIN_DXE_MIN_SMM"
|
---|
94 | [LibraryClasses]
|
---|
95 | MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
|
---|
96 | DebugLib|MdeModulePkg/Library/PeiDxeDebugLibReportStatusCode/PeiDxeDebugLibReportStatusCode.inf
|
---|
97 | DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
|
---|
98 | OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
|
---|
99 | PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
|
---|
100 | DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
|
---|
101 | PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
|
---|
102 | TimerLib|MdePkg/Library/BaseTimerLibNullTemplate/BaseTimerLibNullTemplate.inf
|
---|
103 | UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf #???
|
---|
104 | IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf #???
|
---|
105 | OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf
|
---|
106 | IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
|
---|
107 | SafeIntLib|MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf
|
---|
108 |
|
---|
109 | [LibraryClasses.ARM]
|
---|
110 | ArmSoftFloatLib|ArmPkg/Library/ArmSoftFloatLib/ArmSoftFloatLib.inf
|
---|
111 |
|
---|
112 | [LibraryClasses.common.PEIM]
|
---|
113 | PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
|
---|
114 | ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
|
---|
115 | BaseCryptLib|CryptoPkg/Library/BaseCryptLib/PeiCryptLib.inf
|
---|
116 | TlsLib|CryptoPkg/Library/TlsLibNull/TlsLibNull.inf
|
---|
117 |
|
---|
118 | [LibraryClasses.IA32.PEIM, LibraryClasses.X64.PEIM]
|
---|
119 | PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
|
---|
120 |
|
---|
121 | [LibraryClasses.ARM.PEIM, LibraryClasses.AARCH64.PEIM]
|
---|
122 | PeiServicesTablePointerLib|ArmPkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointerLib.inf
|
---|
123 |
|
---|
124 | [LibraryClasses.common.DXE_DRIVER]
|
---|
125 | ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
|
---|
126 | BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
|
---|
127 | TlsLib|CryptoPkg/Library/TlsLib/TlsLib.inf
|
---|
128 |
|
---|
129 | [LibraryClasses.common.DXE_SMM_DRIVER]
|
---|
130 | ReportStatusCodeLib|MdeModulePkg/Library/SmmReportStatusCodeLib/SmmReportStatusCodeLib.inf
|
---|
131 | BaseCryptLib|CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf
|
---|
132 | TlsLib|CryptoPkg/Library/TlsLibNull/TlsLibNull.inf
|
---|
133 | !endif
|
---|
134 |
|
---|
135 | ################################################################################
|
---|
136 | #
|
---|
137 | # Pcd Section - list of all EDK II PCD Entries defined by this Platform
|
---|
138 | #
|
---|
139 | ################################################################################
|
---|
140 | [PcdsFixedAtBuild]
|
---|
141 | gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x0f
|
---|
142 | gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x80000000
|
---|
143 | gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x06
|
---|
144 |
|
---|
145 | !if $(CRYPTO_SERVICES) IN "PACKAGE ALL"
|
---|
146 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.HmacSha256.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
---|
147 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Md5.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
---|
148 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Pkcs.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
---|
149 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Dh.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
---|
150 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Random.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
---|
151 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Rsa.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
---|
152 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Sha1.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
---|
153 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Sha256.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
---|
154 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Sha384.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
---|
155 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Sha512.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
---|
156 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.X509.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
---|
157 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Tdes.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
---|
158 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Aes.Services.GetContextSize | TRUE
|
---|
159 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Aes.Services.Init | TRUE
|
---|
160 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Aes.Services.CbcEncrypt | TRUE
|
---|
161 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Aes.Services.CbcDecrypt | TRUE
|
---|
162 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Arc4.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
---|
163 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Sm3.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
---|
164 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Hkdf.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
---|
165 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Tls.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
---|
166 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.TlsSet.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
---|
167 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.TlsGet.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
---|
168 | !endif
|
---|
169 |
|
---|
170 | !if $(CRYPTO_SERVICES) == MIN_PEI
|
---|
171 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.HmacSha256.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
---|
172 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Sha1.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
---|
173 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Sha256.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
---|
174 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Sha384.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
---|
175 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Sha512.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
---|
176 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Sm3.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
---|
177 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Rsa.Services.Pkcs1Verify | TRUE
|
---|
178 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Rsa.Services.New | TRUE
|
---|
179 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Rsa.Services.Free | TRUE
|
---|
180 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Rsa.Services.SetKey | TRUE
|
---|
181 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Pkcs.Services.Pkcs5HashPassword | TRUE
|
---|
182 | !endif
|
---|
183 |
|
---|
184 | !if $(CRYPTO_SERVICES) == MIN_DXE_MIN_SMM
|
---|
185 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.HmacSha256.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
---|
186 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Pkcs.Services.Pkcs1v2Encrypt | TRUE
|
---|
187 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Pkcs.Services.Pkcs5HashPassword | TRUE
|
---|
188 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Pkcs.Services.Pkcs7Verify | TRUE
|
---|
189 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Pkcs.Services.VerifyEKUsInPkcs7Signature | TRUE
|
---|
190 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Pkcs.Services.Pkcs7GetSigners | TRUE
|
---|
191 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Pkcs.Services.Pkcs7FreeSigners | TRUE
|
---|
192 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Pkcs.Services.AuthenticodeVerify | TRUE
|
---|
193 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Random.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
---|
194 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Rsa.Services.Pkcs1Verify | TRUE
|
---|
195 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Rsa.Services.New | TRUE
|
---|
196 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Rsa.Services.Free | TRUE
|
---|
197 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Rsa.Services.SetKey | TRUE
|
---|
198 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Rsa.Services.GetPublicKeyFromX509 | TRUE
|
---|
199 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Sha1.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
---|
200 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Sha256.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
---|
201 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Sha256.Services.HashAll | FALSE
|
---|
202 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.X509.Services.GetSubjectName | TRUE
|
---|
203 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.X509.Services.GetCommonName | TRUE
|
---|
204 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.X509.Services.GetOrganizationName | TRUE
|
---|
205 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.X509.Services.GetTBSCert | TRUE
|
---|
206 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Tls.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
---|
207 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.TlsSet.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
---|
208 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.TlsGet.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
---|
209 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Aes.Services.Init | TRUE
|
---|
210 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Aes.Services.CbcEncrypt | TRUE
|
---|
211 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Aes.Services.CbcDecrypt | TRUE
|
---|
212 | !endif
|
---|
213 |
|
---|
214 | ###################################################################################################
|
---|
215 | #
|
---|
216 | # Components Section - list of the modules and components that will be processed by compilation
|
---|
217 | # tools and the EDK II tools to generate PE32/PE32+/Coff image files.
|
---|
218 | #
|
---|
219 | # Note: The EDK II DSC file is not used to specify how compiled binary images get placed
|
---|
220 | # into firmware volume images. This section is just a list of modules to compile from
|
---|
221 | # source into UEFI-compliant binaries.
|
---|
222 | # It is the FDF file that contains information on combining binary files into firmware
|
---|
223 | # volume images, whose concept is beyond UEFI and is described in PI specification.
|
---|
224 | # Binary modules do not need to be listed in this section, as they should be
|
---|
225 | # specified in the FDF file. For example: Shell binary (Shell_Full.efi), FAT binary (Fat.efi),
|
---|
226 | # Logo (Logo.bmp), and etc.
|
---|
227 | # There may also be modules listed in this section that are not required in the FDF file,
|
---|
228 | # When a module listed here is excluded from FDF file, then UEFI-compliant binary will be
|
---|
229 | # generated for it, but the binary will not be put into any firmware volume.
|
---|
230 | #
|
---|
231 | ###################################################################################################
|
---|
232 | [Components]
|
---|
233 | CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
|
---|
234 | CryptoPkg/Test/UnitTest/Library/BaseCryptLib/TestBaseCryptLibShell.inf
|
---|
235 |
|
---|
236 | !if $(CRYPTO_SERVICES) == PACKAGE
|
---|
237 | [Components]
|
---|
238 | CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
|
---|
239 | CryptoPkg/Library/BaseCryptLib/PeiCryptLib.inf
|
---|
240 | CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf
|
---|
241 | CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
|
---|
242 | CryptoPkg/Library/BaseCryptLibNull/BaseCryptLibNull.inf
|
---|
243 | CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
|
---|
244 | CryptoPkg/Library/TlsLib/TlsLib.inf
|
---|
245 | CryptoPkg/Library/TlsLibNull/TlsLibNull.inf
|
---|
246 | CryptoPkg/Library/OpensslLib/OpensslLib.inf
|
---|
247 | CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf
|
---|
248 | CryptoPkg/Library/BaseHashApiLib/BaseHashApiLib.inf
|
---|
249 |
|
---|
250 | CryptoPkg/Library/BaseCryptLibOnProtocolPpi/PeiCryptLib.inf
|
---|
251 | CryptoPkg/Library/BaseCryptLibOnProtocolPpi/DxeCryptLib.inf
|
---|
252 | CryptoPkg/Library/BaseCryptLibOnProtocolPpi/SmmCryptLib.inf
|
---|
253 | !endif
|
---|
254 |
|
---|
255 | !if $(CRYPTO_SERVICES) IN "PACKAGE ALL NONE MIN_PEI"
|
---|
256 | [Components.IA32, Components.X64, Components.ARM, Components.AARCH64]
|
---|
257 | CryptoPkg/Driver/CryptoPei.inf {
|
---|
258 | <Defines>
|
---|
259 | !if $(CRYPTO_SERVICES) == ALL
|
---|
260 | FILE_GUID = 8DF53C2E-3380-495F-A8B7-370CFE28E1C6
|
---|
261 | !elseif $(CRYPTO_SERVICES) == NONE
|
---|
262 | FILE_GUID = E5A97EE3-71CC-407F-9DA9-6BE0C8A6C7DF
|
---|
263 | !elseif $(CRYPTO_SERVICES) == MIN_PEI
|
---|
264 | FILE_GUID = 0F5827A9-35FD-4F41-8D38-9BAFCE594D31
|
---|
265 | !endif
|
---|
266 | }
|
---|
267 | !endif
|
---|
268 |
|
---|
269 | !if $(CRYPTO_SERVICES) IN "PACKAGE ALL NONE MIN_DXE_MIN_SMM"
|
---|
270 | [Components.IA32, Components.X64, Components.AARCH64]
|
---|
271 | CryptoPkg/Driver/CryptoDxe.inf {
|
---|
272 | <Defines>
|
---|
273 | !if $(CRYPTO_SERVICES) == ALL
|
---|
274 | FILE_GUID = D9444B06-060D-42C5-9344-F04707BE0169
|
---|
275 | !elseif $(CRYPTO_SERVICES) == NONE
|
---|
276 | FILE_GUID = C7A340F4-A6CC-4F95-A2DA-42BEA4C3944A
|
---|
277 | !elseif $(CRYPTO_SERVICES) == MIN_DXE_MIN_SMM
|
---|
278 | FILE_GUID = DDF5BE9E-159A-4B77-B6D7-82B84B5763A2
|
---|
279 | !endif
|
---|
280 | }
|
---|
281 |
|
---|
282 | [Components.IA32, Components.X64]
|
---|
283 | CryptoPkg/Driver/CryptoSmm.inf {
|
---|
284 | <Defines>
|
---|
285 | !if $(CRYPTO_SERVICES) == ALL
|
---|
286 | FILE_GUID = A3542CE8-77F7-49DC-A834-45D37D2EC1FA
|
---|
287 | !elseif $(CRYPTO_SERVICES) == NONE
|
---|
288 | FILE_GUID = 6DCB3127-01E7-4131-A487-DC77A965A541
|
---|
289 | !elseif $(CRYPTO_SERVICES) == MIN_DXE_MIN_SMM
|
---|
290 | FILE_GUID = 85F7EA15-3A2B-474A-8875-180542CD6BF3
|
---|
291 | !endif
|
---|
292 | }
|
---|
293 | !endif
|
---|
294 |
|
---|
295 | [BuildOptions]
|
---|
296 | *_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES
|
---|
297 | !if $(CRYPTO_SERVICES) IN "PACKAGE ALL"
|
---|
298 | MSFT:*_*_*_CC_FLAGS = /D ENABLE_MD5_DEPRECATED_INTERFACES
|
---|
299 | INTEL:*_*_*_CC_FLAGS = /D ENABLE_MD5_DEPRECATED_INTERFACES
|
---|
300 | GCC:*_*_*_CC_FLAGS = -D ENABLE_MD5_DEPRECATED_INTERFACES
|
---|
301 | RVCT:*_*_*_CC_FLAGS = -DENABLE_MD5_DEPRECATED_INTERFACES
|
---|
302 | !endif
|
---|