]> git.proxmox.com Git - mirror_edk2.git/blob - StandaloneMmPkg/StandaloneMmPkg.dsc
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[mirror_edk2.git] / StandaloneMmPkg / StandaloneMmPkg.dsc
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 #
14 # Defines Section - statements that will be processed to create a Makefile.
15 #
16 ################################################################################
17 [Defines]
18 PLATFORM_NAME = StandaloneMm
19 PLATFORM_GUID = 9A4BBA60-B4F9-47C7-9258-3BD77CAE9322
20 PLATFORM_VERSION = 1.0
21 DSC_SPECIFICATION = 0x00010011
22 OUTPUT_DIRECTORY = Build/StandaloneMm
23 SUPPORTED_ARCHITECTURES = AARCH64|X64|ARM
24 BUILD_TARGETS = DEBUG|RELEASE
25 SKUID_IDENTIFIER = DEFAULT
26
27 # LzmaF86
28 DEFINE COMPRESSION_TOOL_GUID = D42AE6BD-1352-4bfb-909A-CA72A6EAE889
29
30 ################################################################################
31 #
32 # Library Class section - list of all Library Classes needed by this Platform.
33 #
34 ################################################################################
35
36 !include MdePkg/MdeLibs.dsc.inc
37
38 [LibraryClasses]
39 #
40 # Basic
41 #
42 BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
43 BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
44 CacheMaintenanceLib|MdePkg/Library/BaseCacheMaintenanceLib/BaseCacheMaintenanceLib.inf
45 DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
46 DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
47 ExtractGuidedSectionLib|EmbeddedPkg/Library/PrePiExtractGuidedSectionLib/PrePiExtractGuidedSectionLib.inf
48 FvLib|StandaloneMmPkg/Library/FvLib/FvLib.inf
49 HobLib|StandaloneMmPkg/Library/StandaloneMmHobLib/StandaloneMmHobLib.inf
50 IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf
51 MemLib|StandaloneMmPkg/Library/StandaloneMmMemLib/StandaloneMmMemLib.inf
52 MemoryAllocationLib|StandaloneMmPkg/Library/StandaloneMmCoreMemoryAllocationLib/StandaloneMmCoreMemoryAllocationLib.inf
53 MmServicesTableLib|MdePkg/Library/StandaloneMmServicesTableLib/StandaloneMmServicesTableLib.inf
54 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
55 PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf
56 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
57 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
58 ReportStatusCodeLib|MdePkg/Library/BaseReportStatusCodeLibNull/BaseReportStatusCodeLibNull.inf
59 StandaloneMmCoreEntryPoint|StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/StandaloneMmCoreEntryPoint.inf
60 StandaloneMmDriverEntryPoint|MdePkg/Library/StandaloneMmDriverEntryPoint/StandaloneMmDriverEntryPoint.inf
61 VariableMmDependency|StandaloneMmPkg/Library/VariableMmDependency/VariableMmDependency.inf
62
63 [LibraryClasses.AARCH64, LibraryClasses.ARM]
64 ArmLib|ArmPkg/Library/ArmLib/ArmBaseLib.inf
65 StandaloneMmMmuLib|ArmPkg/Library/StandaloneMmMmuLib/ArmMmuStandaloneMmLib.inf
66 ArmSvcLib|ArmPkg/Library/ArmSvcLib/ArmSvcLib.inf
67 CacheMaintenanceLib|ArmPkg/Library/ArmCacheMaintenanceLib/ArmCacheMaintenanceLib.inf
68 PeCoffExtraActionLib|StandaloneMmPkg/Library/StandaloneMmPeCoffExtraActionLib/StandaloneMmPeCoffExtraActionLib.inf
69
70 NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf
71 NULL|MdePkg/Library/BaseStackCheckLib/BaseStackCheckLib.inf
72
73 [LibraryClasses.common.MM_CORE_STANDALONE]
74 HobLib|StandaloneMmPkg/Library/StandaloneMmCoreHobLib/StandaloneMmCoreHobLib.inf
75
76 [LibraryClasses.common.MM_STANDALONE]
77 MemoryAllocationLib|StandaloneMmPkg/Library/StandaloneMmMemoryAllocationLib/StandaloneMmMemoryAllocationLib.inf
78
79 ################################################################################
80 #
81 # Pcd Section - list of all EDK II PCD Entries defined by this Platform
82 #
83 ################################################################################
84 [PcdsFixedAtBuild]
85 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x800000CF
86 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0xff
87 gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x0f
88
89 ###################################################################################################
90 #
91 # Components Section - list of the modules and components that will be processed by compilation
92 # tools and the EDK II tools to generate PE32/PE32+/Coff image files.
93 #
94 # Note: The EDK II DSC file is not used to specify how compiled binary images get placed
95 # into firmware volume images. This section is just a list of modules to compile from
96 # source into UEFI-compliant binaries.
97 # It is the FDF file that contains information on combining binary files into firmware
98 # volume images, whose concept is beyond UEFI and is described in PI specification.
99 # Binary modules do not need to be listed in this section, as they should be
100 # specified in the FDF file. For example: Shell binary (Shell_Full.efi), FAT binary (Fat.efi),
101 # Logo (Logo.bmp), and etc.
102 # There may also be modules listed in this section that are not required in the FDF file,
103 # When a module listed here is excluded from FDF file, then UEFI-compliant binary will be
104 # generated for it, but the binary will not be put into any firmware volume.
105 #
106 ###################################################################################################
107 [Components.common]
108 #
109 # MM Core
110 #
111 StandaloneMmPkg/Core/StandaloneMmCore.inf
112 StandaloneMmPkg/Library/FvLib/FvLib.inf
113 StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/StandaloneMmCoreEntryPoint.inf
114 StandaloneMmPkg/Library/StandaloneMmCoreHobLib/StandaloneMmCoreHobLib.inf
115 StandaloneMmPkg/Library/StandaloneMmCoreMemoryAllocationLib/StandaloneMmCoreMemoryAllocationLib.inf
116 StandaloneMmPkg/Library/StandaloneMmHobLib/StandaloneMmHobLib.inf
117 StandaloneMmPkg/Library/StandaloneMmMemLib/StandaloneMmMemLib.inf
118 StandaloneMmPkg/Library/StandaloneMmMemoryAllocationLib/StandaloneMmMemoryAllocationLib.inf
119 StandaloneMmPkg/Library/VariableMmDependency/VariableMmDependency.inf
120
121 [Components.AARCH64, Components.ARM]
122 StandaloneMmPkg/Drivers/StandaloneMmCpu/StandaloneMmCpu.inf
123 StandaloneMmPkg/Library/StandaloneMmPeCoffExtraActionLib/StandaloneMmPeCoffExtraActionLib.inf
124
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:*_*_*_DLINK_FLAGS = -z common-page-size=0x1000 -march=armv8-a+nofp -mstrict-align
136 GCC:*_*_*_CC_FLAGS = -mstrict-align
137
138 [BuildOptions.ARM]
139 GCC:*_*_*_DLINK_FLAGS = -z common-page-size=0x1000 -march=armv7-a
140 GCC:*_*_*_CC_FLAGS = -fno-stack-protector
141
142 [BuildOptions.X64]
143 MSFT:*_*_*_DLINK_FLAGS = /ALIGN:4096
144 GCC:*_GCC*_*_DLINK_FLAGS = -z common-page-size=0x1000