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