]> git.proxmox.com Git - mirror_edk2.git/blob - ArmVirtPkg/ArmVirtXen.dsc
ArmVirtPkg/ArmVirtQemu*: enable minimal Status Code Routing in DXE
[mirror_edk2.git] / ArmVirtPkg / ArmVirtXen.dsc
1 #
2 # Copyright (c) 2011-2015, ARM Limited. All rights reserved.
3 # Copyright (c) 2014, Linaro Limited. All rights reserved.
4 # Copyright (c) 2015 - 2019, Intel Corporation. All rights reserved.<BR>
5 #
6 # This program and the accompanying materials
7 # are licensed and made available under the terms and conditions of the BSD License
8 # which accompanies this distribution. The full text of the license may be found at
9 # http://opensource.org/licenses/bsd-license.php
10 #
11 # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
13 #
14 #
15
16 ################################################################################
17 #
18 # Defines Section - statements that will be processed to create a Makefile.
19 #
20 ################################################################################
21 [Defines]
22 PLATFORM_NAME = ArmVirtXen
23 PLATFORM_GUID = d1c43be3-3373-4a06-86fb-d1cb3083a207
24 PLATFORM_VERSION = 0.1
25 DSC_SPECIFICATION = 0x00010005
26 OUTPUT_DIRECTORY = Build/ArmVirtXen-$(ARCH)
27 SUPPORTED_ARCHITECTURES = AARCH64|ARM
28 BUILD_TARGETS = DEBUG|RELEASE|NOOPT
29 SKUID_IDENTIFIER = DEFAULT
30 FLASH_DEFINITION = ArmVirtPkg/ArmVirtXen.fdf
31
32 !include ArmVirtPkg/ArmVirt.dsc.inc
33
34 [LibraryClasses]
35 SerialPortLib|OvmfPkg/Library/XenConsoleSerialPortLib/XenConsoleSerialPortLib.inf
36 RealTimeClockLib|ArmVirtPkg/Library/XenRealTimeClockLib/XenRealTimeClockLib.inf
37 XenHypercallLib|OvmfPkg/Library/XenHypercallLib/XenHypercallLib.inf
38
39 ArmGenericTimerCounterLib|ArmVirtPkg/Library/XenArmGenericTimerVirtCounterLib/XenArmGenericTimerVirtCounterLib.inf
40 ArmLib|ArmPkg/Library/ArmLib/ArmBaseLib.inf
41 ArmMmuLib|ArmPkg/Library/ArmMmuLib/ArmMmuBaseLib.inf
42
43 # Virtio Support
44 VirtioLib|OvmfPkg/Library/VirtioLib/VirtioLib.inf
45 VirtioMmioDeviceLib|OvmfPkg/Library/VirtioMmioDeviceLib/VirtioMmioDeviceLib.inf
46
47 ArmVirtMemInfoLib|ArmVirtPkg/Library/XenVirtMemInfoLib/XenVirtMemInfoLib.inf
48
49 TimerLib|ArmPkg/Library/ArmArchTimerLib/ArmArchTimerLib.inf
50
51 CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
52 UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf
53 BootLogoLib|MdeModulePkg/Library/BootLogoLib/BootLogoLib.inf
54 PlatformBootManagerLib|ArmPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf
55 CustomizedDisplayLib|MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.inf
56
57 [LibraryClasses.common.UEFI_DRIVER]
58 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
59
60 [BuildOptions.common.EDKII.SEC, BuildOptions.common.EDKII.BASE]
61 #
62 # CLANG38 with LTO support enabled uses the GNU GOLD linker, which insists
63 # on emitting GOT based symbol references when running in shared mode, unless
64 # we override visibility to 'hidden' in all modules that make up the PrePi
65 # build.
66 #
67 GCC:*_CLANG38_*_CC_FLAGS = -include $(WORKSPACE)/ArmVirtPkg/Include/Platform/Hidden.h
68
69 ################################################################################
70 #
71 # Pcd Section - list of all EDK II PCD Entries defined by this Platform
72 #
73 ################################################################################
74
75 [PcdsFixedAtBuild.common]
76 gEfiMdeModulePkgTokenSpaceGuid.PcdFirmwareVersionString|L"$(FIRMWARE_VER)"
77 !if $(ARCH) == AARCH64
78 gArmTokenSpaceGuid.PcdVFPEnabled|1
79 !endif
80
81 gArmPlatformTokenSpaceGuid.PcdCPUCorePrimaryStackSize|0x4000
82
83 # Size of the region used by UEFI in permanent memory (Reserved 64MB)
84 gArmPlatformTokenSpaceGuid.PcdSystemMemoryUefiRegionSize|0x04000000
85
86 #
87 # ARM Virtual Architectural Timer
88 #
89 gArmTokenSpaceGuid.PcdArmArchTimerFreqInHz|0
90
91 gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
92 gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }
93
94 ## Default Terminal Type
95 ## 0-PCANSI, 1-VT100, 2-VT00+, 3-UTF8, 4-TTYTERM
96 gEfiMdePkgTokenSpaceGuid.PcdDefaultTerminalType|4
97
98 #
99 # Make VariableRuntimeDxe work at emulated non-volatile variable mode.
100 #
101 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvModeEnable|TRUE
102
103 [PcdsPatchableInModule.common]
104 #
105 # This will be overridden in the code
106 #
107 gArmTokenSpaceGuid.PcdSystemMemoryBase|0x0
108 gArmTokenSpaceGuid.PcdSystemMemorySize|0x0
109 gArmVirtTokenSpaceGuid.PcdDeviceTreeInitialBaseAddress|0x0
110
111 gArmTokenSpaceGuid.PcdFdBaseAddress|0x0
112 gArmTokenSpaceGuid.PcdFvBaseAddress|0x0
113
114 [PcdsDynamicDefault.common]
115
116 gArmTokenSpaceGuid.PcdArmArchTimerSecIntrNum|0x0
117 gArmTokenSpaceGuid.PcdArmArchTimerIntrNum|0x0
118 gArmTokenSpaceGuid.PcdArmArchTimerVirtIntrNum|0x0
119 gArmTokenSpaceGuid.PcdArmArchTimerHypIntrNum|0x0
120
121 #
122 # ARM General Interrupt Controller
123 #
124 gArmTokenSpaceGuid.PcdGicDistributorBase|0x0
125 gArmTokenSpaceGuid.PcdGicRedistributorsBase|0x0
126 gArmTokenSpaceGuid.PcdGicInterruptInterfaceBase|0x0
127
128 gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|3
129
130 ################################################################################
131 #
132 # Components Section - list of all EDK II Modules needed by this Platform
133 #
134 ################################################################################
135 [Components.common]
136 #
137 # PEI Phase modules
138 #
139 ArmVirtPkg/PrePi/ArmVirtPrePiUniCoreRelocatable.inf {
140 <LibraryClasses>
141 ExtractGuidedSectionLib|EmbeddedPkg/Library/PrePiExtractGuidedSectionLib/PrePiExtractGuidedSectionLib.inf
142 LzmaDecompressLib|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
143 PrePiLib|EmbeddedPkg/Library/PrePiLib/PrePiLib.inf
144 HobLib|EmbeddedPkg/Library/PrePiHobLib/PrePiHobLib.inf
145 PrePiHobListPointerLib|ArmPlatformPkg/Library/PrePiHobListPointerLib/PrePiHobListPointerLib.inf
146 MemoryAllocationLib|EmbeddedPkg/Library/PrePiMemoryAllocationLib/PrePiMemoryAllocationLib.inf
147 SerialPortLib|OvmfPkg/Library/XenConsoleSerialPortLib/XenConsoleSerialPortLib.inf
148 }
149
150 #
151 # DXE
152 #
153 MdeModulePkg/Core/Dxe/DxeMain.inf {
154 <LibraryClasses>
155 NULL|MdeModulePkg/Library/DxeCrc32GuidedSectionExtractLib/DxeCrc32GuidedSectionExtractLib.inf
156 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
157 }
158 MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
159 <LibraryClasses>
160 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
161 }
162
163 #
164 # Architectural Protocols
165 #
166 ArmPkg/Drivers/CpuDxe/CpuDxe.inf
167 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
168 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
169 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
170
171 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {
172 <LibraryClasses>
173 NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
174 }
175
176 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
177 MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
178 EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
179 EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf
180
181 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
182 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
183 MdeModulePkg/Universal/SerialDxe/SerialDxe.inf
184
185 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
186
187 ArmPkg/Drivers/ArmGic/ArmGicDxe.inf
188 ArmPkg/Drivers/TimerDxe/TimerDxe.inf {
189 <LibraryClasses>
190 NULL|ArmVirtPkg/Library/ArmVirtTimerFdtClientLib/ArmVirtTimerFdtClientLib.inf
191 }
192 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
193
194 #
195 # Platform Driver
196 #
197 ArmVirtPkg/XenioFdtDxe/XenioFdtDxe.inf
198 ArmVirtPkg/FdtClientDxe/FdtClientDxe.inf
199
200 #
201 # FAT filesystem + GPT/MBR partitioning + UDF filesystem
202 #
203 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
204 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
205 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
206 FatPkg/EnhancedFatDxe/Fat.inf
207 MdeModulePkg/Universal/Disk/UdfDxe/UdfDxe.inf
208
209 #
210 # Bds
211 #
212 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf {
213 <LibraryClasses>
214 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
215 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
216 }
217 MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
218 MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
219 MdeModulePkg/Universal/BdsDxe/BdsDxe.inf
220 MdeModulePkg/Application/UiApp/UiApp.inf {
221 <LibraryClasses>
222 NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf
223 NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf
224 NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
225 }
226
227 OvmfPkg/XenBusDxe/XenBusDxe.inf
228 OvmfPkg/XenPvBlkDxe/XenPvBlkDxe.inf
229
230 #
231 # ACPI support
232 #
233 ArmVirtPkg/XenPlatformHasAcpiDtDxe/XenPlatformHasAcpiDtDxe.inf
234 !if $(ARCH) == AARCH64
235 ArmVirtPkg/XenAcpiPlatformDxe/XenAcpiPlatformDxe.inf
236 !endif