]> git.proxmox.com Git - mirror_edk2.git/blob - ArmVirtPkg/ArmVirtXen.dsc
ArmVirtPkg/PrePiUniCoreRelocatable CLANG38: work around build issues
[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|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 # Avoid MOVT/MOVW instruction pairs in code that may end up in the PIE
62 # executable we build for the relocatable PrePi. They are not runtime
63 # relocatable in ELF.
64 *_CLANG35_ARM_CC_FLAGS = -mno-movt
65
66 #
67 # CLANG38 with LTO support enabled uses the GNU GOLD linker, which insists
68 # on emitting GOT based symbol references when running in shared mode, unless
69 # we override visibility to 'hidden' in all modules that make up the PrePi
70 # build.
71 #
72 GCC:*_CLANG38_*_CC_FLAGS = -include $(WORKSPACE)/ArmVirtPkg/Include/Platform/Hidden.h
73
74 ################################################################################
75 #
76 # Pcd Section - list of all EDK II PCD Entries defined by this Platform
77 #
78 ################################################################################
79
80 [PcdsFixedAtBuild.common]
81 gEfiMdeModulePkgTokenSpaceGuid.PcdFirmwareVersionString|L"$(FIRMWARE_VER)"
82
83 gArmPlatformTokenSpaceGuid.PcdCoreCount|1
84 !if $(ARCH) == AARCH64
85 gArmTokenSpaceGuid.PcdVFPEnabled|1
86 !endif
87
88 gArmPlatformTokenSpaceGuid.PcdCPUCorePrimaryStackSize|0x4000
89
90 # Size of the region used by UEFI in permanent memory (Reserved 64MB)
91 gArmPlatformTokenSpaceGuid.PcdSystemMemoryUefiRegionSize|0x04000000
92
93 #
94 # ARM Virtual Architectural Timer
95 #
96 gArmTokenSpaceGuid.PcdArmArchTimerFreqInHz|0
97
98 gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
99 gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }
100 gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdShellFile|{ 0x83, 0xA5, 0x04, 0x7C, 0x3E, 0x9E, 0x1C, 0x4F, 0xAD, 0x65, 0xE0, 0x52, 0x68, 0xD0, 0xB4, 0xD1 }
101
102 ## Default Terminal Type
103 ## 0-PCANSI, 1-VT100, 2-VT00+, 3-UTF8, 4-TTYTERM
104 gEfiMdePkgTokenSpaceGuid.PcdDefaultTerminalType|4
105
106 # Set terminal type to TtyTerm, the value encoded is EFI_TTY_TERM_GUID
107 gArmVirtTokenSpaceGuid.PcdTerminalTypeGuidBuffer|{0x80, 0x6d, 0x91, 0x7d, 0xb1, 0x5b, 0x8c, 0x45, 0xa4, 0x8f, 0xe2, 0x5f, 0xdd, 0x51, 0xef, 0x94}
108
109 [PcdsPatchableInModule.common]
110 #
111 # This will be overridden in the code
112 #
113 gArmTokenSpaceGuid.PcdSystemMemoryBase|0x0
114 gArmTokenSpaceGuid.PcdSystemMemorySize|0x0
115 gArmVirtTokenSpaceGuid.PcdDeviceTreeInitialBaseAddress|0x0
116
117 gArmTokenSpaceGuid.PcdFdBaseAddress|0x0
118 gArmTokenSpaceGuid.PcdFvBaseAddress|0x0
119
120 [PcdsDynamicDefault.common]
121
122 gArmTokenSpaceGuid.PcdArmArchTimerSecIntrNum|0x0
123 gArmTokenSpaceGuid.PcdArmArchTimerIntrNum|0x0
124 gArmTokenSpaceGuid.PcdArmArchTimerVirtIntrNum|0x0
125 gArmTokenSpaceGuid.PcdArmArchTimerHypIntrNum|0x0
126
127 #
128 # ARM General Interrupt Controller
129 #
130 gArmTokenSpaceGuid.PcdGicDistributorBase|0x0
131 gArmTokenSpaceGuid.PcdGicRedistributorsBase|0x0
132 gArmTokenSpaceGuid.PcdGicInterruptInterfaceBase|0x0
133
134 ## PL031 RealTimeClock
135 gArmPlatformTokenSpaceGuid.PcdPL031RtcBase|0x0
136
137 gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|3
138
139 ################################################################################
140 #
141 # Components Section - list of all EDK II Modules needed by this Platform
142 #
143 ################################################################################
144 [Components.common]
145 #
146 # PEI Phase modules
147 #
148 ArmVirtPkg/PrePi/ArmVirtPrePiUniCoreRelocatable.inf {
149 <LibraryClasses>
150 ExtractGuidedSectionLib|EmbeddedPkg/Library/PrePiExtractGuidedSectionLib/PrePiExtractGuidedSectionLib.inf
151 LzmaDecompressLib|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
152 PrePiLib|EmbeddedPkg/Library/PrePiLib/PrePiLib.inf
153 HobLib|EmbeddedPkg/Library/PrePiHobLib/PrePiHobLib.inf
154 PrePiHobListPointerLib|ArmPlatformPkg/Library/PrePiHobListPointerLib/PrePiHobListPointerLib.inf
155 MemoryAllocationLib|EmbeddedPkg/Library/PrePiMemoryAllocationLib/PrePiMemoryAllocationLib.inf
156 SerialPortLib|OvmfPkg/Library/XenConsoleSerialPortLib/XenConsoleSerialPortLib.inf
157 }
158
159 #
160 # DXE
161 #
162 MdeModulePkg/Core/Dxe/DxeMain.inf {
163 <LibraryClasses>
164 NULL|MdeModulePkg/Library/DxeCrc32GuidedSectionExtractLib/DxeCrc32GuidedSectionExtractLib.inf
165 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
166 }
167 MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
168 <LibraryClasses>
169 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
170 }
171
172 #
173 # Architectural Protocols
174 #
175 ArmPkg/Drivers/CpuDxe/CpuDxe.inf
176 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
177 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
178 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
179
180 MdeModulePkg/Universal/Variable/EmuRuntimeDxe/EmuVariableRuntimeDxe.inf
181
182 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
183 MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
184 EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
185 EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf
186
187 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
188 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
189 MdeModulePkg/Universal/SerialDxe/SerialDxe.inf
190
191 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
192
193 ArmPkg/Drivers/ArmGic/ArmGicDxe.inf
194 ArmPkg/Drivers/TimerDxe/TimerDxe.inf {
195 <LibraryClasses>
196 NULL|ArmVirtPkg/Library/ArmVirtTimerFdtClientLib/ArmVirtTimerFdtClientLib.inf
197 }
198 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
199
200 #
201 # Platform Driver
202 #
203 ArmVirtPkg/XenioFdtDxe/XenioFdtDxe.inf
204 ArmVirtPkg/FdtClientDxe/FdtClientDxe.inf
205
206 #
207 # FAT filesystem + GPT/MBR partitioning + UDF filesystem
208 #
209 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
210 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
211 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
212 FatPkg/EnhancedFatDxe/Fat.inf
213 MdeModulePkg/Universal/Disk/UdfDxe/UdfDxe.inf
214
215 #
216 # Bds
217 #
218 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf {
219 <LibraryClasses>
220 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
221 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
222 }
223 MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
224 MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
225 MdeModulePkg/Universal/BdsDxe/BdsDxe.inf
226 MdeModulePkg/Application/UiApp/UiApp.inf {
227 <LibraryClasses>
228 NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf
229 NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf
230 NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
231 }
232
233 OvmfPkg/XenBusDxe/XenBusDxe.inf
234 OvmfPkg/XenPvBlkDxe/XenPvBlkDxe.inf
235
236 #
237 # ACPI support
238 #
239 ArmVirtPkg/XenPlatformHasAcpiDtDxe/XenPlatformHasAcpiDtDxe.inf
240 !if $(ARCH) == AARCH64
241 ArmVirtPkg/XenAcpiPlatformDxe/XenAcpiPlatformDxe.inf
242 !endif