SgiPlatformMm.dsc.inc 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  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. FdtLib|EmbeddedPkg/Library/FdtLib/FdtLib.inf
  39. CacheMaintenanceLib|ArmPkg/Library/ArmCacheMaintenanceLib/ArmCacheMaintenanceLib.inf
  40. PeCoffExtraActionLib|StandaloneMmPkg/Library/StandaloneMmPeCoffExtraActionLib/StandaloneMmPeCoffExtraActionLib.inf
  41. # ARM PL011 UART Driver
  42. PL011UartClockLib|ArmPlatformPkg/Library/PL011UartClockLib/PL011UartClockLib.inf
  43. PL011UartLib|ArmPlatformPkg/Library/PL011UartLib/PL011UartLib.inf
  44. SerialPortLib|ArmPlatformPkg/Library/PL011SerialPortLib/PL011SerialPortLib.inf
  45. StandaloneMmCoreEntryPoint|StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/StandaloneMmCoreEntryPoint.inf
  46. #
  47. # It is not possible to prevent the ARM compiler for generic intrinsic functions.
  48. # This library provides the instrinsic functions generate by a given compiler.
  49. # And NULL mean link this library into all ARM images.
  50. #
  51. NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf
  52. [LibraryClasses.common.MM_STANDALONE]
  53. HobLib|StandaloneMmPkg/Library/StandaloneMmHobLib/StandaloneMmHobLib.inf
  54. MmServicesTableLib|MdePkg/Library/StandaloneMmServicesTableLib/StandaloneMmServicesTableLib.inf
  55. MemoryAllocationLib|StandaloneMmPkg/Library/StandaloneMmMemoryAllocationLib/StandaloneMmMemoryAllocationLib.inf
  56. !if $(SECURE_STORAGE_ENABLE) == TRUE
  57. AuthVariableLib|SecurityPkg/Library/AuthVariableLib/AuthVariableLib.inf
  58. BaseCryptLib|CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf
  59. IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
  60. NorFlashPlatformLib|Platform/ARM/SgiPkg/Library/NorFlashLib/StandaloneMmNorFlashLib.inf
  61. OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf
  62. RngLib|MdePkg/Library/BaseRngLibTimerLib/BaseRngLibTimerLib.inf
  63. PlatformSecureLib|SecurityPkg/Library/PlatformSecureLibNull/PlatformSecureLibNull.inf
  64. SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
  65. TimerLib|MdePkg/Library/BaseTimerLibNullTemplate/BaseTimerLibNullTemplate.inf
  66. VarCheckLib|MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf
  67. SafeIntLib|MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf
  68. !endif
  69. ################################################################################
  70. #
  71. # Pcd Section - list of all EDK II PCD Entries defined by this Platform
  72. #
  73. ################################################################################
  74. [PcdsFixedAtBuild]
  75. gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x800000CF
  76. gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0xff
  77. gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x0f
  78. ## PL011 - Serial Terminal
  79. gEfiMdeModulePkgTokenSpaceGuid.PcdSerialRegisterBase|0x2A410000
  80. gEfiMdePkgTokenSpaceGuid.PcdUartDefaultBaudRate|115200
  81. gEfiMdePkgTokenSpaceGuid.PcdMaximumGuidedExtractHandler|0x2
  82. !if $(SECURE_STORAGE_ENABLE) == TRUE
  83. gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x2000
  84. gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x2800
  85. gEfiSecurityPkgTokenSpaceGuid.PcdUserPhysicalPresence|TRUE
  86. !endif
  87. ###################################################################################################
  88. #
  89. # Components Section - list of the modules and components that will be processed by compilation
  90. # tools and the EDK II tools to generate PE32/PE32+/Coff image files.
  91. #
  92. # Note: The EDK II DSC file is not used to specify how compiled binary images get placed
  93. # into firmware volume images. This section is just a list of modules to compile from
  94. # source into UEFI-compliant binaries.
  95. # It is the FDF file that contains information on combining binary files into firmware
  96. # volume images, whose concept is beyond UEFI and is described in PI specification.
  97. # Binary modules do not need to be listed in this section, as they should be
  98. # specified in the FDF file. For example: Shell binary (Shell_Full.efi), FAT binary (Fat.efi),
  99. # Logo (Logo.bmp), and etc.
  100. # There may also be modules listed in this section that are not required in the FDF file,
  101. # When a module listed here is excluded from FDF file, then UEFI-compliant binary will be
  102. # generated for it, but the binary will not be put into any firmware volume.
  103. #
  104. ###################################################################################################
  105. [Components.common]
  106. #
  107. # MM Core
  108. #
  109. StandaloneMmPkg/Core/StandaloneMmCore.inf
  110. [Components.AARCH64]
  111. StandaloneMmPkg/Drivers/StandaloneMmCpu/StandaloneMmCpu.inf
  112. !if $(SECURE_STORAGE_ENABLE) == TRUE
  113. Platform/ARM/Drivers/NorFlashDxe/NorFlashStandaloneMm.inf
  114. MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteStandaloneMm.inf
  115. MdeModulePkg/Universal/Variable/RuntimeDxe/VariableStandaloneMm.inf {
  116. <LibraryClasses>
  117. DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
  118. NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
  119. NULL|MdeModulePkg/Library/VarCheckPolicyLib/VarCheckPolicyLibStandaloneMm.inf
  120. BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
  121. VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLib.inf
  122. VariablePolicyHelperLib|MdeModulePkg/Library/VariablePolicyHelperLib/VariablePolicyHelperLib.inf
  123. }
  124. !endif
  125. ###################################################################################################
  126. #
  127. # BuildOptions Section - Define the module specific tool chain flags that should be used as
  128. # the default flags for a module. These flags are appended to any
  129. # standard flags that are defined by the build process. They can be
  130. # applied for any modules or only those modules with the specific
  131. # module style (EDK or EDKII) specified in [Components] section.
  132. #
  133. ###################################################################################################
  134. [BuildOptions.AARCH64]
  135. GCC:*_*_*_CC_FLAGS = -mstrict-align -march=armv8-a+nofp -D DISABLE_NEW_DEPRECATED_INTERFACES
  136. GCC:*_*_*_DLINK_FLAGS = -z common-page-size=0x1000