StandaloneMmPkg.dsc 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. ## @file
  2. # Standalone MM Platform.
  3. #
  4. # Copyright (c) 2015 - 2021, Intel Corporation. All rights reserved.<BR>
  5. # Copyright (c) 2016 - 2021, Arm Limited. All rights reserved.<BR>
  6. # Copyright (C) Microsoft Corporation<BR>
  7. #
  8. # SPDX-License-Identifier: BSD-2-Clause-Patent
  9. #
  10. ##
  11. ################################################################################
  12. #
  13. # Defines Section - statements that will be processed to create a Makefile.
  14. #
  15. ################################################################################
  16. [Defines]
  17. PLATFORM_NAME = StandaloneMm
  18. PLATFORM_GUID = 9A4BBA60-B4F9-47C7-9258-3BD77CAE9322
  19. PLATFORM_VERSION = 1.0
  20. DSC_SPECIFICATION = 0x00010011
  21. OUTPUT_DIRECTORY = Build/StandaloneMm
  22. SUPPORTED_ARCHITECTURES = AARCH64|X64|ARM
  23. BUILD_TARGETS = DEBUG|RELEASE
  24. SKUID_IDENTIFIER = DEFAULT
  25. # LzmaF86
  26. DEFINE COMPRESSION_TOOL_GUID = D42AE6BD-1352-4bfb-909A-CA72A6EAE889
  27. ################################################################################
  28. #
  29. # Library Class section - list of all Library Classes needed by this Platform.
  30. #
  31. ################################################################################
  32. !include MdePkg/MdeLibs.dsc.inc
  33. [LibraryClasses]
  34. #
  35. # Basic
  36. #
  37. BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
  38. BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
  39. CacheMaintenanceLib|MdePkg/Library/BaseCacheMaintenanceLib/BaseCacheMaintenanceLib.inf
  40. DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
  41. DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
  42. ExtractGuidedSectionLib|EmbeddedPkg/Library/PrePiExtractGuidedSectionLib/PrePiExtractGuidedSectionLib.inf
  43. FvLib|StandaloneMmPkg/Library/FvLib/FvLib.inf
  44. HobLib|StandaloneMmPkg/Library/StandaloneMmHobLib/StandaloneMmHobLib.inf
  45. IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf
  46. MemLib|StandaloneMmPkg/Library/StandaloneMmMemLib/StandaloneMmMemLib.inf
  47. MemoryAllocationLib|StandaloneMmPkg/Library/StandaloneMmCoreMemoryAllocationLib/StandaloneMmCoreMemoryAllocationLib.inf
  48. MmServicesTableLib|MdePkg/Library/StandaloneMmServicesTableLib/StandaloneMmServicesTableLib.inf
  49. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  50. PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf
  51. PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
  52. PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
  53. ReportStatusCodeLib|MdePkg/Library/BaseReportStatusCodeLibNull/BaseReportStatusCodeLibNull.inf
  54. StandaloneMmCoreEntryPoint|StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/StandaloneMmCoreEntryPoint.inf
  55. StandaloneMmDriverEntryPoint|MdePkg/Library/StandaloneMmDriverEntryPoint/StandaloneMmDriverEntryPoint.inf
  56. VariableMmDependency|StandaloneMmPkg/Library/VariableMmDependency/VariableMmDependency.inf
  57. [LibraryClasses.AARCH64, LibraryClasses.ARM]
  58. ArmLib|ArmPkg/Library/ArmLib/ArmBaseLib.inf
  59. StandaloneMmMmuLib|ArmPkg/Library/StandaloneMmMmuLib/ArmMmuStandaloneMmLib.inf
  60. ArmSvcLib|ArmPkg/Library/ArmSvcLib/ArmSvcLib.inf
  61. CacheMaintenanceLib|ArmPkg/Library/ArmCacheMaintenanceLib/ArmCacheMaintenanceLib.inf
  62. PeCoffExtraActionLib|StandaloneMmPkg/Library/StandaloneMmPeCoffExtraActionLib/StandaloneMmPeCoffExtraActionLib.inf
  63. NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf
  64. NULL|MdePkg/Library/BaseStackCheckLib/BaseStackCheckLib.inf
  65. [LibraryClasses.common.MM_CORE_STANDALONE]
  66. HobLib|StandaloneMmPkg/Library/StandaloneMmCoreHobLib/StandaloneMmCoreHobLib.inf
  67. [LibraryClasses.common.MM_STANDALONE]
  68. MemoryAllocationLib|StandaloneMmPkg/Library/StandaloneMmMemoryAllocationLib/StandaloneMmMemoryAllocationLib.inf
  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. ###################################################################################################
  79. #
  80. # Components Section - list of the modules and components that will be processed by compilation
  81. # tools and the EDK II tools to generate PE32/PE32+/Coff image files.
  82. #
  83. # Note: The EDK II DSC file is not used to specify how compiled binary images get placed
  84. # into firmware volume images. This section is just a list of modules to compile from
  85. # source into UEFI-compliant binaries.
  86. # It is the FDF file that contains information on combining binary files into firmware
  87. # volume images, whose concept is beyond UEFI and is described in PI specification.
  88. # Binary modules do not need to be listed in this section, as they should be
  89. # specified in the FDF file. For example: Shell binary (Shell_Full.efi), FAT binary (Fat.efi),
  90. # Logo (Logo.bmp), and etc.
  91. # There may also be modules listed in this section that are not required in the FDF file,
  92. # When a module listed here is excluded from FDF file, then UEFI-compliant binary will be
  93. # generated for it, but the binary will not be put into any firmware volume.
  94. #
  95. ###################################################################################################
  96. [Components.common]
  97. #
  98. # MM Core
  99. #
  100. StandaloneMmPkg/Core/StandaloneMmCore.inf
  101. StandaloneMmPkg/Library/FvLib/FvLib.inf
  102. StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/StandaloneMmCoreEntryPoint.inf
  103. StandaloneMmPkg/Library/StandaloneMmCoreHobLib/StandaloneMmCoreHobLib.inf
  104. StandaloneMmPkg/Library/StandaloneMmCoreMemoryAllocationLib/StandaloneMmCoreMemoryAllocationLib.inf
  105. StandaloneMmPkg/Library/StandaloneMmHobLib/StandaloneMmHobLib.inf
  106. StandaloneMmPkg/Library/StandaloneMmMemLib/StandaloneMmMemLib.inf
  107. StandaloneMmPkg/Library/StandaloneMmMemoryAllocationLib/StandaloneMmMemoryAllocationLib.inf
  108. StandaloneMmPkg/Library/VariableMmDependency/VariableMmDependency.inf
  109. [Components.AARCH64, Components.ARM]
  110. StandaloneMmPkg/Drivers/StandaloneMmCpu/StandaloneMmCpu.inf
  111. StandaloneMmPkg/Library/StandaloneMmPeCoffExtraActionLib/StandaloneMmPeCoffExtraActionLib.inf
  112. ###################################################################################################
  113. #
  114. # BuildOptions Section - Define the module specific tool chain flags that should be used as
  115. # the default flags for a module. These flags are appended to any
  116. # standard flags that are defined by the build process. They can be
  117. # applied for any modules or only those modules with the specific
  118. # module style (EDK or EDKII) specified in [Components] section.
  119. #
  120. ###################################################################################################
  121. [BuildOptions.AARCH64]
  122. GCC:*_*_*_DLINK_FLAGS = -z common-page-size=0x1000 -march=armv8-a+nofp -mstrict-align
  123. GCC:*_*_*_CC_FLAGS = -mstrict-align
  124. [BuildOptions.ARM]
  125. GCC:*_*_*_DLINK_FLAGS = -z common-page-size=0x1000 -march=armv7-a
  126. GCC:*_*_*_CC_FLAGS = -fno-stack-protector
  127. [BuildOptions.X64]
  128. MSFT:*_*_*_DLINK_FLAGS = /ALIGN:4096
  129. GCC:*_GCC*_*_DLINK_FLAGS = -z common-page-size=0x1000