]> git.proxmox.com Git - mirror_edk2.git/blob - SecurityPkg/SecurityPkg.dsc
a8b0a29f0849e57004971e97513591ceecf57707
[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 HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
46 UefiHiiServicesLib|MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf
47 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
48 IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
49 OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf
50 IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf
51 TpmCommLib|SecurityPkg/Library/TpmCommLib/TpmCommLib.inf
52 PlatformSecureLib|SecurityPkg/Library/PlatformSecureLibNull/PlatformSecureLibNull.inf
53 TcgPhysicalPresenceLib|SecurityPkg/Library/DxeTcgPhysicalPresenceLib/DxeTcgPhysicalPresenceLib.inf
54 TpmMeasurementLib|SecurityPkg/Library/DxeTpmMeasurementLib/DxeTpmMeasurementLib.inf
55 Tpm12CommandLib|SecurityPkg/Library/Tpm12CommandLib/Tpm12CommandLib.inf
56 Tpm2CommandLib|SecurityPkg/Library/Tpm2CommandLib/Tpm2CommandLib.inf
57 TrEEPhysicalPresenceLib|SecurityPkg/Library/DxeTrEEPhysicalPresenceLib/DxeTrEEPhysicalPresenceLib.inf
58 TcgPpVendorLib|SecurityPkg/Library/TcgPpVendorLibNull/TcgPpVendorLibNull.inf
59 TrEEPpVendorLib|SecurityPkg/Library/TrEEPpVendorLibNull/TrEEPpVendorLibNull.inf
60
61 [LibraryClasses.common.PEIM]
62 PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf
63 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
64 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointerLib.inf
65 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
66 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
67 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/PeiCryptLib.inf
68 HashLib|SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterPei.inf
69 Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibDTpm/Tpm12DeviceLibDTpm.inf
70 Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2DeviceLibDTpm.inf
71
72 [LibraryClasses.common.DXE_DRIVER]
73 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
74 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
75 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
76 HashLib|SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterDxe.inf
77 Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibTcg/Tpm12DeviceLibTcg.inf
78 Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibTrEE/Tpm2DeviceLibTrEE.inf
79
80 [LibraryClasses.common.UEFI_DRIVER, LibraryClasses.common.DXE_RUNTIME_DRIVER, LibraryClasses.common.DXE_SAL_DRIVER,]
81 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
82 DebugLib|MdePkg/Library/UefiDebugLibConOut/UefiDebugLibConOut.inf
83 HashLib|SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterDxe.inf
84 Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibTcg/Tpm12DeviceLibTcg.inf
85 Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibTrEE/Tpm2DeviceLibTrEE.inf
86
87 [LibraryClasses.common.DXE_RUNTIME_DRIVER]
88 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
89 HashLib|SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterDxe.inf
90 Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibTcg/Tpm12DeviceLibTcg.inf
91 Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibTrEE/Tpm2DeviceLibTrEE.inf
92
93 [LibraryClasses.common.UEFI_DRIVER, LibraryClasses.common.UEFI_APPLICATION]
94 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
95 HashLib|SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterDxe.inf
96 Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibTcg/Tpm12DeviceLibTcg.inf
97 Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibTrEE/Tpm2DeviceLibTrEE.inf
98
99 [LibraryClasses.IPF.DXE_SAL_DRIVER]
100 ExtendedSalLib|MdePkg/Library/DxeRuntimeExtendedSalLib/DxeRuntimeExtendedSalLib.inf
101 BaseCryptLib|CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/BaseCryptLibRuntimeCryptProtocol.inf
102 HashLib|SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterDxe.inf
103 Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibTcg/Tpm12DeviceLibTcg.inf
104 Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibTrEE/Tpm2DeviceLibTrEE.inf
105
106 [LibraryClasses.common.DXE_SMM_DRIVER]
107 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
108 SmmServicesTableLib|MdePkg/Library/SmmServicesTableLib/SmmServicesTableLib.inf
109 MemoryAllocationLib|MdePkg/Library/SmmMemoryAllocationLib/SmmMemoryAllocationLib.inf
110 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf
111 Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibTcg/Tpm12DeviceLibTcg.inf
112 Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibTrEE/Tpm2DeviceLibTrEE.inf
113
114 [PcdsDynamicDefault.common.DEFAULT]
115 gEfiSecurityPkgTokenSpaceGuid.PcdTpmInstanceGuid|{0xb6, 0xe5, 0x01, 0x8b, 0x19, 0x4f, 0xe8, 0x46, 0xab, 0x93, 0x1c, 0x53, 0x67, 0x1b, 0x90, 0xcc}
116 gEfiSecurityPkgTokenSpaceGuid.PcdTpm2InitializationPolicy|1
117 gEfiSecurityPkgTokenSpaceGuid.PcdTpm2SelfTestPolicy|1
118 gEfiSecurityPkgTokenSpaceGuid.PcdTpm2ScrtmPolicy|1
119 gEfiSecurityPkgTokenSpaceGuid.PcdTpmInitializationPolicy|1
120 gEfiSecurityPkgTokenSpaceGuid.PcdTpmScrtmPolicy|1
121
122 [Components]
123 SecurityPkg/VariableAuthenticated/Pei/VariablePei.inf
124 SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.inf
125 #SecurityPkg/Library/DxeDeferImageLoadLib/DxeDeferImageLoadLib.inf
126 SecurityPkg/Library/DxeImageAuthenticationStatusLib/DxeImageAuthenticationStatusLib.inf
127 #SecurityPkg/UserIdentification/UserIdentifyManagerDxe/UserIdentifyManagerDxe.inf
128 #SecurityPkg/UserIdentification/UserProfileManagerDxe/UserProfileManagerDxe.inf
129
130 #
131 # Application
132 #
133 SecurityPkg/Application/VariableInfo/VariableInfo.inf
134 SecurityPkg/Application/RngTest/RngTest.inf
135
136 #
137 # TPM
138 #
139 SecurityPkg/Library/DxeTpmMeasureBootLib/DxeTpmMeasureBootLib.inf
140 SecurityPkg/Library/TpmCommLib/TpmCommLib.inf
141 SecurityPkg/Library/DxeTcgPhysicalPresenceLib/DxeTcgPhysicalPresenceLib.inf
142 SecurityPkg/Library/Tpm12CommandLib/Tpm12CommandLib.inf
143 SecurityPkg/Library/Tpm12DeviceLibDTpm/Tpm12DeviceLibDTpm.inf
144 SecurityPkg/Library/Tpm12DeviceLibTcg/Tpm12DeviceLibTcg.inf
145
146 SecurityPkg/Tcg/PhysicalPresencePei/PhysicalPresencePei.inf
147 SecurityPkg/Tcg/MemoryOverwriteControl/TcgMor.inf
148
149 #
150 # TPM2
151 #
152 SecurityPkg/Library/DxeTpm2MeasureBootLib/DxeTpm2MeasureBootLib.inf
153 SecurityPkg/Library/DxeTrEEPhysicalPresenceLib/DxeTrEEPhysicalPresenceLib.inf
154
155 SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterDxe.inf
156 SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterPei.inf
157
158 SecurityPkg/Library/Tpm2CommandLib/Tpm2CommandLib.inf
159 SecurityPkg/Library/Tpm2DeviceLibTrEE/Tpm2DeviceLibTrEE.inf
160 SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2DeviceLibDTpm.inf
161 SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2InstanceLibDTpm.inf
162 SecurityPkg/Library/Tpm2DeviceLibRouter/Tpm2DeviceLibRouterDxe.inf
163 SecurityPkg/Library/Tpm2DeviceLibRouter/Tpm2DeviceLibRouterPei.inf
164
165 SecurityPkg/Library/HashLibTpm2/HashLibTpm2.inf
166
167 SecurityPkg/Library/DxeRsa2048Sha256GuidedSectionExtractLib/DxeRsa2048Sha256GuidedSectionExtractLib.inf
168 SecurityPkg/Library/PeiRsa2048Sha256GuidedSectionExtractLib/PeiRsa2048Sha256GuidedSectionExtractLib.inf
169
170 [Components.IA32, Components.X64, Components.IPF]
171 # SecurityPkg/UserIdentification/PwdCredentialProviderDxe/PwdCredentialProviderDxe.inf
172 # SecurityPkg/UserIdentification/UsbCredentialProviderDxe/UsbCredentialProviderDxe.inf
173 SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf
174 SecurityPkg/VariableAuthenticated/RuntimeDxe/VariableRuntimeDxe.inf
175
176 #
177 # TPM
178 #
179 SecurityPkg/Tcg/TcgPei/TcgPei.inf
180 SecurityPkg/Tcg/TcgDxe/TcgDxe.inf
181 SecurityPkg/Tcg/TcgConfigDxe/TcgConfigDxe.inf {
182 <LibraryClasses>
183 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
184 }
185
186 #
187 # TPM2
188 #
189 SecurityPkg/Library/HashInstanceLibSha1/HashInstanceLibSha1.inf
190 SecurityPkg/Library/HashInstanceLibSha256/HashInstanceLibSha256.inf
191
192 SecurityPkg/Tcg/TrEEConfig/TrEEConfigPei.inf {
193 <LibraryClasses>
194 Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibDTpm/Tpm12DeviceLibDTpm.inf
195 Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2DeviceLibDTpm.inf
196 }
197 SecurityPkg/Tcg/TrEEPei/TrEEPei.inf {
198 <LibraryClasses>
199 Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibRouter/Tpm2DeviceLibRouterPei.inf
200 NULL|SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2InstanceLibDTpm.inf
201 NULL|SecurityPkg/Library/HashInstanceLibSha1/HashInstanceLibSha1.inf
202 NULL|SecurityPkg/Library/HashInstanceLibSha256/HashInstanceLibSha256.inf
203 }
204
205 SecurityPkg/Tcg/TrEEDxe/TrEEDxe.inf {
206 <LibraryClasses>
207 Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibRouter/Tpm2DeviceLibRouterDxe.inf
208 NULL|SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2InstanceLibDTpm.inf
209 NULL|SecurityPkg/Library/HashInstanceLibSha1/HashInstanceLibSha1.inf
210 NULL|SecurityPkg/Library/HashInstanceLibSha256/HashInstanceLibSha256.inf
211 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
212 }
213 SecurityPkg/Tcg/TrEEConfig/TrEEConfigDxe.inf {
214 <LibraryClasses>
215 Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibTrEE/Tpm2DeviceLibTrEE.inf
216 }
217
218 [Components.IA32, Components.X64]
219 SecurityPkg/VariableAuthenticated/RuntimeDxe/VariableSmm.inf
220 SecurityPkg/VariableAuthenticated/RuntimeDxe/VariableSmmRuntimeDxe.inf
221 SecurityPkg/Tcg/TcgSmm/TcgSmm.inf
222 SecurityPkg/Tcg/TrEESmm/TrEESmm.inf
223 #
224 # Random Number Generator
225 #
226 SecurityPkg/RandomNumberGenerator/RngDxe/RngDxe.inf
227
228 [Components.IPF]
229 SecurityPkg/VariableAuthenticated/EsalVariableDxeSal/EsalVariableDxeSal.inf
230
231 [BuildOptions]
232 MSFT:*_*_IA32_DLINK_FLAGS = /ALIGN:256
233 INTEL:*_*_IA32_DLINK_FLAGS = /ALIGN:256
234