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) 2023, Intel Corporation. All rights reserved.<BR>
|
---|
6 | # SPDX-License-Identifier: BSD-2-Clause-Patent
|
---|
7 | #
|
---|
8 | ##
|
---|
9 |
|
---|
10 | ################################################################################
|
---|
11 | #
|
---|
12 | # Defines Section - statements that will be processed to create a Makefile.
|
---|
13 | #
|
---|
14 | ################################################################################
|
---|
15 | [Defines]
|
---|
16 | PLATFORM_NAME = CryptoPkg
|
---|
17 | PLATFORM_GUID = E1063286-6C8C-4c25-AEF0-67A9A5B6E6B6
|
---|
18 | PLATFORM_VERSION = 0.98
|
---|
19 | DSC_SPECIFICATION = 0x00010005
|
---|
20 | OUTPUT_DIRECTORY = Build/CryptoPkgMbed
|
---|
21 | SUPPORTED_ARCHITECTURES = IA32|X64|ARM|AARCH64|RISCV64
|
---|
22 | BUILD_TARGETS = DEBUG|RELEASE|NOOPT
|
---|
23 | SKUID_IDENTIFIER = DEFAULT
|
---|
24 |
|
---|
25 | !ifndef CRYPTO_IMG_TYPE
|
---|
26 | DEFINE CRYPTO_IMG_TYPE = DXE_SMM
|
---|
27 | !endif
|
---|
28 |
|
---|
29 | !if $(CRYPTO_IMG_TYPE) IN "PEI_DEFAULT PEI_PREMEM DXE_SMM"
|
---|
30 | !else
|
---|
31 | !error CRYPTO_IMG_TYPE must be set to one of PEI_DEFAULT PEI_PREMEM DXE_SMM.
|
---|
32 | !endif
|
---|
33 |
|
---|
34 | ################################################################################
|
---|
35 | #
|
---|
36 | # Library Class section - list of all Library Classes needed by this Platform.
|
---|
37 | #
|
---|
38 | ################################################################################
|
---|
39 |
|
---|
40 | !include MdePkg/MdeLibs.dsc.inc
|
---|
41 | [LibraryClasses]
|
---|
42 | BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
|
---|
43 | BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
|
---|
44 | PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
|
---|
45 | DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
|
---|
46 | UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
|
---|
47 | UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
|
---|
48 | BaseCryptLib|CryptoPkg/Library/BaseCryptLibNull/BaseCryptLibNull.inf
|
---|
49 | TlsLib|CryptoPkg/Library/TlsLibNull/TlsLibNull.inf
|
---|
50 | HashApiLib|CryptoPkg/Library/BaseHashApiLib/BaseHashApiLib.inf
|
---|
51 | RngLib|MdePkg/Library/BaseRngLib/BaseRngLib.inf
|
---|
52 | SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
|
---|
53 |
|
---|
54 | [LibraryClasses.ARM, LibraryClasses.AARCH64]
|
---|
55 | #
|
---|
56 | # It is not possible to prevent the ARM compiler for generic intrinsic functions.
|
---|
57 | # This library provides the instrinsic functions generate by a given compiler.
|
---|
58 | # [LibraryClasses.ARM, LibraryClasses.AARCH64] and NULL mean link this library
|
---|
59 | # into all ARM and AARCH64 images.
|
---|
60 | #
|
---|
61 | NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf
|
---|
62 |
|
---|
63 | # Add support for stack protector
|
---|
64 | NULL|MdePkg/Library/BaseStackCheckLib/BaseStackCheckLib.inf
|
---|
65 |
|
---|
66 | [LibraryClasses.common.PEIM]
|
---|
67 | PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf
|
---|
68 | MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
|
---|
69 | PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointerLib.inf
|
---|
70 | PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
|
---|
71 | HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
|
---|
72 |
|
---|
73 | [LibraryClasses.common.DXE_SMM_DRIVER]
|
---|
74 | SmmServicesTableLib|MdePkg/Library/SmmServicesTableLib/SmmServicesTableLib.inf
|
---|
75 | MemoryAllocationLib|MdePkg/Library/SmmMemoryAllocationLib/SmmMemoryAllocationLib.inf
|
---|
76 | MmServicesTableLib|MdePkg/Library/MmServicesTableLib/MmServicesTableLib.inf
|
---|
77 | SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
|
---|
78 |
|
---|
79 | [LibraryClasses]
|
---|
80 | MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
|
---|
81 | DebugLib|MdeModulePkg/Library/PeiDxeDebugLibReportStatusCode/PeiDxeDebugLibReportStatusCode.inf
|
---|
82 | DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
|
---|
83 | OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
|
---|
84 | PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
|
---|
85 | DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
|
---|
86 | PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
|
---|
87 | TimerLib|MdePkg/Library/BaseTimerLibNullTemplate/BaseTimerLibNullTemplate.inf
|
---|
88 | UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
|
---|
89 | IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf
|
---|
90 | MbedTlsLib|CryptoPkg/Library/MbedTlsLib/MbedTlsLib.inf
|
---|
91 | IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
|
---|
92 | SafeIntLib|MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf
|
---|
93 |
|
---|
94 | [LibraryClasses.ARM]
|
---|
95 | ArmSoftFloatLib|ArmPkg/Library/ArmSoftFloatLib/ArmSoftFloatLib.inf
|
---|
96 |
|
---|
97 | [LibraryClasses.common.PEIM]
|
---|
98 | PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
|
---|
99 | ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
|
---|
100 | BaseCryptLib|CryptoPkg/Library/BaseCryptLibMbedTls/PeiCryptLib.inf
|
---|
101 | TlsLib|CryptoPkg/Library/TlsLibNull/TlsLibNull.inf
|
---|
102 |
|
---|
103 | [LibraryClasses.IA32.PEIM, LibraryClasses.X64.PEIM]
|
---|
104 | PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
|
---|
105 |
|
---|
106 | [LibraryClasses.ARM.PEIM, LibraryClasses.AARCH64.PEIM]
|
---|
107 | PeiServicesTablePointerLib|ArmPkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointerLib.inf
|
---|
108 |
|
---|
109 | [LibraryClasses.common.DXE_DRIVER]
|
---|
110 | ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
|
---|
111 | BaseCryptLib|CryptoPkg/Library/BaseCryptLibMbedTls/BaseCryptLib.inf
|
---|
112 | TlsLib|CryptoPkg/Library/TlsLibNull/TlsLibNull.inf
|
---|
113 |
|
---|
114 | [LibraryClasses.common.DXE_SMM_DRIVER]
|
---|
115 | ReportStatusCodeLib|MdeModulePkg/Library/SmmReportStatusCodeLib/SmmReportStatusCodeLib.inf
|
---|
116 | BaseCryptLib|CryptoPkg/Library/BaseCryptLibMbedTls/SmmCryptLib.inf
|
---|
117 | TlsLib|CryptoPkg/Library/TlsLibNull/TlsLibNull.inf
|
---|
118 |
|
---|
119 | ################################################################################
|
---|
120 | #
|
---|
121 | # Pcd Section - list of all EDK II PCD Entries defined by this Platform
|
---|
122 | #
|
---|
123 | ################################################################################
|
---|
124 | [PcdsFixedAtBuild]
|
---|
125 | gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x0f
|
---|
126 | gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x80000000
|
---|
127 | gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x06
|
---|
128 |
|
---|
129 | !if $(CRYPTO_IMG_TYPE) IN "DXE_SMM"
|
---|
130 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.HmacMd5.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
---|
131 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.HmacSha1.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
---|
132 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.HmacSha256.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
---|
133 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Md4.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
---|
134 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Md5.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
---|
135 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Pkcs.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
---|
136 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Dh.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
---|
137 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Random.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
---|
138 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Rsa.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
---|
139 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Sha1.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
---|
140 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Sha256.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
---|
141 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Sha384.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
---|
142 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Sha512.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
---|
143 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.X509.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
---|
144 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Tdes.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
---|
145 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Aes.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
---|
146 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Arc4.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
---|
147 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Sm3.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
---|
148 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Hkdf.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
---|
149 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Tls.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
---|
150 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.TlsSet.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
---|
151 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.TlsGet.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
---|
152 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.ParallelHash.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
---|
153 | !endif
|
---|
154 |
|
---|
155 | !if $(CRYPTO_IMG_TYPE) IN "PEI_DEFAULT"
|
---|
156 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Aes.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
---|
157 |
|
---|
158 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Rsa.Services.Pkcs1Verify | TRUE
|
---|
159 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Rsa.Services.New | TRUE
|
---|
160 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Rsa.Services.SetKey | TRUE
|
---|
161 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Rsa.Services.Free | TRUE
|
---|
162 |
|
---|
163 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Sha1.Services.GetContextSize | TRUE
|
---|
164 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Sha1.Services.Init | TRUE
|
---|
165 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Sha1.Services.Update | TRUE
|
---|
166 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Sha1.Services.Final | TRUE
|
---|
167 |
|
---|
168 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Sha256.Services.GetContextSize | TRUE
|
---|
169 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Sha256.Services.Init | TRUE
|
---|
170 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Sha256.Services.Update | TRUE
|
---|
171 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Sha256.Services.Final | TRUE
|
---|
172 |
|
---|
173 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Sha384.Services.GetContextSize | TRUE
|
---|
174 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Sha384.Services.Init | TRUE
|
---|
175 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Sha384.Services.Update | TRUE
|
---|
176 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Sha384.Services.Final | TRUE
|
---|
177 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Sha384.Services.HashAll | TRUE
|
---|
178 |
|
---|
179 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Sm3.Services.GetContextSize | TRUE
|
---|
180 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Sm3.Services.Init | TRUE
|
---|
181 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Sm3.Services.Update | TRUE
|
---|
182 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Sm3.Services.Final | TRUE
|
---|
183 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Sm3.Services.HashAll | TRUE
|
---|
184 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Sm3.Services.Duplicate | TRUE
|
---|
185 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.HmacSha256.Services.New | TRUE
|
---|
186 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.HmacSha256.Services.Free | TRUE
|
---|
187 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.HmacSha256.Services.SetKey | TRUE
|
---|
188 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.HmacSha256.Services.Duplicate | TRUE
|
---|
189 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.HmacSha256.Services.Update | TRUE
|
---|
190 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.HmacSha256.Services.Final | TRUE
|
---|
191 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Hkdf.Services.Sha256ExtractAndExpand | TRUE
|
---|
192 | !endif
|
---|
193 |
|
---|
194 | !if $(CRYPTO_IMG_TYPE) IN "PEI_PREMEM"
|
---|
195 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Sha256.Services.GetContextSize | TRUE
|
---|
196 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Sha256.Services.Init | TRUE
|
---|
197 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Sha256.Services.Update | TRUE
|
---|
198 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Sha256.Services.Final | TRUE
|
---|
199 |
|
---|
200 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Sha384.Services.GetContextSize | TRUE
|
---|
201 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Sha384.Services.Init | TRUE
|
---|
202 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Sha384.Services.Update | TRUE
|
---|
203 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Sha384.Services.Final | TRUE
|
---|
204 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Sha384.Services.HashAll | TRUE
|
---|
205 |
|
---|
206 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Sha512.Services.GetContextSize | TRUE
|
---|
207 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Sha512.Services.Init | TRUE
|
---|
208 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Sha512.Services.Update | TRUE
|
---|
209 | gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Sha512.Services.Final | 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 |
|
---|
231 | !if $(CRYPTO_IMG_TYPE) IN "PEI_DEFAULT PEI_PREMEM"
|
---|
232 | [Components.IA32, Components.X64, Components.ARM, Components.AARCH64]
|
---|
233 | CryptoPkg/Driver/CryptoPei.inf {
|
---|
234 | <Defines>
|
---|
235 | !if "$(CRYPTO_SERVICES)" == "ALL"
|
---|
236 | FILE_GUID = 8DF53C2E-3380-495F-A8B7-370CFE28E1C6
|
---|
237 | !elseif "$(CRYPTO_SERVICES)" == "NONE"
|
---|
238 | FILE_GUID = E5A97EE3-71CC-407F-9DA9-6BE0C8A6C7DF
|
---|
239 | !elseif "$(CRYPTO_SERVICES)" == "MIN_PEI"
|
---|
240 | FILE_GUID = 0F5827A9-35FD-4F41-8D38-9BAFCE594D31
|
---|
241 | !endif
|
---|
242 | }
|
---|
243 | !endif
|
---|
244 |
|
---|
245 | !if $(CRYPTO_IMG_TYPE) IN "DXE_SMM"
|
---|
246 | [Components.IA32, Components.X64, Components.AARCH64]
|
---|
247 | CryptoPkg/Driver/CryptoDxe.inf {
|
---|
248 | <Defines>
|
---|
249 | !if "$(CRYPTO_SERVICES)" == "ALL"
|
---|
250 | FILE_GUID = D9444B06-060D-42C5-9344-F04707BE0169
|
---|
251 | !elseif "$(CRYPTO_SERVICES)" == "NONE"
|
---|
252 | FILE_GUID = C7A340F4-A6CC-4F95-A2DA-42BEA4C3944A
|
---|
253 | !elseif "$(CRYPTO_SERVICES)" == MIN_DXE_MIN_SMM
|
---|
254 | FILE_GUID = DDF5BE9E-159A-4B77-B6D7-82B84B5763A2
|
---|
255 | !endif
|
---|
256 | }
|
---|
257 |
|
---|
258 | [Components.IA32, Components.X64]
|
---|
259 | CryptoPkg/Driver/CryptoSmm.inf {
|
---|
260 | <Defines>
|
---|
261 | !if "$(CRYPTO_SERVICES)" == "ALL"
|
---|
262 | FILE_GUID = A3542CE8-77F7-49DC-A834-45D37D2EC1FA
|
---|
263 | !elseif "$(CRYPTO_SERVICES)" == "NONE"
|
---|
264 | FILE_GUID = 6DCB3127-01E7-4131-A487-DC77A965A541
|
---|
265 | !elseif "$(CRYPTO_SERVICES)" == MIN_DXE_MIN_SMM
|
---|
266 | FILE_GUID = 85F7EA15-3A2B-474A-8875-180542CD6BF3
|
---|
267 | !endif
|
---|
268 | }
|
---|
269 | !endif
|
---|
270 |
|
---|
271 | [BuildOptions]
|
---|
272 | *_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES
|
---|
273 | MSFT:*_*_*_CC_FLAGS = /D ENABLE_MD5_DEPRECATED_INTERFACES
|
---|
274 | INTEL:*_*_*_CC_FLAGS = /D ENABLE_MD5_DEPRECATED_INTERFACES
|
---|
275 | GCC:*_*_*_CC_FLAGS = -D ENABLE_MD5_DEPRECATED_INTERFACES
|
---|
276 | RVCT:*_*_*_CC_FLAGS = -DENABLE_MD5_DEPRECATED_INTERFACES
|
---|
277 | !if $(CRYPTO_IMG_TYPE) IN "DXE_SMM"
|
---|
278 | MSFT:*_*_*_DLINK_FLAGS = /ALIGN:4096
|
---|
279 | GCC:*_GCC*_*_DLINK_FLAGS = -z common-page-size=0x1000
|
---|
280 | !endif
|
---|