]> git.proxmox.com Git - mirror_edk2.git/blob - SignedCapsulePkg/SignedCapsulePkg.dsc
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[mirror_edk2.git] / SignedCapsulePkg / SignedCapsulePkg.dsc
1 ## @file
2 # This package provides EDKII capsule related support.
3 #
4 # Copyright (c) 2016 - 2021, Intel Corporation. All rights reserved.<BR>
5 #
6 # SPDX-License-Identifier: BSD-2-Clause-Patent
7 #
8 ##
9
10 [Defines]
11 PLATFORM_NAME = SignedCapsulePkg
12 PLATFORM_GUID = 164E16D7-B56A-416D-92FF-0A63983733F6
13 PLATFORM_VERSION = 0.96
14 DSC_SPECIFICATION = 0x00010005
15 OUTPUT_DIRECTORY = Build/SignedCapsulePkg
16 SUPPORTED_ARCHITECTURES = AARCH64|ARM|IA32|X64
17 BUILD_TARGETS = DEBUG|RELEASE|NOOPT
18 SKUID_IDENTIFIER = DEFAULT
19
20 !include MdePkg/MdeLibs.dsc.inc
21
22 [LibraryClasses]
23 #
24 # Entry point
25 #
26 PeiCoreEntryPoint|MdePkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoint.inf
27 PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf
28 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
29 UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
30 UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
31 #
32 # Basic
33 #
34 BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
35 BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
36 SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
37 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
38 IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf
39 PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf
40 PciCf8Lib|MdePkg/Library/BasePciCf8Lib/BasePciCf8Lib.inf
41 PciSegmentLib|MdePkg/Library/BasePciSegmentLibPci/BasePciSegmentLibPci.inf
42 CacheMaintenanceLib|MdePkg/Library/BaseCacheMaintenanceLib/BaseCacheMaintenanceLib.inf
43 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
44 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
45 SortLib|MdeModulePkg/Library/BaseSortLib/BaseSortLib.inf
46 #
47 # UEFI & PI
48 #
49 UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
50 UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
51 UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
52 UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
53 UefiHiiServicesLib|MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf
54 HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
55 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
56 UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf
57 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointerLib.inf
58 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
59 DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
60 DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf
61 #
62 # Generic Modules
63 #
64 UefiUsbLib|MdePkg/Library/UefiUsbLib/UefiUsbLib.inf
65 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
66 SecurityManagementLib|MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib.inf
67 TimerLib|MdePkg/Library/BaseTimerLibNullTemplate/BaseTimerLibNullTemplate.inf
68 SerialPortLib|MdePkg/Library/BaseSerialPortLibNull/BaseSerialPortLibNull.inf
69 CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
70 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
71 CustomizedDisplayLib|MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.inf
72 #
73 # Misc
74 #
75 DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
76 DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
77 ReportStatusCodeLib|MdePkg/Library/BaseReportStatusCodeLibNull/BaseReportStatusCodeLibNull.inf
78 PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf
79 PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf
80 DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.inf
81 PlatformHookLib|MdeModulePkg/Library/BasePlatformHookLibNull/BasePlatformHookLibNull.inf
82 ResetSystemLib|MdeModulePkg/Library/BaseResetSystemLibNull/BaseResetSystemLibNull.inf
83 SmbusLib|MdePkg/Library/DxeSmbusLib/DxeSmbusLib.inf
84 S3BootScriptLib|MdeModulePkg/Library/PiDxeS3BootScriptLib/DxeS3BootScriptLib.inf
85 CpuExceptionHandlerLib|MdeModulePkg/Library/CpuExceptionHandlerLibNull/CpuExceptionHandlerLibNull.inf
86 PlatformBootManagerLib|MdeModulePkg/Library/PlatformBootManagerLibNull/PlatformBootManagerLibNull.inf
87 PciHostBridgeLib|MdeModulePkg/Library/PciHostBridgeLibNull/PciHostBridgeLibNull.inf
88 TpmMeasurementLib|MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNull.inf
89 AuthVariableLib|MdeModulePkg/Library/AuthVariableLibNull/AuthVariableLibNull.inf
90 VarCheckLib|MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf
91 FileExplorerLib|MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf
92
93 EdkiiSystemCapsuleLib|SignedCapsulePkg/Library/EdkiiSystemCapsuleLib/EdkiiSystemCapsuleLib.inf
94 IniParsingLib|SignedCapsulePkg/Library/IniParsingLib/IniParsingLib.inf
95 PlatformFlashAccessLib|SignedCapsulePkg/Library/PlatformFlashAccessLibNull/PlatformFlashAccessLibNull.inf
96 RngLib|MdePkg/Library/BaseRngLib/BaseRngLib.inf
97
98 [LibraryClasses.ARM]
99 ArmSoftFloatLib|ArmPkg/Library/ArmSoftFloatLib/ArmSoftFloatLib.inf
100
101 [LibraryClasses.AARCH64, LibraryClasses.ARM]
102 #
103 # It is not possible to prevent the ARM compiler for generic intrinsic functions.
104 # This library provides the instrinsic functions generate by a given compiler.
105 # And NULL mean link this library into all ARM images.
106 #
107 NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf
108
109 # Add support for GCC stack protector
110 NULL|MdePkg/Library/BaseStackCheckLib/BaseStackCheckLib.inf
111
112 [LibraryClasses.ARM]
113 RngLib|MdePkg/Library/BaseRngLibTimerLib/BaseRngLibTimerLib.inf
114
115 [LibraryClasses.RISCV64]
116 RngLib|MdePkg/Library/BaseRngLibTimerLib/BaseRngLibTimerLib.inf
117
118 [LibraryClasses.common.PEI_CORE]
119 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
120 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
121
122 [LibraryClasses.common.PEIM]
123 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
124 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
125 LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxPeiLib.inf
126 !ifdef CONTINUOUS_INTEGRATION
127 BaseCryptLib|CryptoPkg/Library/BaseCryptLibNull/BaseCryptLibNull.inf
128 !else
129 IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
130 OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf
131 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/PeiCryptLib.inf
132 !endif
133
134 [LibraryClasses.common.DXE_CORE]
135 HobLib|MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf
136 MemoryAllocationLib|MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeCoreMemoryAllocationLib.inf
137
138 [LibraryClasses.common.DXE_DRIVER]
139 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
140 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
141 !ifdef CONTINUOUS_INTEGRATION
142 BaseCryptLib|CryptoPkg/Library/BaseCryptLibNull/BaseCryptLibNull.inf
143 !else
144 IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
145 OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf
146 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
147 !endif
148
149 CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibFmp/DxeCapsuleLib.inf
150
151 [LibraryClasses.common.DXE_RUNTIME_DRIVER]
152 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
153 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
154 DebugLib|MdePkg/Library/UefiDebugLibConOut/UefiDebugLibConOut.inf
155 !ifdef CONTINUOUS_INTEGRATION
156 BaseCryptLib|CryptoPkg/Library/BaseCryptLibNull/BaseCryptLibNull.inf
157 !else
158 IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
159 OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf
160 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
161 !endif
162
163 CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibFmp/DxeRuntimeCapsuleLib.inf
164
165 [LibraryClasses.common.SMM_CORE]
166 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
167 MemoryAllocationLib|MdeModulePkg/Library/PiSmmCoreMemoryAllocationLib/PiSmmCoreMemoryAllocationLib.inf
168 SmmServicesTableLib|MdeModulePkg/Library/PiSmmCoreSmmServicesTableLib/PiSmmCoreSmmServicesTableLib.inf
169 SmmCorePlatformHookLib|MdeModulePkg/Library/SmmCorePlatformHookLibNull/SmmCorePlatformHookLibNull.inf
170 SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf
171
172 [LibraryClasses.common.DXE_SMM_DRIVER]
173 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
174 DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
175 MemoryAllocationLib|MdePkg/Library/SmmMemoryAllocationLib/SmmMemoryAllocationLib.inf
176 SmmServicesTableLib|MdePkg/Library/SmmServicesTableLib/SmmServicesTableLib.inf
177 SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf
178 !ifdef CONTINUOUS_INTEGRATION
179 BaseCryptLib|CryptoPkg/Library/BaseCryptLibNull/BaseCryptLibNull.inf
180 !else
181 IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
182 OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf
183 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf
184 !endif
185
186 [LibraryClasses.common.UEFI_DRIVER]
187 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
188 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
189 DebugLib|MdePkg/Library/UefiDebugLibConOut/UefiDebugLibConOut.inf
190 !ifdef CONTINUOUS_INTEGRATION
191 BaseCryptLib|CryptoPkg/Library/BaseCryptLibNull/BaseCryptLibNull.inf
192 !else
193 IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
194 OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf
195 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
196 !endif
197
198 [LibraryClasses.common.UEFI_APPLICATION]
199 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
200 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
201 DebugLib|MdePkg/Library/UefiDebugLibStdErr/UefiDebugLibStdErr.inf
202 !ifdef CONTINUOUS_INTEGRATION
203 BaseCryptLib|CryptoPkg/Library/BaseCryptLibNull/BaseCryptLibNull.inf
204 !else
205 IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
206 OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf
207 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
208 !endif
209
210 [PcdsFixedAtBuild]
211 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x0f
212 gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x06
213
214 [PcdsDynamicExDefault]
215 gEfiSignedCapsulePkgTokenSpaceGuid.PcdEdkiiSystemFirmwareImageDescriptor|{0x0}|VOID*|0x100
216
217 ###################################################################################################
218 #
219 # Components Section - list of the modules and components that will be processed by compilation
220 # tools and the EDK II tools to generate PE32/PE32+/Coff image files.
221 #
222 # Note: The EDK II DSC file is not used to specify how compiled binary images get placed
223 # into firmware volume images. This section is just a list of modules to compile from
224 # source into UEFI-compliant binaries.
225 # It is the FDF file that contains information on combining binary files into firmware
226 # volume images, whose concept is beyond UEFI and is described in PI specification.
227 # Binary modules do not need to be listed in this section, as they should be
228 # specified in the FDF file. For example: Shell binary (Shell_Full.efi), FAT binary (Fat.efi),
229 # Logo (Logo.bmp), and etc.
230 # There may also be modules listed in this section that are not required in the FDF file,
231 # When a module listed here is excluded from FDF file, then UEFI-compliant binary will be
232 # generated for it, but the binary will not be put into any firmware volume.
233 #
234 ###################################################################################################
235
236 [Components]
237 SignedCapsulePkg/Library/EdkiiSystemCapsuleLib/EdkiiSystemCapsuleLib.inf
238 SignedCapsulePkg/Library/IniParsingLib/IniParsingLib.inf
239 SignedCapsulePkg/Library/PlatformFlashAccessLibNull/PlatformFlashAccessLibNull.inf
240
241 SignedCapsulePkg/Universal/SystemFirmwareUpdate/SystemFirmwareReportDxe.inf {
242 <LibraryClasses>
243 FmpAuthenticationLib|SecurityPkg/Library/FmpAuthenticationLibPkcs7/FmpAuthenticationLibPkcs7.inf
244 }
245 SignedCapsulePkg/Universal/SystemFirmwareUpdate/SystemFirmwareUpdateDxe.inf {
246 <LibraryClasses>
247 FmpAuthenticationLib|SecurityPkg/Library/FmpAuthenticationLibPkcs7/FmpAuthenticationLibPkcs7.inf
248 }
249 SignedCapsulePkg/Universal/RecoveryModuleLoadPei/RecoveryModuleLoadPei.inf {
250 <LibraryClasses>
251 FmpAuthenticationLib|SecurityPkg/Library/FmpAuthenticationLibRsa2048Sha256/FmpAuthenticationLibRsa2048Sha256.inf
252 }
253
254 [BuildOptions]
255 *_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES