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