]> git.proxmox.com Git - mirror_edk2.git/blob - SecurityPkg/SecurityPkg.dsc
Check in missing patch for TPM error handling.
[mirror_edk2.git] / SecurityPkg / SecurityPkg.dsc
1 ## @file
2 # Security Module Package for All Architectures.
3 #
4 # Copyright (c) 2009 - 2015, Intel Corporation. All rights reserved.<BR>
5 # This program and the accompanying materials
6 # are licensed and made available under the terms and conditions of the BSD License
7 # which accompanies this distribution. The full text of the license may be found at
8 # http://opensource.org/licenses/bsd-license.php
9 #
10 # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
12 #
13 ##
14
15 [Defines]
16 PLATFORM_NAME = SecurityPkg
17 PLATFORM_GUID = B2C4614D-AE76-47ba-B876-5988BFED064F
18 PLATFORM_VERSION = 0.94
19 DSC_SPECIFICATION = 0x00010005
20 OUTPUT_DIRECTORY = Build/SecurityPkg
21 SUPPORTED_ARCHITECTURES = IA32|IPF|X64|EBC
22 BUILD_TARGETS = DEBUG|RELEASE
23 SKUID_IDENTIFIER = DEFAULT
24
25 [LibraryClasses]
26 DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
27 DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
28 BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
29 SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
30 TimerLib|MdePkg/Library/BaseTimerLibNullTemplate/BaseTimerLibNullTemplate.inf
31 BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
32 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
33 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
34 UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
35 PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf
36
37 DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
38 UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
39 UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
40 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
41 UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
42 DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf
43 UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
44 UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
45 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
46 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
47 HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
48 UefiHiiServicesLib|MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf
49 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
50 IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
51 OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf
52 IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf
53 TpmCommLib|SecurityPkg/Library/TpmCommLib/TpmCommLib.inf
54 PlatformSecureLib|SecurityPkg/Library/PlatformSecureLibNull/PlatformSecureLibNull.inf
55 TcgPhysicalPresenceLib|SecurityPkg/Library/DxeTcgPhysicalPresenceLib/DxeTcgPhysicalPresenceLib.inf
56 TpmMeasurementLib|SecurityPkg/Library/DxeTpmMeasurementLib/DxeTpmMeasurementLib.inf
57 Tpm12CommandLib|SecurityPkg/Library/Tpm12CommandLib/Tpm12CommandLib.inf
58 Tpm2CommandLib|SecurityPkg/Library/Tpm2CommandLib/Tpm2CommandLib.inf
59 TrEEPhysicalPresenceLib|SecurityPkg/Library/DxeTrEEPhysicalPresenceLib/DxeTrEEPhysicalPresenceLib.inf
60 TcgPpVendorLib|SecurityPkg/Library/TcgPpVendorLibNull/TcgPpVendorLibNull.inf
61 TrEEPpVendorLib|SecurityPkg/Library/TrEEPpVendorLibNull/TrEEPpVendorLibNull.inf
62
63 [LibraryClasses.common.PEIM]
64 PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf
65 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
66 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointerLib.inf
67 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
68 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
69 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/PeiCryptLib.inf
70 HashLib|SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterPei.inf
71 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
72 Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibDTpm/Tpm12DeviceLibDTpm.inf
73 Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2DeviceLibDTpm.inf
74
75 [LibraryClasses.common.DXE_DRIVER]
76 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
77 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
78 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
79 HashLib|SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterDxe.inf
80 Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibTcg/Tpm12DeviceLibTcg.inf
81 Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibTrEE/Tpm2DeviceLibTrEE.inf
82
83 [LibraryClasses.common.UEFI_DRIVER, LibraryClasses.common.DXE_RUNTIME_DRIVER, LibraryClasses.common.DXE_SAL_DRIVER,]
84 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
85 DebugLib|MdePkg/Library/UefiDebugLibConOut/UefiDebugLibConOut.inf
86 HashLib|SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterDxe.inf
87 Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibTcg/Tpm12DeviceLibTcg.inf
88 Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibTrEE/Tpm2DeviceLibTrEE.inf
89
90 [LibraryClasses.common.DXE_RUNTIME_DRIVER]
91 ReportStatusCodeLib|MdeModulePkg\Library\RuntimeDxeReportStatusCodeLib\RuntimeDxeReportStatusCodeLib.inf
92 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
93 HashLib|SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterDxe.inf
94 Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibTcg/Tpm12DeviceLibTcg.inf
95 Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibTrEE/Tpm2DeviceLibTrEE.inf
96
97 [LibraryClasses.common.UEFI_DRIVER, LibraryClasses.common.UEFI_APPLICATION]
98 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
99 HashLib|SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterDxe.inf
100 Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibTcg/Tpm12DeviceLibTcg.inf
101 Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibTrEE/Tpm2DeviceLibTrEE.inf
102
103 [LibraryClasses.IPF.DXE_SAL_DRIVER]
104 ExtendedSalLib|MdePkg/Library/DxeRuntimeExtendedSalLib/DxeRuntimeExtendedSalLib.inf
105 BaseCryptLib|CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/BaseCryptLibRuntimeCryptProtocol.inf
106 HashLib|SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterDxe.inf
107 Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibTcg/Tpm12DeviceLibTcg.inf
108 Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibTrEE/Tpm2DeviceLibTrEE.inf
109
110 [LibraryClasses.common.DXE_SMM_DRIVER]
111 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
112 SmmServicesTableLib|MdePkg/Library/SmmServicesTableLib/SmmServicesTableLib.inf
113 MemoryAllocationLib|MdePkg/Library/SmmMemoryAllocationLib/SmmMemoryAllocationLib.inf
114 ReportStatusCodeLib|MdeModulePkg\Library\SmmReportStatusCodeLib\SmmReportStatusCodeLib.inf
115 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf
116 Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibTcg/Tpm12DeviceLibTcg.inf
117 Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibTrEE/Tpm2DeviceLibTrEE.inf
118
119 [PcdsDynamicDefault.common.DEFAULT]
120 gEfiSecurityPkgTokenSpaceGuid.PcdTpmInstanceGuid|{0xb6, 0xe5, 0x01, 0x8b, 0x19, 0x4f, 0xe8, 0x46, 0xab, 0x93, 0x1c, 0x53, 0x67, 0x1b, 0x90, 0xcc}
121 gEfiSecurityPkgTokenSpaceGuid.PcdTpm2InitializationPolicy|1
122 gEfiSecurityPkgTokenSpaceGuid.PcdTpm2SelfTestPolicy|1
123 gEfiSecurityPkgTokenSpaceGuid.PcdTpm2ScrtmPolicy|1
124 gEfiSecurityPkgTokenSpaceGuid.PcdTpmInitializationPolicy|1
125 gEfiSecurityPkgTokenSpaceGuid.PcdTpmScrtmPolicy|1
126
127 [Components]
128 SecurityPkg/VariableAuthenticated/Pei/VariablePei.inf
129 SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.inf
130 #SecurityPkg/Library/DxeDeferImageLoadLib/DxeDeferImageLoadLib.inf
131 SecurityPkg/Library/DxeImageAuthenticationStatusLib/DxeImageAuthenticationStatusLib.inf
132 #SecurityPkg/UserIdentification/UserIdentifyManagerDxe/UserIdentifyManagerDxe.inf
133 #SecurityPkg/UserIdentification/UserProfileManagerDxe/UserProfileManagerDxe.inf
134
135 #
136 # Application
137 #
138 SecurityPkg/Application/VariableInfo/VariableInfo.inf
139 SecurityPkg/Application/RngTest/RngTest.inf
140
141 #
142 # TPM
143 #
144 SecurityPkg/Library/DxeTpmMeasureBootLib/DxeTpmMeasureBootLib.inf
145 SecurityPkg/Library/TpmCommLib/TpmCommLib.inf
146 SecurityPkg/Library/DxeTcgPhysicalPresenceLib/DxeTcgPhysicalPresenceLib.inf
147 SecurityPkg/Library/Tpm12CommandLib/Tpm12CommandLib.inf
148 SecurityPkg/Library/Tpm12DeviceLibDTpm/Tpm12DeviceLibDTpm.inf
149 SecurityPkg/Library/Tpm12DeviceLibTcg/Tpm12DeviceLibTcg.inf
150
151 SecurityPkg/Tcg/PhysicalPresencePei/PhysicalPresencePei.inf
152 SecurityPkg/Tcg/MemoryOverwriteControl/TcgMor.inf
153
154 #
155 # TPM2
156 #
157 SecurityPkg/Library/DxeTpm2MeasureBootLib/DxeTpm2MeasureBootLib.inf
158 SecurityPkg/Library/DxeTrEEPhysicalPresenceLib/DxeTrEEPhysicalPresenceLib.inf
159
160 SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterDxe.inf
161 SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterPei.inf
162
163 SecurityPkg/Library/Tpm2CommandLib/Tpm2CommandLib.inf
164 SecurityPkg/Library/Tpm2DeviceLibTrEE/Tpm2DeviceLibTrEE.inf
165 SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2DeviceLibDTpm.inf
166 SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2InstanceLibDTpm.inf
167 SecurityPkg/Library/Tpm2DeviceLibRouter/Tpm2DeviceLibRouterDxe.inf
168 SecurityPkg/Library/Tpm2DeviceLibRouter/Tpm2DeviceLibRouterPei.inf
169
170 SecurityPkg/Library/HashLibTpm2/HashLibTpm2.inf
171
172 SecurityPkg/Library/DxeRsa2048Sha256GuidedSectionExtractLib/DxeRsa2048Sha256GuidedSectionExtractLib.inf
173 SecurityPkg/Library/PeiRsa2048Sha256GuidedSectionExtractLib/PeiRsa2048Sha256GuidedSectionExtractLib.inf
174
175 [Components.IA32, Components.X64, Components.IPF]
176 # SecurityPkg/UserIdentification/PwdCredentialProviderDxe/PwdCredentialProviderDxe.inf
177 # SecurityPkg/UserIdentification/UsbCredentialProviderDxe/UsbCredentialProviderDxe.inf
178 SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf
179 SecurityPkg/VariableAuthenticated/RuntimeDxe/VariableRuntimeDxe.inf
180
181 #
182 # TPM
183 #
184 SecurityPkg/Tcg/TcgPei/TcgPei.inf
185 SecurityPkg/Tcg/TcgDxe/TcgDxe.inf
186 SecurityPkg/Tcg/TcgConfigDxe/TcgConfigDxe.inf {
187 <LibraryClasses>
188 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
189 }
190
191 #
192 # TPM2
193 #
194 SecurityPkg/Library/HashInstanceLibSha1/HashInstanceLibSha1.inf
195 SecurityPkg/Library/HashInstanceLibSha256/HashInstanceLibSha256.inf
196
197 SecurityPkg/Tcg/TrEEConfig/TrEEConfigPei.inf {
198 <LibraryClasses>
199 Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibDTpm/Tpm12DeviceLibDTpm.inf
200 Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2DeviceLibDTpm.inf
201 }
202 SecurityPkg/Tcg/TrEEPei/TrEEPei.inf {
203 <LibraryClasses>
204 Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibRouter/Tpm2DeviceLibRouterPei.inf
205 NULL|SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2InstanceLibDTpm.inf
206 NULL|SecurityPkg/Library/HashInstanceLibSha1/HashInstanceLibSha1.inf
207 NULL|SecurityPkg/Library/HashInstanceLibSha256/HashInstanceLibSha256.inf
208 }
209
210 SecurityPkg/Tcg/TrEEDxe/TrEEDxe.inf {
211 <LibraryClasses>
212 Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibRouter/Tpm2DeviceLibRouterDxe.inf
213 NULL|SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2InstanceLibDTpm.inf
214 NULL|SecurityPkg/Library/HashInstanceLibSha1/HashInstanceLibSha1.inf
215 NULL|SecurityPkg/Library/HashInstanceLibSha256/HashInstanceLibSha256.inf
216 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
217 }
218 SecurityPkg/Tcg/TrEEConfig/TrEEConfigDxe.inf {
219 <LibraryClasses>
220 Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibTrEE/Tpm2DeviceLibTrEE.inf
221 }
222
223 [Components.IA32, Components.X64]
224 SecurityPkg/VariableAuthenticated/RuntimeDxe/VariableSmm.inf
225 SecurityPkg/VariableAuthenticated/RuntimeDxe/VariableSmmRuntimeDxe.inf
226 SecurityPkg/Tcg/TcgSmm/TcgSmm.inf
227 SecurityPkg/Tcg/TrEESmm/TrEESmm.inf
228 #
229 # Random Number Generator
230 #
231 SecurityPkg/RandomNumberGenerator/RngDxe/RngDxe.inf
232
233 [Components.IPF]
234 SecurityPkg/VariableAuthenticated/EsalVariableDxeSal/EsalVariableDxeSal.inf
235
236 [BuildOptions]
237 MSFT:*_*_IA32_DLINK_FLAGS = /ALIGN:256
238 INTEL:*_*_IA32_DLINK_FLAGS = /ALIGN:256
239