VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/FirmwareNew/StandaloneMmPkg/StandaloneMmPkg.dsc

Last change on this file was 108794, checked in by vboxsync, 4 weeks ago

Devices/EFI/FirmwareNew: Merge edk2-stable202502 from the vendor branch and make it build for the important platforms, bugref:4643

  • Property svn:eol-style set to native
File size: 9.4 KB
Line 
1## @file
2# Standalone MM Platform.
3#
4# Copyright (c) 2015 - 2024, 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|StandaloneMmPkg/Library/StandaloneMmExtractGuidedSectionLib/StandaloneMmExtractGuidedSectionLib.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 StandaloneMmDriverEntryPoint|MdePkg/Library/StandaloneMmDriverEntryPoint/StandaloneMmDriverEntryPoint.inf
60 VariableMmDependency|StandaloneMmPkg/Library/VariableMmDependency/VariableMmDependency.inf
61 HobPrintLib|MdeModulePkg/Library/HobPrintLib/HobPrintLib.inf
62 MmPlatformHobProducerLib|StandaloneMmPkg/Library/MmPlatformHobProducerLibNull/MmPlatformHobProducerLibNull.inf
63 ImagePropertiesRecordLib|MdeModulePkg/Library/ImagePropertiesRecordLib/ImagePropertiesRecordLib.inf
64 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
65
66[LibraryClasses.common.PEIM]
67 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
68 PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf
69 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
70 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
71 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointerLib.inf
72 MmUnblockMemoryLib|MdePkg/Library/MmUnblockMemoryLib/MmUnblockMemoryLibNull.inf
73
74[LibraryClasses.X64]
75 StandaloneMmCoreEntryPoint|MdePkg/Library/StandaloneMmCoreEntryPoint/StandaloneMmCoreEntryPoint.inf
76
77[LibraryClasses.AARCH64, LibraryClasses.ARM]
78 ArmLib|ArmPkg/Library/ArmLib/ArmBaseLib.inf
79 StandaloneMmCoreEntryPoint|ArmPkg/Library/ArmStandaloneMmCoreEntryPoint/ArmStandaloneMmCoreEntryPoint.inf
80 StandaloneMmMmuLib|ArmPkg/Library/StandaloneMmMmuLib/ArmMmuStandaloneMmLib.inf
81 ArmSmcLib|ArmPkg/Library/ArmSmcLib/ArmSmcLib.inf
82 ArmSvcLib|ArmPkg/Library/ArmSvcLib/ArmSvcLib.inf
83 CacheMaintenanceLib|ArmPkg/Library/ArmCacheMaintenanceLib/ArmCacheMaintenanceLib.inf
84 PeCoffExtraActionLib|StandaloneMmPkg/Library/StandaloneMmPeCoffExtraActionLib/StandaloneMmPeCoffExtraActionLib.inf
85 ArmTransferListLib|ArmPkg/Library/ArmTransferListLib/ArmTransferListLib.inf
86
87[LibraryClasses.common.MM_CORE_STANDALONE]
88 HobLib|StandaloneMmPkg/Library/StandaloneMmCoreHobLib/StandaloneMmCoreHobLib.inf
89 ArmFfaLib|ArmPkg/Library/ArmFfaLib/ArmFfaStandaloneMmCoreLib.inf
90
91[LibraryClasses.AARCH64.MM_CORE_STANDALONE, LibraryClasses.ARM.MM_CORE_STANDALONE]
92 ArmFfaLib|ArmPkg/Library/ArmFfaLib/ArmFfaStandaloneMmCoreLib.inf
93
94[LibraryClasses.common.MM_STANDALONE]
95 MemoryAllocationLib|StandaloneMmPkg/Library/StandaloneMmMemoryAllocationLib/StandaloneMmMemoryAllocationLib.inf
96
97[LibraryClasses.common.DXE_RUNTIME_DRIVER]
98 UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
99 UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
100 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
101 UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
102 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
103 UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
104 UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
105 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
106
107################################################################################
108#
109# Pcd Section - list of all EDK II PCD Entries defined by this Platform
110#
111################################################################################
112[PcdsFixedAtBuild]
113 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x800000CF
114 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0xff
115 gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x0f
116
117###################################################################################################
118#
119# Components Section - list of the modules and components that will be processed by compilation
120# tools and the EDK II tools to generate PE32/PE32+/Coff image files.
121#
122# Note: The EDK II DSC file is not used to specify how compiled binary images get placed
123# into firmware volume images. This section is just a list of modules to compile from
124# source into UEFI-compliant binaries.
125# It is the FDF file that contains information on combining binary files into firmware
126# volume images, whose concept is beyond UEFI and is described in PI specification.
127# Binary modules do not need to be listed in this section, as they should be
128# specified in the FDF file. For example: Shell binary (Shell_Full.efi), FAT binary (Fat.efi),
129# Logo (Logo.bmp), and etc.
130# There may also be modules listed in this section that are not required in the FDF file,
131# When a module listed here is excluded from FDF file, then UEFI-compliant binary will be
132# generated for it, but the binary will not be put into any firmware volume.
133#
134###################################################################################################
135[Components.common]
136 #
137 # MM Core
138 #
139 StandaloneMmPkg/Core/StandaloneMmCore.inf
140 StandaloneMmPkg/Library/FvLib/FvLib.inf
141 StandaloneMmPkg/Library/StandaloneMmCoreHobLib/StandaloneMmCoreHobLib.inf
142 StandaloneMmPkg/Library/StandaloneMmCoreMemoryAllocationLib/StandaloneMmCoreMemoryAllocationLib.inf
143 StandaloneMmPkg/Library/StandaloneMmHobLib/StandaloneMmHobLib.inf
144 StandaloneMmPkg/Library/StandaloneMmMemLib/StandaloneMmMemLib.inf
145 StandaloneMmPkg/Library/StandaloneMmMemoryAllocationLib/StandaloneMmMemoryAllocationLib.inf
146 StandaloneMmPkg/Library/VariableMmDependency/VariableMmDependency.inf
147 StandaloneMmPkg/Library/SmmLockBoxMmDependency/SmmLockBoxMmDependency.inf
148 StandaloneMmPkg/Library/MmPlatformHobProducerLibNull/MmPlatformHobProducerLibNull.inf
149 StandaloneMmPkg/Drivers/MmCommunicationDxe/MmCommunicationDxe.inf
150 StandaloneMmPkg/Library/StandaloneMmExtractGuidedSectionLib/StandaloneMmExtractGuidedSectionLib.inf
151
152[Components.AARCH64, Components.ARM]
153 StandaloneMmPkg/Library/StandaloneMmPeCoffExtraActionLib/StandaloneMmPeCoffExtraActionLib.inf
154
155[Components.X64]
156 StandaloneMmPkg/Drivers/StandaloneMmIplPei/StandaloneMmIplPei.inf
157
158###################################################################################################
159#
160# BuildOptions Section - Define the module specific tool chain flags that should be used as
161# the default flags for a module. These flags are appended to any
162# standard flags that are defined by the build process. They can be
163# applied for any modules or only those modules with the specific
164# module style (EDK or EDKII) specified in [Components] section.
165#
166###################################################################################################
167[BuildOptions.AARCH64]
168GCC:*_*_*_DLINK_FLAGS = -z common-page-size=0x1000 -march=armv8-a+nofp -mstrict-align
169GCC:*_*_*_CC_FLAGS = -mstrict-align
170
171[BuildOptions.ARM]
172GCC:*_*_*_DLINK_FLAGS = -z common-page-size=0x1000 -march=armv7-a
173GCC:*_*_*_CC_FLAGS = -fno-stack-protector
174
175[BuildOptions.X64]
176 MSFT:*_*_*_DLINK_FLAGS = /ALIGN:4096
177 GCC:*_GCC*_*_DLINK_FLAGS = -z common-page-size=0x1000
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette