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