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