SignedCapsulePkg.dsc 13 KB

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