]> git.proxmox.com Git - mirror_edk2.git/blame - SignedCapsulePkg/SignedCapsulePkg.dsc
SecurityPkg/SecurityPkg.dsc: Add missing RngLib for ARM and RISCV64
[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
96\r
3b6c73f1
LL
97[LibraryClasses.ARM]\r
98 ArmSoftFloatLib|ArmPkg/Library/ArmSoftFloatLib/ArmSoftFloatLib.inf\r
99\r
0f28c513 100[LibraryClasses.AARCH64, LibraryClasses.ARM]\r
3b6c73f1
LL
101 #\r
102 # It is not possible to prevent the ARM compiler for generic intrinsic functions.\r
103 # This library provides the instrinsic functions generate by a given compiler.\r
104 # And NULL mean link this library into all ARM images.\r
105 #\r
106 NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf\r
107\r
108 # Add support for GCC stack protector\r
109 NULL|MdePkg/Library/BaseStackCheckLib/BaseStackCheckLib.inf\r
110\r
b1067637
JY
111[LibraryClasses.common.PEI_CORE]\r
112 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf\r
113 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf\r
114\r
115[LibraryClasses.common.PEIM]\r
116 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf\r
117 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf\r
118 LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxPeiLib.inf\r
3137900f
MK
119!ifdef CONTINUOUS_INTEGRATION\r
120 BaseCryptLib|CryptoPkg/Library/BaseCryptLibNull/BaseCryptLibNull.inf\r
121!else\r
122 IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf\r
123 OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf\r
b1067637 124 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/PeiCryptLib.inf\r
3137900f 125!endif\r
b1067637
JY
126\r
127[LibraryClasses.common.DXE_CORE]\r
128 HobLib|MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf\r
129 MemoryAllocationLib|MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeCoreMemoryAllocationLib.inf\r
130\r
131[LibraryClasses.common.DXE_DRIVER]\r
132 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf\r
133 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf\r
3137900f
MK
134!ifdef CONTINUOUS_INTEGRATION\r
135 BaseCryptLib|CryptoPkg/Library/BaseCryptLibNull/BaseCryptLibNull.inf\r
136!else\r
137 IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf\r
138 OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf\r
b1067637 139 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf\r
3137900f 140!endif\r
b1067637
JY
141\r
142 CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibFmp/DxeCapsuleLib.inf\r
143\r
144[LibraryClasses.common.DXE_RUNTIME_DRIVER]\r
145 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf\r
146 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf\r
147 DebugLib|MdePkg/Library/UefiDebugLibConOut/UefiDebugLibConOut.inf\r
3137900f
MK
148!ifdef CONTINUOUS_INTEGRATION\r
149 BaseCryptLib|CryptoPkg/Library/BaseCryptLibNull/BaseCryptLibNull.inf\r
150!else\r
151 IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf\r
152 OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf\r
b1067637 153 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf\r
3137900f 154!endif\r
b1067637
JY
155\r
156 CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibFmp/DxeRuntimeCapsuleLib.inf\r
157\r
158[LibraryClasses.common.SMM_CORE]\r
159 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf\r
160 MemoryAllocationLib|MdeModulePkg/Library/PiSmmCoreMemoryAllocationLib/PiSmmCoreMemoryAllocationLib.inf\r
161 SmmServicesTableLib|MdeModulePkg/Library/PiSmmCoreSmmServicesTableLib/PiSmmCoreSmmServicesTableLib.inf\r
162 SmmCorePlatformHookLib|MdeModulePkg/Library/SmmCorePlatformHookLibNull/SmmCorePlatformHookLibNull.inf\r
163 SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf\r
164\r
165[LibraryClasses.common.DXE_SMM_DRIVER]\r
166 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf\r
c0b2816d 167 DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf\r
b1067637
JY
168 MemoryAllocationLib|MdePkg/Library/SmmMemoryAllocationLib/SmmMemoryAllocationLib.inf\r
169 SmmServicesTableLib|MdePkg/Library/SmmServicesTableLib/SmmServicesTableLib.inf\r
170 SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf\r
3137900f
MK
171!ifdef CONTINUOUS_INTEGRATION\r
172 BaseCryptLib|CryptoPkg/Library/BaseCryptLibNull/BaseCryptLibNull.inf\r
173!else\r
174 IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf\r
175 OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf\r
b1067637 176 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf\r
3137900f 177!endif\r
b1067637
JY
178\r
179[LibraryClasses.common.UEFI_DRIVER]\r
180 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf\r
181 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf\r
182 DebugLib|MdePkg/Library/UefiDebugLibConOut/UefiDebugLibConOut.inf\r
3137900f
MK
183!ifdef CONTINUOUS_INTEGRATION\r
184 BaseCryptLib|CryptoPkg/Library/BaseCryptLibNull/BaseCryptLibNull.inf\r
185!else\r
186 IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf\r
187 OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf\r
b1067637 188 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf\r
3137900f 189!endif\r
b1067637
JY
190\r
191[LibraryClasses.common.UEFI_APPLICATION]\r
192 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf\r
193 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf\r
194 DebugLib|MdePkg/Library/UefiDebugLibStdErr/UefiDebugLibStdErr.inf\r
3137900f
MK
195!ifdef CONTINUOUS_INTEGRATION\r
196 BaseCryptLib|CryptoPkg/Library/BaseCryptLibNull/BaseCryptLibNull.inf\r
197!else\r
198 IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf\r
199 OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf\r
b1067637 200 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf\r
3137900f 201!endif\r
b1067637
JY
202\r
203[PcdsFixedAtBuild]\r
204 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x0f\r
205 gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x06\r
206\r
207[PcdsDynamicExDefault]\r
208 gEfiSignedCapsulePkgTokenSpaceGuid.PcdEdkiiSystemFirmwareImageDescriptor|{0x0}|VOID*|0x100\r
209\r
210###################################################################################################\r
211#\r
212# Components Section - list of the modules and components that will be processed by compilation\r
213# tools and the EDK II tools to generate PE32/PE32+/Coff image files.\r
214#\r
215# Note: The EDK II DSC file is not used to specify how compiled binary images get placed\r
216# into firmware volume images. This section is just a list of modules to compile from\r
217# source into UEFI-compliant binaries.\r
218# It is the FDF file that contains information on combining binary files into firmware\r
219# volume images, whose concept is beyond UEFI and is described in PI specification.\r
220# Binary modules do not need to be listed in this section, as they should be\r
221# specified in the FDF file. For example: Shell binary (Shell_Full.efi), FAT binary (Fat.efi),\r
222# Logo (Logo.bmp), and etc.\r
223# There may also be modules listed in this section that are not required in the FDF file,\r
224# When a module listed here is excluded from FDF file, then UEFI-compliant binary will be\r
225# generated for it, but the binary will not be put into any firmware volume.\r
226#\r
227###################################################################################################\r
228\r
229[Components]\r
230 SignedCapsulePkg/Library/EdkiiSystemCapsuleLib/EdkiiSystemCapsuleLib.inf\r
231 SignedCapsulePkg/Library/IniParsingLib/IniParsingLib.inf\r
232 SignedCapsulePkg/Library/PlatformFlashAccessLibNull/PlatformFlashAccessLibNull.inf\r
233\r
234 SignedCapsulePkg/Universal/SystemFirmwareUpdate/SystemFirmwareReportDxe.inf {\r
235 <LibraryClasses>\r
236 FmpAuthenticationLib|SecurityPkg/Library/FmpAuthenticationLibPkcs7/FmpAuthenticationLibPkcs7.inf\r
237 }\r
238 SignedCapsulePkg/Universal/SystemFirmwareUpdate/SystemFirmwareUpdateDxe.inf {\r
239 <LibraryClasses>\r
240 FmpAuthenticationLib|SecurityPkg/Library/FmpAuthenticationLibPkcs7/FmpAuthenticationLibPkcs7.inf\r
241 }\r
242 SignedCapsulePkg/Universal/RecoveryModuleLoadPei/RecoveryModuleLoadPei.inf {\r
243 <LibraryClasses>\r
244 FmpAuthenticationLib|SecurityPkg/Library/FmpAuthenticationLibRsa2048Sha256/FmpAuthenticationLibRsa2048Sha256.inf\r
245 }\r
246\r
247[BuildOptions]\r
248 *_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES\r