SignedCapsulePkg.dsc 12 KB

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