8bd4e7ae56cdc8411b29e5ffe6c3882060ad7639
[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 SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf
116 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf
117 Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibTcg/Tpm12DeviceLibTcg.inf
118 Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibTrEE/Tpm2DeviceLibTrEE.inf
119
120 [PcdsDynamicDefault.common.DEFAULT]
121 gEfiSecurityPkgTokenSpaceGuid.PcdTpmInstanceGuid|{0xb6, 0xe5, 0x01, 0x8b, 0x19, 0x4f, 0xe8, 0x46, 0xab, 0x93, 0x1c, 0x53, 0x67, 0x1b, 0x90, 0xcc}
122 gEfiSecurityPkgTokenSpaceGuid.PcdTpm2InitializationPolicy|1
123 gEfiSecurityPkgTokenSpaceGuid.PcdTpm2SelfTestPolicy|1
124 gEfiSecurityPkgTokenSpaceGuid.PcdTpm2ScrtmPolicy|1
125 gEfiSecurityPkgTokenSpaceGuid.PcdTpmInitializationPolicy|1
126 gEfiSecurityPkgTokenSpaceGuid.PcdTpmScrtmPolicy|1
127
128 [Components]
129 SecurityPkg/VariableAuthenticated/Pei/VariablePei.inf
130 SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.inf
131 #SecurityPkg/Library/DxeDeferImageLoadLib/DxeDeferImageLoadLib.inf
132 SecurityPkg/Library/DxeImageAuthenticationStatusLib/DxeImageAuthenticationStatusLib.inf
133 #SecurityPkg/UserIdentification/UserIdentifyManagerDxe/UserIdentifyManagerDxe.inf
134 #SecurityPkg/UserIdentification/UserProfileManagerDxe/UserProfileManagerDxe.inf
135
136 #
137 # Application
138 #
139 SecurityPkg/Application/VariableInfo/VariableInfo.inf
140 SecurityPkg/Application/RngTest/RngTest.inf
141
142 #
143 # TPM
144 #
145 SecurityPkg/Library/DxeTpmMeasureBootLib/DxeTpmMeasureBootLib.inf
146 SecurityPkg/Library/TpmCommLib/TpmCommLib.inf
147 SecurityPkg/Library/DxeTcgPhysicalPresenceLib/DxeTcgPhysicalPresenceLib.inf
148 SecurityPkg/Library/Tpm12CommandLib/Tpm12CommandLib.inf
149 SecurityPkg/Library/Tpm12DeviceLibDTpm/Tpm12DeviceLibDTpm.inf
150 SecurityPkg/Library/Tpm12DeviceLibTcg/Tpm12DeviceLibTcg.inf
151
152 SecurityPkg/Tcg/PhysicalPresencePei/PhysicalPresencePei.inf
153 SecurityPkg/Tcg/MemoryOverwriteControl/TcgMor.inf
154
155 #
156 # TPM2
157 #
158 SecurityPkg/Library/DxeTpm2MeasureBootLib/DxeTpm2MeasureBootLib.inf
159 SecurityPkg/Library/DxeTrEEPhysicalPresenceLib/DxeTrEEPhysicalPresenceLib.inf
160
161 SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterDxe.inf
162 SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterPei.inf
163
164 SecurityPkg/Library/Tpm2CommandLib/Tpm2CommandLib.inf
165 SecurityPkg/Library/Tpm2DeviceLibTrEE/Tpm2DeviceLibTrEE.inf
166 SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2DeviceLibDTpm.inf
167 SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2InstanceLibDTpm.inf
168 SecurityPkg/Library/Tpm2DeviceLibRouter/Tpm2DeviceLibRouterDxe.inf
169 SecurityPkg/Library/Tpm2DeviceLibRouter/Tpm2DeviceLibRouterPei.inf
170
171 SecurityPkg/Library/HashLibTpm2/HashLibTpm2.inf
172
173 #
174 # Hash2
175 #
176 SecurityPkg/Hash2DxeCrypto/Hash2DxeCrypto.inf
177
178 #
179 # Other
180 #
181 SecurityPkg/Library/DxeRsa2048Sha256GuidedSectionExtractLib/DxeRsa2048Sha256GuidedSectionExtractLib.inf
182 SecurityPkg/Library/PeiRsa2048Sha256GuidedSectionExtractLib/PeiRsa2048Sha256GuidedSectionExtractLib.inf
183
184 [Components.IA32, Components.X64, Components.IPF]
185 # SecurityPkg/UserIdentification/PwdCredentialProviderDxe/PwdCredentialProviderDxe.inf
186 # SecurityPkg/UserIdentification/UsbCredentialProviderDxe/UsbCredentialProviderDxe.inf
187 SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf
188 SecurityPkg/VariableAuthenticated/RuntimeDxe/VariableRuntimeDxe.inf
189
190 #
191 # TPM
192 #
193 SecurityPkg/Tcg/TcgPei/TcgPei.inf
194 SecurityPkg/Tcg/TcgDxe/TcgDxe.inf
195 SecurityPkg/Tcg/TcgConfigDxe/TcgConfigDxe.inf {
196 <LibraryClasses>
197 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
198 }
199
200 #
201 # TPM2
202 #
203 SecurityPkg/Library/HashInstanceLibSha1/HashInstanceLibSha1.inf
204 SecurityPkg/Library/HashInstanceLibSha256/HashInstanceLibSha256.inf
205
206 SecurityPkg/Tcg/TrEEConfig/TrEEConfigPei.inf {
207 <LibraryClasses>
208 Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibDTpm/Tpm12DeviceLibDTpm.inf
209 Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2DeviceLibDTpm.inf
210 }
211 SecurityPkg/Tcg/TrEEPei/TrEEPei.inf {
212 <LibraryClasses>
213 Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibRouter/Tpm2DeviceLibRouterPei.inf
214 NULL|SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2InstanceLibDTpm.inf
215 NULL|SecurityPkg/Library/HashInstanceLibSha1/HashInstanceLibSha1.inf
216 NULL|SecurityPkg/Library/HashInstanceLibSha256/HashInstanceLibSha256.inf
217 }
218
219 SecurityPkg/Tcg/TrEEDxe/TrEEDxe.inf {
220 <LibraryClasses>
221 Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibRouter/Tpm2DeviceLibRouterDxe.inf
222 NULL|SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2InstanceLibDTpm.inf
223 NULL|SecurityPkg/Library/HashInstanceLibSha1/HashInstanceLibSha1.inf
224 NULL|SecurityPkg/Library/HashInstanceLibSha256/HashInstanceLibSha256.inf
225 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
226 }
227 SecurityPkg/Tcg/TrEEConfig/TrEEConfigDxe.inf {
228 <LibraryClasses>
229 Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibTrEE/Tpm2DeviceLibTrEE.inf
230 }
231
232 [Components.IA32, Components.X64]
233 SecurityPkg/VariableAuthenticated/RuntimeDxe/VariableSmm.inf
234 SecurityPkg/VariableAuthenticated/RuntimeDxe/VariableSmmRuntimeDxe.inf
235 SecurityPkg/Tcg/TcgSmm/TcgSmm.inf
236 SecurityPkg/Tcg/TrEESmm/TrEESmm.inf
237 #
238 # Random Number Generator
239 #
240 SecurityPkg/RandomNumberGenerator/RngDxe/RngDxe.inf
241
242 [Components.IPF]
243 SecurityPkg/VariableAuthenticated/EsalVariableDxeSal/EsalVariableDxeSal.inf
244
245 [BuildOptions]
246 MSFT:*_*_IA32_DLINK_FLAGS = /ALIGN:256
247 INTEL:*_*_IA32_DLINK_FLAGS = /ALIGN:256
248