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