VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/Firmware/ArmVirtPkg/ArmVirt.dsc.inc@ 106357

Last change on this file since 106357 was 105670, checked in by vboxsync, 6 months ago

Devices/EFI/FirmwareNew: Merge edk2-stable-202405 and make it build on aarch64, bugref:4643

  • Property svn:eol-style set to native
File size: 22.3 KB
Line 
1#
2# Copyright (c) 2011 - 2022, ARM Limited. All rights reserved.
3# Copyright (c) 2014, Linaro Limited. All rights reserved.
4# Copyright (c) 2015 - 2018, Intel Corporation. All rights reserved.
5# Copyright (c) Microsoft Corporation.
6#
7# SPDX-License-Identifier: BSD-2-Clause-Patent
8#
9#
10
11[Defines]
12 DEFINE DEBUG_PRINT_ERROR_LEVEL = 0x8000004F
13
14!if $(TARGET) != NOOPT
15 DEFINE FD_SIZE_IN_MB = 2
16!else
17 DEFINE FD_SIZE_IN_MB = 3
18!endif
19
20!if $(FD_SIZE_IN_MB) == 2
21 DEFINE FD_SIZE = 0x200000
22 DEFINE FD_NUM_BLOCKS = 0x200
23!endif
24!if $(FD_SIZE_IN_MB) == 3
25 DEFINE FD_SIZE = 0x300000
26 DEFINE FD_NUM_BLOCKS = 0x300
27!endif
28
29[BuildOptions.common.EDKII.DXE_CORE,BuildOptions.common.EDKII.DXE_DRIVER,BuildOptions.common.EDKII.UEFI_DRIVER,BuildOptions.common.EDKII.UEFI_APPLICATION]
30 GCC:*_*_*_DLINK_FLAGS = -z common-page-size=0x1000
31
32[BuildOptions.common.EDKII.DXE_RUNTIME_DRIVER]
33 GCC:*_*_ARM_DLINK_FLAGS = -z common-page-size=0x1000
34 GCC:*_*_AARCH64_DLINK_FLAGS = -z common-page-size=0x10000
35
36!ifdef $(VBOX)
37[BuildOptions.Arm]
38 GCC:*_*_*_CC_FLAGS = -DVBOX -DIPRT_NO_CRT -DRT_OS_UEFI -DARCH_BITS=32 -DHC_ARCH_BITS=32 -DVBOX_REV=$(VBOX_REV)
39 GCC:*_*_*_ASM_FLAGS = -DVBOX -DIPRT_NO_CRT -DRT_OS_UEFI -DARCH_BITS=32 -DHC_ARCH_BITS=32 -DVBOX_REV=$(VBOX_REV)
40 GCC:*_*_*_PP_FLAGS = -DVBOX -DIPRT_NO_CRT -DRT_OS_UEFI -DARCH_BITS=32 -DHC_ARCH_BITS=32 -DVBOX_REV=$(VBOX_REV)
41 MSFT:*_*_*_CC_FLAGS = -DVBOX -DIPRT_NO_CRT -DRT_OS_UEFI -DARCH_BITS=32 -DHC_ARCH_BITS=32 -DVBOX_REV=$(VBOX_REV)
42 INTEL:*_*_*_CC_FLAGS = -DVBOX -DIPRT_NO_CRT -DRT_OS_UEFI -DARCH_BITS=32 -DHC_ARCH_BITS=32 -DVBOX_REV=$(VBOX_REV)
43[BuildOptions.AArch64]
44 GCC:*_*_*_CC_FLAGS = -DVBOX -DIPRT_NO_CRT -DRT_OS_UEFI -DARCH_BITS=64 -DHC_ARCH_BITS=64 -DVBOX_REV=$(VBOX_REV)
45 GCC:*_*_*_ASM_FLAGS = -DVBOX -DIPRT_NO_CRT -DRT_OS_UEFI -DARCH_BITS=64 -DHC_ARCH_BITS=64 -DVBOX_REV=$(VBOX_REV)
46 GCC:*_*_*_PP_FLAGS = -DVBOX -DIPRT_NO_CRT -DRT_OS_UEFI -DARCH_BITS=64 -DHC_ARCH_BITS=64 -DVBOX_REV=$(VBOX_REV)
47 MSFT:*_*_*_CC_FLAGS = -DVBOX -DIPRT_NO_CRT -DRT_OS_UEFI -DARCH_BITS=64 -DHC_ARCH_BITS=64 -DVBOX_REV=$(VBOX_REV)
48 INTEL:*_*_*_CC_FLAGS = -DVBOX -DIPRT_NO_CRT -DRT_OS_UEFI -DARCH_BITS=64 -DHC_ARCH_BITS=64 -DVBOX_REV=$(VBOX_REV)
49
50!ifdef $(SOURCE_DEBUG_ENABLE)
51 # Get much better source-level debugging
52 GCC:DEBUG_*_*_CC_FLAGS = -DVBOX_SOURCE_DEBUG_ENABLE
53 MSFT:DEBUG_*_*_CC_FLAGS = /Od -DVBOX_SOURCE_DEBUG_ENABLE
54 INTEL:DEBUG_*_*_CC_FLAGS = -DVBOX_SOURCE_DEBUG_ENABLE
55!endif
56
57!endif
58
59[LibraryClasses.common]
60!if $(TARGET) == RELEASE
61 DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
62!else
63 DebugLib|ArmVirtPkg/Library/DebugLibFdtPL011Uart/DebugLibFdtPL011UartRam.inf
64!endif
65 DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
66
67 BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
68 SafeIntLib|MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf
69 BmpSupportLib|MdeModulePkg/Library/BaseBmpSupportLib/BaseBmpSupportLib.inf
70 SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
71 PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf
72 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
73 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
74 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
75 IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsicArmVirt.inf
76 UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf
77 CpuLib|MdePkg/Library/BaseCpuLib/BaseCpuLib.inf
78 ImagePropertiesRecordLib|MdeModulePkg/Library/ImagePropertiesRecordLib/ImagePropertiesRecordLib.inf
79
80 UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
81 HobLib|ArmVirtPkg/Library/ArmVirtDxeHobLib/ArmVirtDxeHobLib.inf
82 UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
83 DevicePathLib|MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLibDevicePathProtocol.inf
84 UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
85 DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf
86 DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
87 UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
88 UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
89 HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
90 UefiHiiServicesLib|MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf
91 SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf
92 ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
93 ShellCEntryLib|ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.inf
94 FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
95
96 UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
97 OrderedCollectionLib|MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.inf
98
99 #
100 # Ramdisk Requirements
101 #
102 FileExplorerLib|MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf
103
104 # Allow dynamic PCDs
105 #
106 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
107
108 # use the accelerated BaseMemoryLibOptDxe by default, overrides for SEC/PEI below
109 BaseMemoryLib|MdePkg/Library/BaseMemoryLibOptDxe/BaseMemoryLibOptDxe.inf
110
111 # Networking Requirements
112!include NetworkPkg/NetworkLibs.dsc.inc
113!if $(NETWORK_TLS_ENABLE) == TRUE
114 TlsLib|CryptoPkg/Library/TlsLib/TlsLib.inf
115!endif
116
117
118 #
119 # It is not possible to prevent the ARM compiler from inserting calls to intrinsic functions.
120 # This library provides the instrinsic functions such a compiler may generate calls to.
121 #
122 NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf
123
124 # Add support for GCC stack protector
125 NULL|MdePkg/Library/BaseStackCheckLib/BaseStackCheckLib.inf
126
127 # ARM Architectural Libraries
128 CacheMaintenanceLib|ArmPkg/Library/ArmCacheMaintenanceLib/ArmCacheMaintenanceLib.inf
129 DefaultExceptionHandlerLib|ArmPkg/Library/DefaultExceptionHandlerLib/DefaultExceptionHandlerLib.inf
130 CpuExceptionHandlerLib|ArmPkg/Library/ArmExceptionLib/ArmExceptionLib.inf
131 ArmDisassemblerLib|ArmPkg/Library/ArmDisassemblerLib/ArmDisassemblerLib.inf
132 ArmGicLib|ArmPkg/Drivers/ArmGic/ArmGicLib.inf
133 ArmGicArchLib|ArmVirtPkg/Library/ArmVirtGicArchLib/ArmVirtGicArchLib.inf
134 ArmSmcLib|ArmPkg/Library/ArmSmcLib/ArmSmcLib.inf
135 ArmHvcLib|ArmPkg/Library/ArmHvcLib/ArmHvcLib.inf
136 ArmGenericTimerCounterLib|ArmPkg/Library/ArmGenericTimerVirtCounterLib/ArmGenericTimerVirtCounterLib.inf
137
138 PlatformPeiLib|ArmVirtPkg/Library/PlatformPeiLib/PlatformPeiLib.inf
139 MemoryInitPeiLib|ArmVirtPkg/Library/ArmVirtMemoryInitPeiLib/ArmVirtMemoryInitPeiLib.inf
140 ResetSystemLib|ArmVirtPkg/Library/ArmVirtPsciResetSystemLib/ArmVirtPsciResetSystemLib.inf
141
142 # ARM PL031 RTC Driver
143 RealTimeClockLib|ArmPlatformPkg/Library/PL031RealTimeClockLib/PL031RealTimeClockLib.inf
144 TimeBaseLib|EmbeddedPkg/Library/TimeBaseLib/TimeBaseLib.inf
145 # ARM PL011 UART Driver
146 PL011UartLib|ArmPlatformPkg/Library/PL011UartLib/PL011UartLib.inf
147 SerialPortLib|ArmVirtPkg/Library/FdtPL011SerialPortLib/FdtPL011SerialPortLib.inf
148 FdtSerialPortAddressLib|OvmfPkg/Library/FdtSerialPortAddressLib/FdtSerialPortAddressLib.inf
149
150 PeCoffExtraActionLib|ArmPkg/Library/DebugPeCoffExtraActionLib/DebugPeCoffExtraActionLib.inf
151 #PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf
152
153 DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.inf
154 DebugAgentTimerLib|EmbeddedPkg/Library/DebugAgentTimerLibNull/DebugAgentTimerLibNull.inf
155
156 # Flattened Device Tree (FDT) access library
157 FdtLib|EmbeddedPkg/Library/FdtLib/FdtLib.inf
158
159 # PCI Libraries
160 PciLib|MdePkg/Library/BasePciLibPciExpress/BasePciLibPciExpress.inf
161 PciExpressLib|OvmfPkg/Library/BaseCachingPciExpressLib/BaseCachingPciExpressLib.inf
162 PciCapLib|OvmfPkg/Library/BasePciCapLib/BasePciCapLib.inf
163 PciCapPciSegmentLib|OvmfPkg/Library/BasePciCapPciSegmentLib/BasePciCapPciSegmentLib.inf
164 PciCapPciIoLib|OvmfPkg/Library/UefiPciCapPciIoLib/UefiPciCapPciIoLib.inf
165 DxeHardwareInfoLib|OvmfPkg/Library/HardwareInfoLib/DxeHardwareInfoLib.inf
166
167 # USB Libraries
168 UefiUsbLib|MdePkg/Library/UefiUsbLib/UefiUsbLib.inf
169
170 XenIoMmioLib|OvmfPkg/Library/XenIoMmioLib/XenIoMmioLib.inf
171
172 #
173 # CryptoPkg libraries needed by multiple firmware features
174 #
175 IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
176!if $(NETWORK_TLS_ENABLE) == TRUE
177 OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf
178!else
179 OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf
180!endif
181 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
182 RngLib|MdePkg/Library/BaseRngLib/BaseRngLib.inf
183 ArmTrngLib|ArmPkg/Library/ArmTrngLib/ArmTrngLib.inf
184 ArmMonitorLib|ArmPkg/Library/ArmMonitorLib/ArmMonitorLib.inf
185
186 #
187 # Secure Boot dependencies
188 #
189!if $(SECURE_BOOT_ENABLE) == TRUE
190 AuthVariableLib|SecurityPkg/Library/AuthVariableLib/AuthVariableLib.inf
191 SecureBootVariableLib|SecurityPkg/Library/SecureBootVariableLib/SecureBootVariableLib.inf
192 SecureBootVariableProvisionLib|SecurityPkg/Library/SecureBootVariableProvisionLib/SecureBootVariableProvisionLib.inf
193 PlatformPKProtectionLib|SecurityPkg/Library/PlatformPKProtectionLibVarPolicy/PlatformPKProtectionLibVarPolicy.inf
194
195 # re-use the UserPhysicalPresent() dummy implementation from the ovmf tree
196 PlatformSecureLib|OvmfPkg/Library/PlatformSecureLib/PlatformSecureLib.inf
197!else
198 AuthVariableLib|MdeModulePkg/Library/AuthVariableLibNull/AuthVariableLibNull.inf
199!endif
200 VarCheckLib|MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf
201 VariableFlashInfoLib|MdeModulePkg/Library/BaseVariableFlashInfoLib/BaseVariableFlashInfoLib.inf
202 VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLib.inf
203 VariablePolicyHelperLib|MdeModulePkg/Library/VariablePolicyHelperLib/VariablePolicyHelperLib.inf
204 UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf
205
206 ReportStatusCodeLib|MdePkg/Library/BaseReportStatusCodeLibNull/BaseReportStatusCodeLibNull.inf
207
208!ifdef $(VBOX)
209 VBoxArmPlatformLib|VBoxPkg/Library/VBoxArmPlatformLib/VBoxArmPlatformLib.inf
210!endif
211
212[LibraryClasses.common.SEC]
213 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
214 BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
215
216 DebugAgentLib|ArmPkg/Library/DebugAgentSymbolsBaseLib/DebugAgentSymbolsBaseLib.inf
217 SerialPortLib|ArmVirtPkg/Library/FdtPL011SerialPortLib/EarlyFdtPL011SerialPortLib.inf
218 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
219 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
220 PeiServicesTablePointerLib|ArmPkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointerLib.inf
221 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
222!if $(TARGET) != RELEASE
223 DebugLib|ArmVirtPkg/Library/DebugLibFdtPL011Uart/DebugLibFdtPL011UartFlash.inf
224!endif
225
226[LibraryClasses.common.PEI_CORE]
227 PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
228 BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
229 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
230 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
231 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
232 PeiCoreEntryPoint|MdePkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoint.inf
233 PerformanceLib|MdeModulePkg/Library/PeiPerformanceLib/PeiPerformanceLib.inf
234 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
235 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
236 ExtractGuidedSectionLib|MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.inf
237
238 PeiServicesTablePointerLib|ArmPkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointerLib.inf
239 SerialPortLib|ArmVirtPkg/Library/FdtPL011SerialPortLib/EarlyFdtPL011SerialPortLib.inf
240!if $(TARGET) != RELEASE
241 DebugLib|ArmVirtPkg/Library/DebugLibFdtPL011Uart/DebugLibFdtPL011UartFlash.inf
242!endif
243
244[LibraryClasses.common.PEIM]
245 PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
246 BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
247 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
248 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
249 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
250 PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf
251 PerformanceLib|MdeModulePkg/Library/PeiPerformanceLib/PeiPerformanceLib.inf
252 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
253 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
254 ExtractGuidedSectionLib|MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.inf
255
256 PeiServicesTablePointerLib|ArmPkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointerLib.inf
257 SerialPortLib|ArmVirtPkg/Library/FdtPL011SerialPortLib/EarlyFdtPL011SerialPortLib.inf
258!if $(TARGET) != RELEASE
259 DebugLib|ArmVirtPkg/Library/DebugLibFdtPL011Uart/DebugLibFdtPL011UartFlash.inf
260!endif
261
262[LibraryClasses.common.DXE_CORE]
263 HobLib|MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf
264 MemoryAllocationLib|MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeCoreMemoryAllocationLib.inf
265 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
266 ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
267 PerformanceLib|MdeModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.inf
268
269[LibraryClasses.common.DXE_DRIVER]
270 SecurityManagementLib|MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib.inf
271 PerformanceLib|MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.inf
272 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
273
274[LibraryClasses.common.UEFI_APPLICATION]
275 PerformanceLib|MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.inf
276 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
277 HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
278
279[LibraryClasses.common.UEFI_DRIVER]
280 ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
281 PerformanceLib|MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.inf
282 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
283
284[LibraryClasses.common.DXE_RUNTIME_DRIVER]
285 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
286 CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
287!if $(TARGET) != RELEASE
288 DebugLib|ArmVirtPkg/Library/DebugLibFdtPL011Uart/DxeRuntimeDebugLibFdtPL011Uart.inf
289!endif
290 VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLibRuntimeDxe.inf
291
292!if $(SECURE_BOOT_ENABLE) == TRUE
293 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
294!endif
295
296[LibraryClasses.ARM]
297 ArmSoftFloatLib|ArmPkg/Library/ArmSoftFloatLib/ArmSoftFloatLib.inf
298 RngLib|MdePkg/Library/BaseRngLibTimerLib/BaseRngLibTimerLib.inf
299
300[BuildOptions]
301 GCC:RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG
302
303 #
304 # Disable deprecated APIs.
305 #
306 GCC:*_*_*_CC_FLAGS = -DDISABLE_NEW_DEPRECATED_INTERFACES
307
308################################################################################
309#
310# Pcd Section - list of all EDK II PCD Entries defined by this Platform
311#
312################################################################################
313
314[PcdsFeatureFlag.common]
315 gEfiMdeModulePkgTokenSpaceGuid.PcdHiiOsRuntimeSupport|FALSE
316
317 gEmbeddedTokenSpaceGuid.PcdPrePiProduceMemoryTypeInformationHob|TRUE
318
319[PcdsFeatureFlag.AARCH64]
320 #
321 # Activate AcpiSdtProtocol
322 #
323 gEfiMdeModulePkgTokenSpaceGuid.PcdInstallAcpiSdtProtocol|TRUE
324
325[PcdsFixedAtBuild.common]
326!ifdef $(FIRMWARE_VER)
327 gEfiMdeModulePkgTokenSpaceGuid.PcdFirmwareVersionString|L"$(FIRMWARE_VER)"
328!endif
329
330 gEfiMdePkgTokenSpaceGuid.PcdMaximumUnicodeStringLength|1000000
331 gEfiMdePkgTokenSpaceGuid.PcdMaximumAsciiStringLength|1000000
332 gEfiMdePkgTokenSpaceGuid.PcdMaximumLinkedListLength|0
333 gEfiMdePkgTokenSpaceGuid.PcdSpinLockTimeout|10000000
334 gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|320
335
336 # DEBUG_ASSERT_ENABLED 0x01
337 # DEBUG_PRINT_ENABLED 0x02
338 # DEBUG_CODE_ENABLED 0x04
339 # CLEAR_MEMORY_ENABLED 0x08
340 # ASSERT_BREAKPOINT_ENABLED 0x10
341 # ASSERT_DEADLOOP_ENABLED 0x20
342!if $(TARGET) == RELEASE
343 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x21
344!else
345 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2f
346!endif
347
348 # DEBUG_INIT 0x00000001 // Initialization
349 # DEBUG_WARN 0x00000002 // Warnings
350 # DEBUG_LOAD 0x00000004 // Load events
351 # DEBUG_FS 0x00000008 // EFI File system
352 # DEBUG_POOL 0x00000010 // Alloc & Free (pool)
353 # DEBUG_PAGE 0x00000020 // Alloc & Free (page)
354 # DEBUG_INFO 0x00000040 // Informational debug messages
355 # DEBUG_DISPATCH 0x00000080 // PEI/DXE/SMM Dispatchers
356 # DEBUG_VARIABLE 0x00000100 // Variable
357 # DEBUG_BM 0x00000400 // Boot Manager
358 # DEBUG_BLKIO 0x00001000 // BlkIo Driver
359 # DEBUG_NET 0x00004000 // Network Io Driver
360 # DEBUG_UNDI 0x00010000 // UNDI Driver
361 # DEBUG_LOADFILE 0x00020000 // LoadFile
362 # DEBUG_EVENT 0x00080000 // Event messages
363 # DEBUG_GCD 0x00100000 // Global Coherency Database changes
364 # DEBUG_CACHE 0x00200000 // Memory range cachability changes
365 # DEBUG_VERBOSE 0x00400000 // Detailed debug messages that may
366 # // significantly impact boot performance
367 # DEBUG_MANAGEABILITY 0x00800000 // Detailed debug and payload manageability messages
368 # // related to modules such as Redfish, IPMI, MCTP etc.
369 # DEBUG_ERROR 0x80000000 // Error
370!if $(TARGET) != RELEASE
371 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|$(DEBUG_PRINT_ERROR_LEVEL)
372!endif
373
374 #
375 # Optional feature to help prevent EFI memory map fragments
376 # Turned on and off via: PcdPrePiProduceMemoryTypeInformationHob
377 # Values are in EFI Pages (4K). DXE Core will make sure that
378 # at least this much of each type of memory can be allocated
379 # from a single memory range. This way you only end up with
380 # maximum of two fragments for each type in the memory map
381 # (the memory used, and the free memory that was prereserved
382 # but not used).
383 #
384 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIReclaimMemory|0
385 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIMemoryNVS|0
386 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiReservedMemoryType|0
387!if $(SECURE_BOOT_ENABLE) == TRUE
388 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesData|600
389 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesCode|400
390 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiBootServicesCode|1500
391!else
392 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesData|300
393 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesCode|150
394 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiBootServicesCode|1000
395!endif
396 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiBootServicesData|12000
397 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiLoaderCode|20
398 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiLoaderData|0
399
400 #
401 # Enable strict image permissions for all images. (This applies
402 # only to images that were built with >= 4 KB section alignment.)
403 #
404 gEfiMdeModulePkgTokenSpaceGuid.PcdImageProtectionPolicy|0x3
405
406 #
407 # Enable NX memory protection for all non-code regions, including OEM and OS
408 # reserved ones, with the exception of LoaderData regions, of which OS loaders
409 # (i.e., GRUB) may assume that its contents are executable.
410 #
411!ifdef $(VBOX)
412 #
413 # The default protection includes EfiLoaderData which older grub bootloaders
414 # fail to boot with because they assume being able to execute code from such memory
415 # regions. So don't apply the NX protection there.
416 #
417 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeNxMemoryProtectionPolicy|0xC000000000007FD1
418!else
419 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeNxMemoryProtectionPolicy|0xC000000000007FD5
420!endif
421
422 gEfiMdeModulePkgTokenSpaceGuid.PcdCpuStackGuard|TRUE
423
424[Components.common]
425 #
426 # Ramdisk support
427 #
428 MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf
429
430 ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf {
431 <PcdsFixedAtBuild>
432 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
433 }
434 ShellPkg/DynamicCommand/HttpDynamicCommand/HttpDynamicCommand.inf {
435 <PcdsFixedAtBuild>
436 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
437 }
438 ShellPkg/DynamicCommand/VariablePolicyDynamicCommand/VariablePolicyDynamicCommand.inf {
439 <PcdsFixedAtBuild>
440 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
441 }
442 OvmfPkg/LinuxInitrdDynamicShellCommand/LinuxInitrdDynamicShellCommand.inf {
443 <PcdsFixedAtBuild>
444 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
445 }
446 ShellPkg/Application/Shell/Shell.inf {
447 <LibraryClasses>
448 ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
449 NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
450 NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf
451 NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf
452 NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf
453 NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
454!if $(ACPIVIEW_ENABLE) == TRUE
455 NULL|ShellPkg/Library/UefiShellAcpiViewCommandLib/UefiShellAcpiViewCommandLib.inf
456!endif
457 NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
458 NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf
459!if $(NETWORK_IP6_ENABLE) == TRUE
460 NULL|ShellPkg/Library/UefiShellNetwork2CommandsLib/UefiShellNetwork2CommandsLib.inf
461!endif
462 HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
463 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
464 BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf
465
466 <PcdsFixedAtBuild>
467 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0xFF
468 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
469 gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|8000
470 }
471
472[Components.AARCH64]
473 #
474 # ACPI Support
475 #
476 MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf {
477 <LibraryClasses>
478 NULL|EmbeddedPkg/Library/PlatformHasAcpiLib/PlatformHasAcpiLib.inf
479 }
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette