]> git.proxmox.com Git - mirror_edk2.git/blob - CryptoPkg/CryptoPkg.dsc
CryptoPkg: Add BigNum API to DXE and protocol
[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 !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.SEC]
113 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/SecCryptLib.inf
114
115 [LibraryClasses.common.PEIM]
116 PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
117 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
118 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/PeiCryptLib.inf
119 TlsLib|CryptoPkg/Library/TlsLibNull/TlsLibNull.inf
120
121 [LibraryClasses.IA32.PEIM, LibraryClasses.X64.PEIM]
122 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
123
124 [LibraryClasses.ARM.PEIM, LibraryClasses.AARCH64.PEIM]
125 PeiServicesTablePointerLib|ArmPkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointerLib.inf
126
127 [LibraryClasses.common.DXE_DRIVER]
128 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
129 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
130 TlsLib|CryptoPkg/Library/TlsLib/TlsLib.inf
131
132 [LibraryClasses.common.DXE_SMM_DRIVER]
133 ReportStatusCodeLib|MdeModulePkg/Library/SmmReportStatusCodeLib/SmmReportStatusCodeLib.inf
134 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf
135 TlsLib|CryptoPkg/Library/TlsLibNull/TlsLibNull.inf
136 !endif
137
138 ################################################################################
139 #
140 # Pcd Section - list of all EDK II PCD Entries defined by this Platform
141 #
142 ################################################################################
143 [PcdsFixedAtBuild]
144 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x0f
145 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x80000000
146 gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x06
147
148 !if $(CRYPTO_SERVICES) IN "PACKAGE ALL"
149 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.HmacSha256.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
150 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.HmacSha384.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
151 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Md5.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
152 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Pkcs.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
153 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Dh.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
154 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Random.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
155 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Rsa.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
156 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Sha1.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
157 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Sha256.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
158 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Sha384.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
159 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Sha512.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
160 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.X509.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
161 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Tdes.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
162 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Aes.Services.GetContextSize | TRUE
163 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Aes.Services.Init | TRUE
164 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Aes.Services.CbcEncrypt | TRUE
165 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Aes.Services.CbcDecrypt | TRUE
166 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Arc4.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
167 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Sm3.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
168 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Hkdf.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
169 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Tls.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
170 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.TlsSet.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
171 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.TlsGet.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
172 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Bn.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
173 !endif
174
175 !if $(CRYPTO_SERVICES) == MIN_PEI
176 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.HmacSha256.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
177 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.HmacSha384.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
178 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Sha1.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
179 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Sha256.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
180 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Sha384.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
181 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Sha512.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
182 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Sm3.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
183 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Rsa.Services.Pkcs1Verify | TRUE
184 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Rsa.Services.New | TRUE
185 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Rsa.Services.Free | TRUE
186 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Rsa.Services.SetKey | TRUE
187 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Pkcs.Services.Pkcs5HashPassword | TRUE
188 !endif
189
190 !if $(CRYPTO_SERVICES) == MIN_DXE_MIN_SMM
191 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.HmacSha256.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
192 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.HmacSha384.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
193 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Pkcs.Services.Pkcs1v2Encrypt | TRUE
194 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Pkcs.Services.Pkcs5HashPassword | TRUE
195 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Pkcs.Services.Pkcs7Verify | TRUE
196 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Pkcs.Services.VerifyEKUsInPkcs7Signature | TRUE
197 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Pkcs.Services.Pkcs7GetSigners | TRUE
198 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Pkcs.Services.Pkcs7FreeSigners | TRUE
199 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Pkcs.Services.AuthenticodeVerify | TRUE
200 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Random.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
201 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Rsa.Services.Pkcs1Verify | TRUE
202 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Rsa.Services.New | TRUE
203 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Rsa.Services.Free | TRUE
204 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Rsa.Services.SetKey | TRUE
205 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Rsa.Services.GetPublicKeyFromX509 | TRUE
206 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Sha1.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
207 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Sha256.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
208 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Sha256.Services.HashAll | FALSE
209 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.X509.Services.GetSubjectName | TRUE
210 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.X509.Services.GetCommonName | TRUE
211 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.X509.Services.GetOrganizationName | TRUE
212 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.X509.Services.GetTBSCert | TRUE
213 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Tls.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
214 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.TlsSet.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
215 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.TlsGet.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
216 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Aes.Services.Init | TRUE
217 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Aes.Services.CbcEncrypt | TRUE
218 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Aes.Services.CbcDecrypt | TRUE
219 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.AeadAesGcm.Services.Encrypt | TRUE
220 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.AeadAesGcm.Services.Decrypt | TRUE
221 !endif
222
223 ###################################################################################################
224 #
225 # Components Section - list of the modules and components that will be processed by compilation
226 # tools and the EDK II tools to generate PE32/PE32+/Coff image files.
227 #
228 # Note: The EDK II DSC file is not used to specify how compiled binary images get placed
229 # into firmware volume images. This section is just a list of modules to compile from
230 # source into UEFI-compliant binaries.
231 # It is the FDF file that contains information on combining binary files into firmware
232 # volume images, whose concept is beyond UEFI and is described in PI specification.
233 # Binary modules do not need to be listed in this section, as they should be
234 # specified in the FDF file. For example: Shell binary (Shell_Full.efi), FAT binary (Fat.efi),
235 # Logo (Logo.bmp), and etc.
236 # There may also be modules listed in this section that are not required in the FDF file,
237 # When a module listed here is excluded from FDF file, then UEFI-compliant binary will be
238 # generated for it, but the binary will not be put into any firmware volume.
239 #
240 ###################################################################################################
241 [Components]
242 CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
243 CryptoPkg/Test/UnitTest/Library/BaseCryptLib/TestBaseCryptLibShell.inf
244
245 !if $(CRYPTO_SERVICES) == PACKAGE
246 [Components]
247 CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
248 CryptoPkg/Library/BaseCryptLib/SecCryptLib.inf
249 CryptoPkg/Library/BaseCryptLib/PeiCryptLib.inf
250 CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf
251 CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
252 CryptoPkg/Library/BaseCryptLibNull/BaseCryptLibNull.inf
253 CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
254 CryptoPkg/Library/TlsLib/TlsLib.inf
255 CryptoPkg/Library/TlsLibNull/TlsLibNull.inf
256 CryptoPkg/Library/OpensslLib/OpensslLib.inf
257 CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf
258 CryptoPkg/Library/BaseHashApiLib/BaseHashApiLib.inf
259
260 CryptoPkg/Library/BaseCryptLibOnProtocolPpi/PeiCryptLib.inf
261 CryptoPkg/Library/BaseCryptLibOnProtocolPpi/DxeCryptLib.inf
262 CryptoPkg/Library/BaseCryptLibOnProtocolPpi/SmmCryptLib.inf
263 !endif
264
265 !if $(CRYPTO_SERVICES) IN "PACKAGE ALL NONE MIN_PEI"
266 [Components.IA32, Components.X64, Components.ARM, Components.AARCH64]
267 CryptoPkg/Driver/CryptoPei.inf {
268 <Defines>
269 !if $(CRYPTO_SERVICES) == ALL
270 FILE_GUID = 8DF53C2E-3380-495F-A8B7-370CFE28E1C6
271 !elseif $(CRYPTO_SERVICES) == NONE
272 FILE_GUID = E5A97EE3-71CC-407F-9DA9-6BE0C8A6C7DF
273 !elseif $(CRYPTO_SERVICES) == MIN_PEI
274 FILE_GUID = 0F5827A9-35FD-4F41-8D38-9BAFCE594D31
275 !endif
276 }
277 !endif
278
279 !if $(CRYPTO_SERVICES) IN "PACKAGE ALL NONE MIN_DXE_MIN_SMM"
280 [Components.IA32, Components.X64, Components.AARCH64]
281 CryptoPkg/Driver/CryptoDxe.inf {
282 <Defines>
283 !if $(CRYPTO_SERVICES) == ALL
284 FILE_GUID = D9444B06-060D-42C5-9344-F04707BE0169
285 !elseif $(CRYPTO_SERVICES) == NONE
286 FILE_GUID = C7A340F4-A6CC-4F95-A2DA-42BEA4C3944A
287 !elseif $(CRYPTO_SERVICES) == MIN_DXE_MIN_SMM
288 FILE_GUID = DDF5BE9E-159A-4B77-B6D7-82B84B5763A2
289 !endif
290 }
291
292 [Components.IA32, Components.X64]
293 CryptoPkg/Driver/CryptoSmm.inf {
294 <Defines>
295 !if $(CRYPTO_SERVICES) == ALL
296 FILE_GUID = A3542CE8-77F7-49DC-A834-45D37D2EC1FA
297 !elseif $(CRYPTO_SERVICES) == NONE
298 FILE_GUID = 6DCB3127-01E7-4131-A487-DC77A965A541
299 !elseif $(CRYPTO_SERVICES) == MIN_DXE_MIN_SMM
300 FILE_GUID = 85F7EA15-3A2B-474A-8875-180542CD6BF3
301 !endif
302 }
303 !endif
304
305 [BuildOptions]
306 *_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES
307 !if $(CRYPTO_SERVICES) IN "PACKAGE ALL"
308 MSFT:*_*_*_CC_FLAGS = /D ENABLE_MD5_DEPRECATED_INTERFACES
309 INTEL:*_*_*_CC_FLAGS = /D ENABLE_MD5_DEPRECATED_INTERFACES
310 GCC:*_*_*_CC_FLAGS = -D ENABLE_MD5_DEPRECATED_INTERFACES
311 !endif