]> git.proxmox.com Git - mirror_edk2.git/blob - SecurityPkg/SecurityPkg.dsc
5577ff068781d9f5a2a07a7b28f50c685f4175b3
[mirror_edk2.git] / SecurityPkg / SecurityPkg.dsc
1 ## @file
2 # Security Module Package for All Architectures.
3 #
4 # Copyright (c) 2009 - 2019, Intel Corporation. All rights reserved.<BR>
5 # (C) Copyright 2015 Hewlett Packard Enterprise Development LP<BR>
6 # This program and the accompanying materials
7 # are licensed and made available under the terms and conditions of the BSD License
8 # which accompanies this distribution. The full text of the license may be found at
9 # http://opensource.org/licenses/bsd-license.php
10 #
11 # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
13 #
14 ##
15
16 [Defines]
17 PLATFORM_NAME = SecurityPkg
18 PLATFORM_GUID = B2C4614D-AE76-47ba-B876-5988BFED064F
19 PLATFORM_VERSION = 0.98
20 DSC_SPECIFICATION = 0x00010005
21 OUTPUT_DIRECTORY = Build/SecurityPkg
22 SUPPORTED_ARCHITECTURES = IA32|X64|EBC|ARM|AARCH64
23 BUILD_TARGETS = DEBUG|RELEASE|NOOPT
24 SKUID_IDENTIFIER = DEFAULT
25
26 [LibraryClasses]
27 DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
28 DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
29 BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
30 SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
31 TimerLib|MdePkg/Library/BaseTimerLibNullTemplate/BaseTimerLibNullTemplate.inf
32 BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
33 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
34 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
35 UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
36 PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf
37 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
38 PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf
39
40 DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
41 UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
42 UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
43 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
44 UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
45 DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf
46 UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
47 UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
48 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
49 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
50 HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
51 UefiHiiServicesLib|MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf
52 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
53 IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
54 OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf
55 IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf
56 TpmCommLib|SecurityPkg/Library/TpmCommLib/TpmCommLib.inf
57 PlatformSecureLib|SecurityPkg/Library/PlatformSecureLibNull/PlatformSecureLibNull.inf
58 TcgPhysicalPresenceLib|SecurityPkg/Library/DxeTcgPhysicalPresenceLib/DxeTcgPhysicalPresenceLib.inf
59 TpmMeasurementLib|SecurityPkg/Library/DxeTpmMeasurementLib/DxeTpmMeasurementLib.inf
60 Tpm12CommandLib|SecurityPkg/Library/Tpm12CommandLib/Tpm12CommandLib.inf
61 Tpm2CommandLib|SecurityPkg/Library/Tpm2CommandLib/Tpm2CommandLib.inf
62 Tcg2PhysicalPresenceLib|SecurityPkg/Library/DxeTcg2PhysicalPresenceLib/DxeTcg2PhysicalPresenceLib.inf
63 TcgPpVendorLib|SecurityPkg/Library/TcgPpVendorLibNull/TcgPpVendorLibNull.inf
64 Tcg2PpVendorLib|SecurityPkg/Library/Tcg2PpVendorLibNull/Tcg2PpVendorLibNull.inf
65 RngLib|MdePkg/Library/BaseRngLib/BaseRngLib.inf
66 PciLib|MdePkg/Library/BasePciLibPciExpress/BasePciLibPciExpress.inf
67 PciSegmentLib|MdePkg/Library/BasePciSegmentLibPci/BasePciSegmentLibPci.inf
68 S3BootScriptLib|MdeModulePkg/Library/PiDxeS3BootScriptLib/DxeS3BootScriptLib.inf
69 SmbusLib|MdePkg/Library/BaseSmbusLibNull/BaseSmbusLibNull.inf
70 LockBoxLib|MdeModulePkg/Library/LockBoxNullLib/LockBoxNullLib.inf
71 PciExpressLib|MdePkg/Library/BasePciExpressLib/BasePciExpressLib.inf
72 TcgStorageCoreLib|SecurityPkg/Library/TcgStorageCoreLib/TcgStorageCoreLib.inf
73 TcgStorageOpalLib|SecurityPkg/Library/TcgStorageOpalLib/TcgStorageOpalLib.inf
74 ResetSystemLib|MdeModulePkg/Library/BaseResetSystemLibNull/BaseResetSystemLibNull.inf
75
76 [LibraryClasses.ARM]
77 #
78 # It is not possible to prevent the ARM compiler for generic intrinsic functions.
79 # This library provides the instrinsic functions generate by a given compiler.
80 # And NULL mean link this library into all ARM images.
81 #
82 NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf
83
84 # Add support for GCC stack protector
85 NULL|MdePkg/Library/BaseStackCheckLib/BaseStackCheckLib.inf
86
87 [LibraryClasses.common.PEIM]
88 PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf
89 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
90 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointerLib.inf
91 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
92 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
93 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/PeiCryptLib.inf
94 HashLib|SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterPei.inf
95 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
96 Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibDTpm/Tpm12DeviceLibDTpm.inf
97 Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2DeviceLibDTpm.inf
98 Tcg2PhysicalPresenceLib|SecurityPkg/Library/PeiTcg2PhysicalPresenceLib/PeiTcg2PhysicalPresenceLib.inf
99 RngLib|MdePkg/Library/BaseRngLib/BaseRngLib.inf
100
101 [LibraryClasses.common.DXE_DRIVER]
102 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
103 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
104 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
105 HashLib|SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterDxe.inf
106 Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibTcg/Tpm12DeviceLibTcg.inf
107 Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibTcg2/Tpm2DeviceLibTcg2.inf
108 FileExplorerLib|MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf
109
110 [LibraryClasses.common.UEFI_DRIVER, LibraryClasses.common.DXE_RUNTIME_DRIVER, LibraryClasses.common.DXE_SAL_DRIVER,]
111 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
112 DebugLib|MdePkg/Library/UefiDebugLibConOut/UefiDebugLibConOut.inf
113 HashLib|SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterDxe.inf
114 Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibTcg/Tpm12DeviceLibTcg.inf
115 Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibTcg2/Tpm2DeviceLibTcg2.inf
116
117 [LibraryClasses.common.DXE_RUNTIME_DRIVER]
118 ReportStatusCodeLib|MdeModulePkg/Library/RuntimeDxeReportStatusCodeLib/RuntimeDxeReportStatusCodeLib.inf
119 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
120 HashLib|SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterDxe.inf
121 Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibTcg/Tpm12DeviceLibTcg.inf
122 Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibTcg2/Tpm2DeviceLibTcg2.inf
123
124 [LibraryClasses.common.UEFI_DRIVER, LibraryClasses.common.UEFI_APPLICATION]
125 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
126 HashLib|SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterDxe.inf
127 Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibTcg/Tpm12DeviceLibTcg.inf
128 Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibTcg2/Tpm2DeviceLibTcg2.inf
129
130 [LibraryClasses.common.DXE_SMM_DRIVER]
131 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
132 SmmServicesTableLib|MdePkg/Library/SmmServicesTableLib/SmmServicesTableLib.inf
133 MemoryAllocationLib|MdePkg/Library/SmmMemoryAllocationLib/SmmMemoryAllocationLib.inf
134 ReportStatusCodeLib|MdeModulePkg/Library/SmmReportStatusCodeLib/SmmReportStatusCodeLib.inf
135 SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf
136 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf
137 Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibTcg/Tpm12DeviceLibTcg.inf
138 Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibTcg2/Tpm2DeviceLibTcg2.inf
139 Tcg2PhysicalPresenceLib|SecurityPkg/Library/SmmTcg2PhysicalPresenceLib/SmmTcg2PhysicalPresenceLib.inf
140 SmmIoLib|MdePkg/Library/SmmIoLib/SmmIoLib.inf
141
142 [PcdsDynamicDefault.common.DEFAULT]
143 gEfiSecurityPkgTokenSpaceGuid.PcdTpmInstanceGuid|{0xb6, 0xe5, 0x01, 0x8b, 0x19, 0x4f, 0xe8, 0x46, 0xab, 0x93, 0x1c, 0x53, 0x67, 0x1b, 0x90, 0xcc}
144 gEfiSecurityPkgTokenSpaceGuid.PcdTpm2InitializationPolicy|1
145 gEfiSecurityPkgTokenSpaceGuid.PcdTpm2SelfTestPolicy|1
146 gEfiSecurityPkgTokenSpaceGuid.PcdTpm2ScrtmPolicy|1
147 gEfiSecurityPkgTokenSpaceGuid.PcdTpmInitializationPolicy|1
148 gEfiSecurityPkgTokenSpaceGuid.PcdTpmScrtmPolicy|1
149 gEfiSecurityPkgTokenSpaceGuid.PcdTpm2HashMask|3
150 gEfiSecurityPkgTokenSpaceGuid.PcdTcg2HashAlgorithmBitmap|3
151
152 [PcdsDynamicHii.common.DEFAULT]
153 gEfiSecurityPkgTokenSpaceGuid.PcdTcgPhysicalPresenceInterfaceVer|L"TCG2_VERSION"|gTcg2ConfigFormSetGuid|0x0|"1.3"|NV,BS
154 gEfiSecurityPkgTokenSpaceGuid.PcdTpm2AcpiTableRev|L"TCG2_VERSION"|gTcg2ConfigFormSetGuid|0x8|3|NV,BS
155
156 [Components]
157 SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.inf
158 #SecurityPkg/Library/DxeDeferImageLoadLib/DxeDeferImageLoadLib.inf
159 SecurityPkg/Library/DxeImageAuthenticationStatusLib/DxeImageAuthenticationStatusLib.inf
160
161 #
162 # TPM
163 #
164 SecurityPkg/Library/DxeTpmMeasureBootLib/DxeTpmMeasureBootLib.inf
165 SecurityPkg/Library/TpmCommLib/TpmCommLib.inf
166 SecurityPkg/Library/DxeTcgPhysicalPresenceLib/DxeTcgPhysicalPresenceLib.inf
167 SecurityPkg/Library/Tpm12CommandLib/Tpm12CommandLib.inf
168 SecurityPkg/Library/Tpm12DeviceLibDTpm/Tpm12DeviceLibDTpm.inf
169 SecurityPkg/Library/Tpm12DeviceLibTcg/Tpm12DeviceLibTcg.inf
170
171 SecurityPkg/Tcg/PhysicalPresencePei/PhysicalPresencePei.inf
172 SecurityPkg/Tcg/MemoryOverwriteControl/TcgMor.inf
173
174 #
175 # TPM2
176 #
177 SecurityPkg/Library/DxeTpm2MeasureBootLib/DxeTpm2MeasureBootLib.inf
178 SecurityPkg/Library/DxeTcg2PhysicalPresenceLib/DxeTcg2PhysicalPresenceLib.inf
179 SecurityPkg/Library/PeiTcg2PhysicalPresenceLib/PeiTcg2PhysicalPresenceLib.inf
180
181 SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterDxe.inf
182 SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterPei.inf
183
184 SecurityPkg/Library/Tpm2CommandLib/Tpm2CommandLib.inf
185 SecurityPkg/Library/Tpm2DeviceLibTcg2/Tpm2DeviceLibTcg2.inf
186 SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2DeviceLibDTpm.inf
187 SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2InstanceLibDTpm.inf
188 SecurityPkg/Library/Tpm2DeviceLibRouter/Tpm2DeviceLibRouterDxe.inf
189 SecurityPkg/Library/Tpm2DeviceLibRouter/Tpm2DeviceLibRouterPei.inf
190
191 SecurityPkg/Library/HashLibTpm2/HashLibTpm2.inf
192
193 #
194 # TCG Storage.
195 #
196 SecurityPkg/Library/TcgStorageCoreLib/TcgStorageCoreLib.inf
197 SecurityPkg/Library/TcgStorageOpalLib/TcgStorageOpalLib.inf
198
199 #
200 # Other
201 #
202 SecurityPkg/Library/DxeRsa2048Sha256GuidedSectionExtractLib/DxeRsa2048Sha256GuidedSectionExtractLib.inf
203 SecurityPkg/Library/PeiRsa2048Sha256GuidedSectionExtractLib/PeiRsa2048Sha256GuidedSectionExtractLib.inf
204
205 SecurityPkg/Library/FmpAuthenticationLibPkcs7/FmpAuthenticationLibPkcs7.inf
206 SecurityPkg/Library/FmpAuthenticationLibRsa2048Sha256/FmpAuthenticationLibRsa2048Sha256.inf
207
208 [Components.IA32, Components.X64, Components.ARM, Components.AARCH64]
209 SecurityPkg/Library/AuthVariableLib/AuthVariableLib.inf
210
211 [Components.IA32, Components.X64]
212 SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf
213
214 #
215 # TPM
216 #
217 SecurityPkg/Tcg/TcgPei/TcgPei.inf
218 SecurityPkg/Tcg/TcgDxe/TcgDxe.inf
219 SecurityPkg/Tcg/TcgConfigDxe/TcgConfigDxe.inf {
220 <LibraryClasses>
221 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
222 }
223
224 #
225 # TPM2
226 #
227 SecurityPkg/Library/HashInstanceLibSha1/HashInstanceLibSha1.inf
228 SecurityPkg/Library/HashInstanceLibSha256/HashInstanceLibSha256.inf
229 SecurityPkg/Library/HashInstanceLibSha384/HashInstanceLibSha384.inf
230 SecurityPkg/Library/HashInstanceLibSha512/HashInstanceLibSha512.inf
231
232 SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigPei.inf {
233 <LibraryClasses>
234 Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibDTpm/Tpm12DeviceLibDTpm.inf
235 Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2DeviceLibDTpm.inf
236 }
237 SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.inf {
238 <LibraryClasses>
239 Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibRouter/Tpm2DeviceLibRouterPei.inf
240 NULL|SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2InstanceLibDTpm.inf
241 NULL|SecurityPkg/Library/HashInstanceLibSha1/HashInstanceLibSha1.inf
242 NULL|SecurityPkg/Library/HashInstanceLibSha256/HashInstanceLibSha256.inf
243 NULL|SecurityPkg/Library/HashInstanceLibSha384/HashInstanceLibSha384.inf
244 NULL|SecurityPkg/Library/HashInstanceLibSha512/HashInstanceLibSha512.inf
245 }
246
247 SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.inf {
248 <LibraryClasses>
249 Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibRouter/Tpm2DeviceLibRouterDxe.inf
250 NULL|SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2InstanceLibDTpm.inf
251 NULL|SecurityPkg/Library/HashInstanceLibSha1/HashInstanceLibSha1.inf
252 NULL|SecurityPkg/Library/HashInstanceLibSha256/HashInstanceLibSha256.inf
253 NULL|SecurityPkg/Library/HashInstanceLibSha384/HashInstanceLibSha384.inf
254 NULL|SecurityPkg/Library/HashInstanceLibSha512/HashInstanceLibSha512.inf
255 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
256 }
257 SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigDxe.inf {
258 <LibraryClasses>
259 Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibTcg2/Tpm2DeviceLibTcg2.inf
260 }
261
262 #
263 # Hash2
264 #
265 SecurityPkg/Hash2DxeCrypto/Hash2DxeCrypto.inf
266
267 #
268 # PKCS7 Verification
269 #
270 SecurityPkg/Pkcs7Verify/Pkcs7VerifyDxe/Pkcs7VerifyDxe.inf
271
272 [Components.IA32, Components.X64]
273
274 SecurityPkg/Tcg/MemoryOverwriteRequestControlLock/TcgMorLockSmm.inf
275 SecurityPkg/Tcg/TcgSmm/TcgSmm.inf
276 SecurityPkg/Tcg/Tcg2Smm/Tcg2Smm.inf
277 SecurityPkg/Library/SmmTcg2PhysicalPresenceLib/SmmTcg2PhysicalPresenceLib.inf
278
279 #
280 # Random Number Generator
281 #
282 SecurityPkg/RandomNumberGenerator/RngDxe/RngDxe.inf
283
284 #
285 # Opal Password solution
286 #
287 SecurityPkg/Tcg/Opal/OpalPassword/OpalPasswordDxe.inf
288 SecurityPkg/Tcg/Opal/OpalPassword/OpalPasswordPei.inf
289
290 #
291 # HDD Password solution
292 #
293 SecurityPkg/HddPassword/HddPasswordDxe.inf
294 SecurityPkg/HddPassword/HddPasswordPei.inf
295
296 [BuildOptions]
297 MSFT:*_*_IA32_DLINK_FLAGS = /ALIGN:256
298 INTEL:*_*_IA32_DLINK_FLAGS = /ALIGN:256
299 *_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES
300