SgiPlatformMm.dsc.inc 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. ## @file
  2. # StandaloneMM platform description include file for all supported platforms.
  3. #
  4. # Copyright (c) 2021 - 2022, ARM Limited. All rights reserved.
  5. #
  6. # SPDX-License-Identifier: BSD-2-Clause-Patent
  7. ##
  8. ################################################################################
  9. #
  10. # Library Class section - list of all Library Classes needed by this Platform.
  11. #
  12. ################################################################################
  13. [LibraryClasses]
  14. #
  15. # Basic
  16. #
  17. BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
  18. BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
  19. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  20. DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
  21. ExtractGuidedSectionLib|EmbeddedPkg/Library/PrePiExtractGuidedSectionLib/PrePiExtractGuidedSectionLib.inf
  22. FvLib|StandaloneMmPkg/Library/FvLib/FvLib.inf
  23. HobLib|StandaloneMmPkg/Library/StandaloneMmCoreHobLib/StandaloneMmCoreHobLib.inf
  24. IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf
  25. MemLib|StandaloneMmPkg/Library/StandaloneMmMemLib/StandaloneMmMemLib.inf
  26. MemoryAllocationLib|StandaloneMmPkg/Library/StandaloneMmCoreMemoryAllocationLib/StandaloneMmCoreMemoryAllocationLib.inf
  27. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  28. PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
  29. PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
  30. ReportStatusCodeLib|MdePkg/Library/BaseReportStatusCodeLibNull/BaseReportStatusCodeLibNull.inf
  31. #
  32. # Entry point
  33. #
  34. StandaloneMmDriverEntryPoint|MdePkg/Library/StandaloneMmDriverEntryPoint/StandaloneMmDriverEntryPoint.inf
  35. ArmLib|ArmPkg/Library/ArmLib/ArmBaseLib.inf
  36. StandaloneMmMmuLib|ArmPkg/Library/StandaloneMmMmuLib/ArmMmuStandaloneMmLib.inf
  37. ArmSvcLib|ArmPkg/Library/ArmSvcLib/ArmSvcLib.inf
  38. CacheMaintenanceLib|ArmPkg/Library/ArmCacheMaintenanceLib/ArmCacheMaintenanceLib.inf
  39. PeCoffExtraActionLib|StandaloneMmPkg/Library/StandaloneMmPeCoffExtraActionLib/StandaloneMmPeCoffExtraActionLib.inf
  40. # ARM PL011 UART Driver
  41. PL011UartClockLib|ArmPlatformPkg/Library/PL011UartClockLib/PL011UartClockLib.inf
  42. PL011UartLib|ArmPlatformPkg/Library/PL011UartLib/PL011UartLib.inf
  43. SerialPortLib|ArmPlatformPkg/Library/PL011SerialPortLib/PL011SerialPortLib.inf
  44. StandaloneMmCoreEntryPoint|StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/StandaloneMmCoreEntryPoint.inf
  45. #
  46. # It is not possible to prevent the ARM compiler for generic intrinsic functions.
  47. # This library provides the instrinsic functions generate by a given compiler.
  48. # And NULL mean link this library into all ARM images.
  49. #
  50. NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf
  51. [LibraryClasses.common.MM_STANDALONE]
  52. HobLib|StandaloneMmPkg/Library/StandaloneMmHobLib/StandaloneMmHobLib.inf
  53. MmServicesTableLib|MdePkg/Library/StandaloneMmServicesTableLib/StandaloneMmServicesTableLib.inf
  54. MemoryAllocationLib|StandaloneMmPkg/Library/StandaloneMmMemoryAllocationLib/StandaloneMmMemoryAllocationLib.inf
  55. !if $(SECURE_STORAGE_ENABLE) == TRUE
  56. AuthVariableLib|SecurityPkg/Library/AuthVariableLib/AuthVariableLib.inf
  57. BaseCryptLib|CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf
  58. IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
  59. NorFlashPlatformLib|Platform/ARM/SgiPkg/Library/NorFlashLib/StandaloneMmNorFlashLib.inf
  60. OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf
  61. RngLib|MdePkg/Library/BaseRngLibTimerLib/BaseRngLibTimerLib.inf
  62. PlatformSecureLib|SecurityPkg/Library/PlatformSecureLibNull/PlatformSecureLibNull.inf
  63. SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
  64. TimerLib|MdePkg/Library/BaseTimerLibNullTemplate/BaseTimerLibNullTemplate.inf
  65. VarCheckLib|MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf
  66. SafeIntLib|MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf
  67. !endif
  68. ################################################################################
  69. #
  70. # Pcd Section - list of all EDK II PCD Entries defined by this Platform
  71. #
  72. ################################################################################
  73. [PcdsFixedAtBuild]
  74. gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x800000CF
  75. gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0xff
  76. gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x0f
  77. ## PL011 - Serial Terminal
  78. gEfiMdeModulePkgTokenSpaceGuid.PcdSerialRegisterBase|0x2A410000
  79. gEfiMdePkgTokenSpaceGuid.PcdUartDefaultBaudRate|115200
  80. gEfiMdePkgTokenSpaceGuid.PcdMaximumGuidedExtractHandler|0x2
  81. !if $(SECURE_STORAGE_ENABLE) == TRUE
  82. gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x2000
  83. gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x2800
  84. gEfiSecurityPkgTokenSpaceGuid.PcdUserPhysicalPresence|TRUE
  85. !endif
  86. ###################################################################################################
  87. #
  88. # Components Section - list of the modules and components that will be processed by compilation
  89. # tools and the EDK II tools to generate PE32/PE32+/Coff image files.
  90. #
  91. # Note: The EDK II DSC file is not used to specify how compiled binary images get placed
  92. # into firmware volume images. This section is just a list of modules to compile from
  93. # source into UEFI-compliant binaries.
  94. # It is the FDF file that contains information on combining binary files into firmware
  95. # volume images, whose concept is beyond UEFI and is described in PI specification.
  96. # Binary modules do not need to be listed in this section, as they should be
  97. # specified in the FDF file. For example: Shell binary (Shell_Full.efi), FAT binary (Fat.efi),
  98. # Logo (Logo.bmp), and etc.
  99. # There may also be modules listed in this section that are not required in the FDF file,
  100. # When a module listed here is excluded from FDF file, then UEFI-compliant binary will be
  101. # generated for it, but the binary will not be put into any firmware volume.
  102. #
  103. ###################################################################################################
  104. [Components.common]
  105. #
  106. # MM Core
  107. #
  108. StandaloneMmPkg/Core/StandaloneMmCore.inf
  109. [Components.AARCH64]
  110. StandaloneMmPkg/Drivers/StandaloneMmCpu/StandaloneMmCpu.inf
  111. !if $(SECURE_STORAGE_ENABLE) == TRUE
  112. ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashStandaloneMm.inf
  113. MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteStandaloneMm.inf
  114. MdeModulePkg/Universal/Variable/RuntimeDxe/VariableStandaloneMm.inf {
  115. <LibraryClasses>
  116. DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
  117. NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
  118. NULL|MdeModulePkg/Library/VarCheckPolicyLib/VarCheckPolicyLibStandaloneMm.inf
  119. BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
  120. VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLib.inf
  121. VariablePolicyHelperLib|MdeModulePkg/Library/VariablePolicyHelperLib/VariablePolicyHelperLib.inf
  122. }
  123. !endif
  124. ###################################################################################################
  125. #
  126. # BuildOptions Section - Define the module specific tool chain flags that should be used as
  127. # the default flags for a module. These flags are appended to any
  128. # standard flags that are defined by the build process. They can be
  129. # applied for any modules or only those modules with the specific
  130. # module style (EDK or EDKII) specified in [Components] section.
  131. #
  132. ###################################################################################################
  133. [BuildOptions.AARCH64]
  134. GCC:*_*_*_CC_FLAGS = -mstrict-align -march=armv8-a+nofp -D DISABLE_NEW_DEPRECATED_INTERFACES
  135. GCC:*_*_*_DLINK_FLAGS = -z common-page-size=0x1000