]> git.proxmox.com Git - mirror_edk2.git/blob - ArmVirtPkg/ArmVirtXen.dsc
ArmVirtPkg/ArmVirtQemu: add ArmVirtMemInfoLib implementation
[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 - 2016, 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
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 ArmLib|ArmPkg/Library/ArmLib/ArmBaseLib.inf
40 ArmMmuLib|ArmPkg/Library/ArmMmuLib/ArmMmuBaseLib.inf
41
42 # Virtio Support
43 VirtioLib|OvmfPkg/Library/VirtioLib/VirtioLib.inf
44 VirtioMmioDeviceLib|OvmfPkg/Library/VirtioMmioDeviceLib/VirtioMmioDeviceLib.inf
45
46 ArmPlatformLib|ArmVirtPkg/Library/ArmXenRelocatablePlatformLib/ArmXenRelocatablePlatformLib.inf
47 ArmVirtMemInfoLib|ArmVirtPkg/Library/XenVirtMemInfoLib/XenVirtMemInfoLib.inf
48
49 TimerLib|ArmPkg/Library/ArmArchTimerLib/ArmArchTimerLib.inf
50
51 CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
52 GenericBdsLib|IntelFrameworkModulePkg/Library/GenericBdsLib/GenericBdsLib.inf
53 PlatformBdsLib|ArmPlatformPkg/Library/PlatformIntelBdsLib/PlatformIntelBdsLib.inf
54 CustomizedDisplayLib|MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.inf
55
56 [LibraryClasses.common.UEFI_DRIVER]
57 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
58
59 [BuildOptions.ARM.EDKII.SEC, BuildOptions.ARM.EDKII.BASE]
60 # Avoid MOVT/MOVW instruction pairs in code that may end up in the PIE
61 # executable we build for the relocatable PrePi. They are not runtime
62 # relocatable in ELF.
63 *_CLANG35_*_CC_FLAGS = -mno-movt
64
65 ################################################################################
66 #
67 # Pcd Section - list of all EDK II PCD Entries defined by this Platform
68 #
69 ################################################################################
70
71 [PcdsFixedAtBuild.common]
72 gEfiMdeModulePkgTokenSpaceGuid.PcdFirmwareVersionString|L"$(FIRMWARE_VER)"
73
74 gArmPlatformTokenSpaceGuid.PcdCoreCount|1
75 !if $(ARCH) == AARCH64
76 gArmTokenSpaceGuid.PcdVFPEnabled|1
77 !endif
78
79 gArmPlatformTokenSpaceGuid.PcdCPUCorePrimaryStackSize|0x4000
80
81 # Size of the region used by UEFI in permanent memory (Reserved 64MB)
82 gArmPlatformTokenSpaceGuid.PcdSystemMemoryUefiRegionSize|0x04000000
83
84 #
85 # ARM Virtual Architectural Timer
86 #
87 gArmTokenSpaceGuid.PcdArmArchTimerFreqInHz|0
88
89 gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
90 gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdShellFile|{ 0x83, 0xA5, 0x04, 0x7C, 0x3E, 0x9E, 0x1C, 0x4F, 0xAD, 0x65, 0xE0, 0x52, 0x68, 0xD0, 0xB4, 0xD1 }
91
92 [PcdsPatchableInModule.common]
93 #
94 # This will be overridden in the code
95 #
96 gArmTokenSpaceGuid.PcdSystemMemoryBase|0x0
97 gArmTokenSpaceGuid.PcdSystemMemorySize|0x0
98 gArmVirtTokenSpaceGuid.PcdDeviceTreeInitialBaseAddress|0x0
99
100 gArmTokenSpaceGuid.PcdFdBaseAddress|0x0
101 gArmTokenSpaceGuid.PcdFvBaseAddress|0x0
102
103 [PcdsDynamicDefault.common]
104
105 gArmTokenSpaceGuid.PcdArmArchTimerSecIntrNum|0x0
106 gArmTokenSpaceGuid.PcdArmArchTimerIntrNum|0x0
107 gArmTokenSpaceGuid.PcdArmArchTimerVirtIntrNum|0x0
108 gArmTokenSpaceGuid.PcdArmArchTimerHypIntrNum|0x0
109
110 #
111 # ARM General Interrupt Controller
112 #
113 gArmTokenSpaceGuid.PcdGicDistributorBase|0x0
114 gArmTokenSpaceGuid.PcdGicRedistributorsBase|0x0
115 gArmTokenSpaceGuid.PcdGicInterruptInterfaceBase|0x0
116
117 ## PL031 RealTimeClock
118 gArmPlatformTokenSpaceGuid.PcdPL031RtcBase|0x0
119
120 gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|3
121
122 ################################################################################
123 #
124 # Components Section - list of all EDK II Modules needed by this Platform
125 #
126 ################################################################################
127 [Components.common]
128 #
129 # PEI Phase modules
130 #
131 ArmVirtPkg/PrePi/ArmVirtPrePiUniCoreRelocatable.inf {
132 <LibraryClasses>
133 ExtractGuidedSectionLib|EmbeddedPkg/Library/PrePiExtractGuidedSectionLib/PrePiExtractGuidedSectionLib.inf
134 LzmaDecompressLib|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
135 PrePiLib|EmbeddedPkg/Library/PrePiLib/PrePiLib.inf
136 HobLib|EmbeddedPkg/Library/PrePiHobLib/PrePiHobLib.inf
137 PrePiHobListPointerLib|ArmPlatformPkg/Library/PrePiHobListPointerLib/PrePiHobListPointerLib.inf
138 MemoryAllocationLib|EmbeddedPkg/Library/PrePiMemoryAllocationLib/PrePiMemoryAllocationLib.inf
139 SerialPortLib|OvmfPkg/Library/XenConsoleSerialPortLib/XenConsoleSerialPortLib.inf
140 }
141
142 #
143 # DXE
144 #
145 MdeModulePkg/Core/Dxe/DxeMain.inf {
146 <LibraryClasses>
147 NULL|MdeModulePkg/Library/DxeCrc32GuidedSectionExtractLib/DxeCrc32GuidedSectionExtractLib.inf
148 }
149 MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
150 <LibraryClasses>
151 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
152 }
153
154 #
155 # Architectural Protocols
156 #
157 ArmPkg/Drivers/CpuDxe/CpuDxe.inf
158 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
159 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
160 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
161
162 MdeModulePkg/Universal/Variable/EmuRuntimeDxe/EmuVariableRuntimeDxe.inf
163
164 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
165 MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
166 EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
167 EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf
168
169 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
170 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
171 MdeModulePkg/Universal/SerialDxe/SerialDxe.inf
172
173 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
174
175 ArmPkg/Drivers/ArmGic/ArmGicDxe.inf
176 ArmPkg/Drivers/TimerDxe/TimerDxe.inf {
177 <LibraryClasses>
178 NULL|ArmVirtPkg/Library/ArmVirtTimerFdtClientLib/ArmVirtTimerFdtClientLib.inf
179 }
180 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
181
182 #
183 # Platform Driver
184 #
185 ArmVirtPkg/XenioFdtDxe/XenioFdtDxe.inf
186 ArmVirtPkg/FdtClientDxe/FdtClientDxe.inf
187
188 #
189 # FAT filesystem + GPT/MBR partitioning + UDF filesystem
190 #
191 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
192 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
193 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
194 FatPkg/EnhancedFatDxe/Fat.inf
195 MdeModulePkg/Universal/Disk/UdfDxe/UdfDxe.inf
196
197 #
198 # Bds
199 #
200 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
201 MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
202 MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
203 IntelFrameworkModulePkg/Universal/BdsDxe/BdsDxe.inf
204
205 OvmfPkg/XenBusDxe/XenBusDxe.inf
206 OvmfPkg/XenPvBlkDxe/XenPvBlkDxe.inf
207
208 #
209 # ACPI support
210 #
211 ArmVirtPkg/XenPlatformHasAcpiDtDxe/XenPlatformHasAcpiDtDxe.inf
212 !if $(ARCH) == AARCH64
213 ArmVirtPkg/XenAcpiPlatformDxe/XenAcpiPlatformDxe.inf
214 !endif