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