]> git.proxmox.com Git - mirror_edk2.git/blob - ArmPkg/ArmPkg.dsc
ArmPkg: prepare 32bit ARM build of StandaloneMmPkg
[mirror_edk2.git] / ArmPkg / ArmPkg.dsc
1 #/** @file
2 # ARM processor package.
3 #
4 # Copyright (c) 2009 - 2010, Apple Inc. All rights reserved.<BR>
5 # Copyright (c) 2011 - 2021, Arm Limited. All rights reserved.<BR>
6 # Copyright (c) 2016, Linaro Ltd. All rights reserved.<BR>
7 # Copyright (c) Microsoft Corporation.<BR>
8 #
9 # SPDX-License-Identifier: BSD-2-Clause-Patent
10 #
11 #**/
12
13 ################################################################################
14 #
15 # Defines Section - statements that will be processed to create a Makefile.
16 #
17 ################################################################################
18 [Defines]
19 PLATFORM_NAME = ArmPkg
20 PLATFORM_GUID = 5CFBD99E-3C43-4E7F-8054-9CDEAFF7710F
21 PLATFORM_VERSION = 0.1
22 DSC_SPECIFICATION = 0x00010005
23 OUTPUT_DIRECTORY = Build/Arm
24 SUPPORTED_ARCHITECTURES = ARM|AARCH64
25 BUILD_TARGETS = DEBUG|RELEASE|NOOPT
26 SKUID_IDENTIFIER = DEFAULT
27
28 [BuildOptions]
29 RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG
30 *_*_*_CC_FLAGS = -DDISABLE_NEW_DEPRECATED_INTERFACES
31
32 [PcdsFixedAtBuild]
33 gEfiMdePkgTokenSpaceGuid.PcdDefaultTerminalType|4
34
35 !include MdePkg/MdeLibs.dsc.inc
36
37 [LibraryClasses.common]
38 BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
39 BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
40 BootLogoLib|MdeModulePkg/Library/BootLogoLib/BootLogoLib.inf
41 CacheMaintenanceLib|ArmPkg/Library/ArmCacheMaintenanceLib/ArmCacheMaintenanceLib.inf
42 CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
43 DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
44 DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
45 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
46 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
47 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
48 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
49 TimerLib|MdePkg/Library/BaseTimerLibNullTemplate/BaseTimerLibNullTemplate.inf
50 UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf
51 UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
52 UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
53 UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
54 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
55 UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
56 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
57 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
58 PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf
59
60 UefiHiiServicesLib|MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf
61 HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
62
63 SemihostLib|ArmPkg/Library/SemihostLib/SemihostLib.inf
64 DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf
65 DefaultExceptionHandlerLib|ArmPkg/Library/DefaultExceptionHandlerLib/DefaultExceptionHandlerLib.inf
66 CpuExceptionHandlerLib|ArmPkg/Library/ArmExceptionLib/ArmExceptionLib.inf
67
68 CpuLib|MdePkg/Library/BaseCpuLib/BaseCpuLib.inf
69 ArmGicLib|ArmPkg/Drivers/ArmGic/ArmGicLib.inf
70 ArmGicArchLib|ArmPkg/Library/ArmGicArchLib/ArmGicArchLib.inf
71 ArmGenericTimerCounterLib|ArmPkg/Library/ArmGenericTimerPhyCounterLib/ArmGenericTimerPhyCounterLib.inf
72 ArmSmcLib|ArmPkg/Library/ArmSmcLib/ArmSmcLib.inf
73 ArmDisassemblerLib|ArmPkg/Library/ArmDisassemblerLib/ArmDisassemblerLib.inf
74 OpteeLib|ArmPkg/Library/OpteeLib/OpteeLib.inf
75
76 UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
77 PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf
78 SerialPortLib|MdePkg/Library/BaseSerialPortLibNull/BaseSerialPortLibNull.inf
79
80 FdtLib|EmbeddedPkg/Library/FdtLib/FdtLib.inf
81
82 ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
83 FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
84 SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf
85
86 IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf
87
88 ArmLib|ArmPkg/Library/ArmLib/ArmBaseLib.inf
89 ArmMmuLib|ArmPkg/Library/ArmMmuLib/ArmMmuBaseLib.inf
90
91 ArmMtlLib|ArmPkg/Library/ArmMtlNullLib/ArmMtlNullLib.inf
92
93 OemMiscLib|ArmPkg/Universal/Smbios/OemMiscLibNull/OemMiscLibNull.inf
94
95 [LibraryClasses.common.PEIM]
96 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
97 PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf
98 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
99 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
100 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointerLib.inf
101
102 [LibraryClasses.ARM, LibraryClasses.AARCH64]
103 NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf
104
105 # Add support for GCC stack protector
106 NULL|MdePkg/Library/BaseStackCheckLib/BaseStackCheckLib.inf
107
108 [Components.common]
109 ArmPkg/Library/ArmCacheMaintenanceLib/ArmCacheMaintenanceLib.inf
110 ArmPkg/Library/ArmDisassemblerLib/ArmDisassemblerLib.inf
111 ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf
112 ArmPkg/Library/DebugAgentSymbolsBaseLib/DebugAgentSymbolsBaseLib.inf
113 ArmPkg/Library/DebugPeCoffExtraActionLib/DebugPeCoffExtraActionLib.inf
114 ArmPkg/Library/DefaultExceptionHandlerLib/DefaultExceptionHandlerLib.inf
115 ArmPkg/Library/RvdPeCoffExtraActionLib/RvdPeCoffExtraActionLib.inf
116 ArmPkg/Library/SemiHostingDebugLib/SemiHostingDebugLib.inf
117 ArmPkg/Library/SemiHostingSerialPortLib/SemiHostingSerialPortLib.inf
118 ArmPkg/Library/SemihostLib/SemihostLib.inf
119 ArmPkg/Library/ArmPsciResetSystemLib/ArmPsciResetSystemLib.inf
120 ArmPkg/Library/ArmExceptionLib/ArmExceptionLib.inf
121 ArmPkg/Library/ArmExceptionLib/ArmRelocateExceptionLib.inf
122
123 ArmPkg/Drivers/CpuDxe/CpuDxe.inf
124 ArmPkg/Drivers/CpuPei/CpuPei.inf
125 ArmPkg/Drivers/ArmGic/ArmGicDxe.inf
126 ArmPkg/Drivers/ArmGic/ArmGicLib.inf
127 ArmPkg/Drivers/GenericWatchdogDxe/GenericWatchdogDxe.inf
128 ArmPkg/Drivers/TimerDxe/TimerDxe.inf
129
130 ArmPkg/Library/ArmGenericTimerPhyCounterLib/ArmGenericTimerPhyCounterLib.inf
131 ArmPkg/Library/ArmGenericTimerVirtCounterLib/ArmGenericTimerVirtCounterLib.inf
132
133 ArmPkg/Library/ArmSmcLib/ArmSmcLib.inf
134 ArmPkg/Library/ArmSmcLibNull/ArmSmcLibNull.inf
135 ArmPkg/Library/ArmHvcLib/ArmHvcLib.inf
136 ArmPkg/Library/ArmSvcLib/ArmSvcLib.inf
137 ArmPkg/Library/OpteeLib/OpteeLib.inf
138
139 ArmPkg/Filesystem/SemihostFs/SemihostFs.inf
140
141 ArmPkg/Library/ArmMmuLib/ArmMmuBaseLib.inf
142
143 ArmPkg/Drivers/ArmPciCpuIo2Dxe/ArmPciCpuIo2Dxe.inf
144 ArmPkg/Library/ArmArchTimerLib/ArmArchTimerLib.inf
145 ArmPkg/Library/ArmGicArchLib/ArmGicArchLib.inf
146 ArmPkg/Library/ArmGicArchSecLib/ArmGicArchSecLib.inf
147 ArmPkg/Library/ArmLib/ArmBaseLib.inf
148 ArmPkg/Library/ArmMtlNullLib/ArmMtlNullLib.inf
149 ArmPkg/Library/ArmSoftFloatLib/ArmSoftFloatLib.inf
150 ArmPkg/Library/ArmSmcPsciResetSystemLib/ArmSmcPsciResetSystemLib.inf
151 ArmPkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointerLib.inf
152 ArmPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf
153
154 ArmPkg/Drivers/ArmCrashDumpDxe/ArmCrashDumpDxe.inf
155 ArmPkg/Drivers/ArmScmiDxe/ArmScmiDxe.inf
156
157 ArmPkg/Universal/Smbios/ProcessorSubClassDxe/ProcessorSubClassDxe.inf
158 ArmPkg/Universal/Smbios/SmbiosMiscDxe/SmbiosMiscDxe.inf
159 ArmPkg/Universal/Smbios/OemMiscLibNull/OemMiscLibNull.inf
160
161 [Components.AARCH64]
162 ArmPkg/Drivers/MmCommunicationDxe/MmCommunication.inf
163 ArmPkg/Library/ArmMmuLib/ArmMmuPeiLib.inf
164
165 [Components.AARCH64, Components.ARM]
166 ArmPkg/Library/StandaloneMmMmuLib/ArmMmuStandaloneMmLib.inf