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