]> git.proxmox.com Git - mirror_edk2.git/blob - CryptoPkg/CryptoPkg.dsc
CryptoPkg: Consume MdeLibs.dsc.inc for RegisterFilterLib
[mirror_edk2.git] / CryptoPkg / CryptoPkg.dsc
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 ################################################################################
49 #
50 # Library Class section - list of all Library Classes needed by this Platform.
51 #
52 ################################################################################
53
54 !include MdePkg/MdeLibs.dsc.inc
55
56 [LibraryClasses]
57 BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
58 BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
59 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
60 DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
61 UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
62 UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
63 BaseCryptLib|CryptoPkg/Library/BaseCryptLibNull/BaseCryptLibNull.inf
64 TlsLib|CryptoPkg/Library/TlsLibNull/TlsLibNull.inf
65 HashApiLib|CryptoPkg/Library/BaseHashApiLib/BaseHashApiLib.inf
66 RngLib|MdePkg/Library/BaseRngLibNull/BaseRngLibNull.inf
67
68 [LibraryClasses.ARM, LibraryClasses.AARCH64]
69 #
70 # It is not possible to prevent the ARM compiler for generic intrinsic functions.
71 # This library provides the instrinsic functions generate by a given compiler.
72 # [LibraryClasses.ARM, LibraryClasses.AARCH64] and NULL mean link this library
73 # into all ARM and AARCH64 images.
74 #
75 NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf
76
77 # Add support for stack protector
78 NULL|MdePkg/Library/BaseStackCheckLib/BaseStackCheckLib.inf
79
80 [LibraryClasses.common.PEIM]
81 PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf
82 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
83 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointerLib.inf
84 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
85 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
86
87 [LibraryClasses.common.DXE_SMM_DRIVER]
88 SmmServicesTableLib|MdePkg/Library/SmmServicesTableLib/SmmServicesTableLib.inf
89 MemoryAllocationLib|MdePkg/Library/SmmMemoryAllocationLib/SmmMemoryAllocationLib.inf
90
91 !if $(CRYPTO_SERVICES) IN "ALL NONE MIN_PEI MIN_DXE_MIN_SMM"
92 [LibraryClasses]
93 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
94 DebugLib|MdeModulePkg/Library/PeiDxeDebugLibReportStatusCode/PeiDxeDebugLibReportStatusCode.inf
95 DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
96 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
97 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
98 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
99 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
100 TimerLib|MdePkg/Library/BaseTimerLibNullTemplate/BaseTimerLibNullTemplate.inf
101 UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf #???
102 IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf #???
103 OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf
104 IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
105 SafeIntLib|MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf
106
107 [LibraryClasses.ARM]
108 ArmSoftFloatLib|ArmPkg/Library/ArmSoftFloatLib/ArmSoftFloatLib.inf
109
110 [LibraryClasses.common.PEIM]
111 PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
112 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
113 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/PeiCryptLib.inf
114 TlsLib|CryptoPkg/Library/TlsLibNull/TlsLibNull.inf
115
116 [LibraryClasses.IA32.PEIM, LibraryClasses.X64.PEIM]
117 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
118
119 [LibraryClasses.ARM.PEIM, LibraryClasses.AARCH64.PEIM]
120 PeiServicesTablePointerLib|ArmPkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointerLib.inf
121
122 [LibraryClasses.common.DXE_DRIVER]
123 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
124 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
125 TlsLib|CryptoPkg/Library/TlsLib/TlsLib.inf
126
127 [LibraryClasses.common.DXE_SMM_DRIVER]
128 ReportStatusCodeLib|MdeModulePkg/Library/SmmReportStatusCodeLib/SmmReportStatusCodeLib.inf
129 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf
130 TlsLib|CryptoPkg/Library/TlsLibNull/TlsLibNull.inf
131 !endif
132
133 ################################################################################
134 #
135 # Pcd Section - list of all EDK II PCD Entries defined by this Platform
136 #
137 ################################################################################
138 [PcdsFixedAtBuild]
139 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x0f
140 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x80000000
141 gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x06
142
143 !if $(CRYPTO_SERVICES) IN "PACKAGE ALL"
144 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.HmacSha256.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
145 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Md5.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
146 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Pkcs.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
147 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Dh.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
148 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Random.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
149 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Rsa.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
150 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Sha1.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
151 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Sha256.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
152 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Sha384.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
153 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Sha512.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
154 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.X509.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
155 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Tdes.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
156 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Aes.Services.GetContextSize | TRUE
157 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Aes.Services.Init | TRUE
158 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Aes.Services.CbcEncrypt | TRUE
159 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Aes.Services.CbcDecrypt | TRUE
160 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Arc4.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
161 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Sm3.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
162 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Hkdf.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
163 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Tls.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
164 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.TlsSet.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
165 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.TlsGet.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
166 !endif
167
168 !if $(CRYPTO_SERVICES) == MIN_PEI
169 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.HmacSha256.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
170 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Sha1.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
171 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Sha256.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
172 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Sha384.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
173 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Sha512.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
174 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Sm3.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
175 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Rsa.Services.Pkcs1Verify | TRUE
176 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Rsa.Services.New | TRUE
177 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Rsa.Services.Free | TRUE
178 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Rsa.Services.SetKey | TRUE
179 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Pkcs.Services.Pkcs5HashPassword | TRUE
180 !endif
181
182 !if $(CRYPTO_SERVICES) == MIN_DXE_MIN_SMM
183 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.HmacSha256.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
184 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Pkcs.Services.Pkcs1v2Encrypt | TRUE
185 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Pkcs.Services.Pkcs5HashPassword | TRUE
186 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Pkcs.Services.Pkcs7Verify | TRUE
187 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Pkcs.Services.VerifyEKUsInPkcs7Signature | TRUE
188 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Pkcs.Services.Pkcs7GetSigners | TRUE
189 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Pkcs.Services.Pkcs7FreeSigners | TRUE
190 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Pkcs.Services.AuthenticodeVerify | TRUE
191 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Random.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
192 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Rsa.Services.Pkcs1Verify | TRUE
193 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Rsa.Services.New | TRUE
194 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Rsa.Services.Free | TRUE
195 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Rsa.Services.SetKey | TRUE
196 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Rsa.Services.GetPublicKeyFromX509 | TRUE
197 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Sha1.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
198 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Sha256.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
199 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Sha256.Services.HashAll | FALSE
200 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.X509.Services.GetSubjectName | TRUE
201 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.X509.Services.GetCommonName | TRUE
202 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.X509.Services.GetOrganizationName | TRUE
203 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.X509.Services.GetTBSCert | TRUE
204 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Tls.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
205 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.TlsSet.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
206 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.TlsGet.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
207 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Aes.Services.Init | TRUE
208 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Aes.Services.CbcEncrypt | TRUE
209 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Aes.Services.CbcDecrypt | TRUE
210 !endif
211
212 ###################################################################################################
213 #
214 # Components Section - list of the modules and components that will be processed by compilation
215 # tools and the EDK II tools to generate PE32/PE32+/Coff image files.
216 #
217 # Note: The EDK II DSC file is not used to specify how compiled binary images get placed
218 # into firmware volume images. This section is just a list of modules to compile from
219 # source into UEFI-compliant binaries.
220 # It is the FDF file that contains information on combining binary files into firmware
221 # volume images, whose concept is beyond UEFI and is described in PI specification.
222 # Binary modules do not need to be listed in this section, as they should be
223 # specified in the FDF file. For example: Shell binary (Shell_Full.efi), FAT binary (Fat.efi),
224 # Logo (Logo.bmp), and etc.
225 # There may also be modules listed in this section that are not required in the FDF file,
226 # When a module listed here is excluded from FDF file, then UEFI-compliant binary will be
227 # generated for it, but the binary will not be put into any firmware volume.
228 #
229 ###################################################################################################
230 [Components]
231 CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
232 CryptoPkg/Test/UnitTest/Library/BaseCryptLib/TestBaseCryptLibShell.inf {
233 <LibraryClasses>
234 PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf
235 UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
236 UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
237
238 BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
239 BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
240 DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
241 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
242 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
243 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
244 PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf
245 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
246 UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
247
248 UnitTestLib|UnitTestFrameworkPkg/Library/UnitTestLib/UnitTestLib.inf
249 UnitTestPersistenceLib|UnitTestFrameworkPkg/Library/UnitTestPersistenceLibNull/UnitTestPersistenceLibNull.inf
250 UnitTestResultReportLib|UnitTestFrameworkPkg/Library/UnitTestResultReportLib/UnitTestResultReportLibDebugLib.inf
251 }
252
253 !if $(CRYPTO_SERVICES) == PACKAGE
254 [Components]
255 CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
256 CryptoPkg/Library/BaseCryptLib/PeiCryptLib.inf
257 CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf
258 CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
259 CryptoPkg/Library/BaseCryptLibNull/BaseCryptLibNull.inf
260 CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
261 CryptoPkg/Library/TlsLib/TlsLib.inf
262 CryptoPkg/Library/TlsLibNull/TlsLibNull.inf
263 CryptoPkg/Library/OpensslLib/OpensslLib.inf
264 CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf
265 CryptoPkg/Library/BaseHashApiLib/BaseHashApiLib.inf
266
267 CryptoPkg/Library/BaseCryptLibOnProtocolPpi/PeiCryptLib.inf
268 CryptoPkg/Library/BaseCryptLibOnProtocolPpi/DxeCryptLib.inf
269 CryptoPkg/Library/BaseCryptLibOnProtocolPpi/SmmCryptLib.inf
270 !endif
271
272 !if $(CRYPTO_SERVICES) IN "PACKAGE ALL NONE MIN_PEI"
273 [Components.IA32, Components.X64, Components.ARM, Components.AARCH64]
274 CryptoPkg/Driver/CryptoPei.inf {
275 <Defines>
276 !if $(CRYPTO_SERVICES) == ALL
277 FILE_GUID = 8DF53C2E-3380-495F-A8B7-370CFE28E1C6
278 !elseif $(CRYPTO_SERVICES) == NONE
279 FILE_GUID = E5A97EE3-71CC-407F-9DA9-6BE0C8A6C7DF
280 !elseif $(CRYPTO_SERVICES) == MIN_PEI
281 FILE_GUID = 0F5827A9-35FD-4F41-8D38-9BAFCE594D31
282 !endif
283 }
284 !endif
285
286 !if $(CRYPTO_SERVICES) IN "PACKAGE ALL NONE MIN_DXE_MIN_SMM"
287 [Components.IA32, Components.X64, Components.AARCH64]
288 CryptoPkg/Driver/CryptoDxe.inf {
289 <Defines>
290 !if $(CRYPTO_SERVICES) == ALL
291 FILE_GUID = D9444B06-060D-42C5-9344-F04707BE0169
292 !elseif $(CRYPTO_SERVICES) == NONE
293 FILE_GUID = C7A340F4-A6CC-4F95-A2DA-42BEA4C3944A
294 !elseif $(CRYPTO_SERVICES) == MIN_DXE_MIN_SMM
295 FILE_GUID = DDF5BE9E-159A-4B77-B6D7-82B84B5763A2
296 !endif
297 }
298
299 [Components.IA32, Components.X64]
300 CryptoPkg/Driver/CryptoSmm.inf {
301 <Defines>
302 !if $(CRYPTO_SERVICES) == ALL
303 FILE_GUID = A3542CE8-77F7-49DC-A834-45D37D2EC1FA
304 !elseif $(CRYPTO_SERVICES) == NONE
305 FILE_GUID = 6DCB3127-01E7-4131-A487-DC77A965A541
306 !elseif $(CRYPTO_SERVICES) == MIN_DXE_MIN_SMM
307 FILE_GUID = 85F7EA15-3A2B-474A-8875-180542CD6BF3
308 !endif
309 }
310 !endif
311
312 [BuildOptions]
313 *_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES
314 !if $(CRYPTO_SERVICES) IN "PACKAGE ALL"
315 MSFT:*_*_*_CC_FLAGS = /D ENABLE_MD5_DEPRECATED_INTERFACES
316 INTEL:*_*_*_CC_FLAGS = /D ENABLE_MD5_DEPRECATED_INTERFACES
317 GCC:*_*_*_CC_FLAGS = -D ENABLE_MD5_DEPRECATED_INTERFACES
318 RVCT:*_*_*_CC_FLAGS = -DENABLE_MD5_DEPRECATED_INTERFACES
319 !endif