]> 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 - 2022, 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# Copyright (c) Microsoft Corporation.\r
6#\r
7# SPDX-License-Identifier: BSD-2-Clause-Patent\r
8#\r
9#\r
10\r
11[Defines]\r
12 DEFINE DEBUG_PRINT_ERROR_LEVEL = 0x8000004F\r
13\r
14!if $(TARGET) != NOOPT\r
15 DEFINE FD_SIZE_IN_MB = 2\r
16!else\r
17 DEFINE FD_SIZE_IN_MB = 3\r
18!endif\r
19\r
20!if $(FD_SIZE_IN_MB) == 2\r
21 DEFINE FD_SIZE = 0x200000\r
22 DEFINE FD_NUM_BLOCKS = 0x200\r
23!endif\r
24!if $(FD_SIZE_IN_MB) == 3\r
25 DEFINE FD_SIZE = 0x300000\r
26 DEFINE FD_NUM_BLOCKS = 0x300\r
27!endif\r
28\r
29[BuildOptions.common.EDKII.DXE_CORE,BuildOptions.common.EDKII.DXE_DRIVER,BuildOptions.common.EDKII.UEFI_DRIVER,BuildOptions.common.EDKII.UEFI_APPLICATION]\r
30 GCC:*_*_*_DLINK_FLAGS = -z common-page-size=0x1000\r
31\r
32[BuildOptions.common.EDKII.DXE_RUNTIME_DRIVER]\r
33 GCC:*_*_ARM_DLINK_FLAGS = -z common-page-size=0x1000\r
34 GCC:*_*_AARCH64_DLINK_FLAGS = -z common-page-size=0x10000\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 PeCoffExtraActionLib|ArmPkg/Library/DebugPeCoffExtraActionLib/DebugPeCoffExtraActionLib.inf\r
126 #PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf\r
127\r
128 DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.inf\r
129 DebugAgentTimerLib|EmbeddedPkg/Library/DebugAgentTimerLibNull/DebugAgentTimerLibNull.inf\r
130\r
131 # Flattened Device Tree (FDT) access library\r
132 FdtLib|EmbeddedPkg/Library/FdtLib/FdtLib.inf\r
133\r
134 # PCI Libraries\r
135 PciLib|MdePkg/Library/BasePciLibPciExpress/BasePciLibPciExpress.inf\r
136 PciExpressLib|OvmfPkg/Library/BaseCachingPciExpressLib/BaseCachingPciExpressLib.inf\r
137 PciCapLib|OvmfPkg/Library/BasePciCapLib/BasePciCapLib.inf\r
138 PciCapPciSegmentLib|OvmfPkg/Library/BasePciCapPciSegmentLib/BasePciCapPciSegmentLib.inf\r
139 PciCapPciIoLib|OvmfPkg/Library/UefiPciCapPciIoLib/UefiPciCapPciIoLib.inf\r
140 DxeHardwareInfoLib|OvmfPkg/Library/HardwareInfoLib/DxeHardwareInfoLib.inf\r
141\r
142 # USB Libraries\r
143 UefiUsbLib|MdePkg/Library/UefiUsbLib/UefiUsbLib.inf\r
144\r
145 XenIoMmioLib|OvmfPkg/Library/XenIoMmioLib/XenIoMmioLib.inf\r
146\r
147 #\r
148 # CryptoPkg libraries needed by multiple firmware features\r
149 #\r
150 IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf\r
151!if $(NETWORK_TLS_ENABLE) == TRUE\r
152 OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf\r
153!else\r
154 OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf\r
155!endif\r
156 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf\r
157 RngLib|MdePkg/Library/BaseRngLibTimerLib/BaseRngLibTimerLib.inf\r
158\r
159 #\r
160 # Secure Boot dependencies\r
161 #\r
162!if $(SECURE_BOOT_ENABLE) == TRUE\r
163 AuthVariableLib|SecurityPkg/Library/AuthVariableLib/AuthVariableLib.inf\r
164 SecureBootVariableLib|SecurityPkg/Library/SecureBootVariableLib/SecureBootVariableLib.inf\r
165 SecureBootVariableProvisionLib|SecurityPkg/Library/SecureBootVariableProvisionLib/SecureBootVariableProvisionLib.inf\r
166 PlatformPKProtectionLib|SecurityPkg/Library/PlatformPKProtectionLibVarPolicy/PlatformPKProtectionLibVarPolicy.inf\r
167\r
168 # re-use the UserPhysicalPresent() dummy implementation from the ovmf tree\r
169 PlatformSecureLib|OvmfPkg/Library/PlatformSecureLib/PlatformSecureLib.inf\r
170!else\r
171 AuthVariableLib|MdeModulePkg/Library/AuthVariableLibNull/AuthVariableLibNull.inf\r
172!endif\r
173 VarCheckLib|MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf\r
174 VariableFlashInfoLib|MdeModulePkg/Library/BaseVariableFlashInfoLib/BaseVariableFlashInfoLib.inf\r
175 VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLib.inf\r
176 VariablePolicyHelperLib|MdeModulePkg/Library/VariablePolicyHelperLib/VariablePolicyHelperLib.inf\r
177 UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf\r
178\r
179 ReportStatusCodeLib|MdePkg/Library/BaseReportStatusCodeLibNull/BaseReportStatusCodeLibNull.inf\r
180\r
181[LibraryClasses.common.SEC]\r
182 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf\r
183 BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf\r
184\r
185 DebugAgentLib|ArmPkg/Library/DebugAgentSymbolsBaseLib/DebugAgentSymbolsBaseLib.inf\r
186 SerialPortLib|ArmVirtPkg/Library/FdtPL011SerialPortLib/EarlyFdtPL011SerialPortLib.inf\r
187 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf\r
188 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf\r
189 PeiServicesTablePointerLib|ArmPkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointerLib.inf\r
190 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf\r
191\r
192[LibraryClasses.common.PEI_CORE]\r
193 PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf\r
194 BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf\r
195 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf\r
196 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf\r
197 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf\r
198 PeiCoreEntryPoint|MdePkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoint.inf\r
199 PerformanceLib|MdeModulePkg/Library/PeiPerformanceLib/PeiPerformanceLib.inf\r
200 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf\r
201 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf\r
202 ExtractGuidedSectionLib|MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.inf\r
203\r
204 PeiServicesTablePointerLib|ArmPkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointerLib.inf\r
205 SerialPortLib|ArmVirtPkg/Library/FdtPL011SerialPortLib/EarlyFdtPL011SerialPortLib.inf\r
206\r
207[LibraryClasses.common.PEIM]\r
208 PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf\r
209 BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf\r
210 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf\r
211 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf\r
212 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf\r
213 PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf\r
214 PerformanceLib|MdeModulePkg/Library/PeiPerformanceLib/PeiPerformanceLib.inf\r
215 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf\r
216 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf\r
217 ExtractGuidedSectionLib|MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.inf\r
218\r
219 PeiServicesTablePointerLib|ArmPkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointerLib.inf\r
220 SerialPortLib|ArmVirtPkg/Library/FdtPL011SerialPortLib/EarlyFdtPL011SerialPortLib.inf\r
221\r
222[LibraryClasses.common.DXE_CORE]\r
223 HobLib|MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf\r
224 MemoryAllocationLib|MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeCoreMemoryAllocationLib.inf\r
225 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf\r
226 ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf\r
227 PerformanceLib|MdeModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.inf\r
228\r
229[LibraryClasses.common.DXE_DRIVER]\r
230 SecurityManagementLib|MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib.inf\r
231 PerformanceLib|MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.inf\r
232 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf\r
233\r
234[LibraryClasses.common.UEFI_APPLICATION]\r
235 PerformanceLib|MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.inf\r
236 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf\r
237 HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf\r
238\r
239[LibraryClasses.common.UEFI_DRIVER]\r
240 ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf\r
241 PerformanceLib|MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.inf\r
242 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf\r
243\r
244[LibraryClasses.common.DXE_RUNTIME_DRIVER]\r
245 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf\r
246 CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf\r
247!if $(TARGET) != RELEASE\r
248 DebugLib|MdePkg/Library/DxeRuntimeDebugLibSerialPort/DxeRuntimeDebugLibSerialPort.inf\r
249!endif\r
250 VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLibRuntimeDxe.inf\r
251\r
252!if $(SECURE_BOOT_ENABLE) == TRUE\r
253 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf\r
254!endif\r
255\r
256[LibraryClasses.ARM]\r
257 ArmSoftFloatLib|ArmPkg/Library/ArmSoftFloatLib/ArmSoftFloatLib.inf\r
258\r
259[BuildOptions]\r
260 GCC:RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG\r
261\r
262 #\r
263 # Disable deprecated APIs.\r
264 #\r
265 GCC:*_*_*_CC_FLAGS = -DDISABLE_NEW_DEPRECATED_INTERFACES\r
266\r
267################################################################################\r
268#\r
269# Pcd Section - list of all EDK II PCD Entries defined by this Platform\r
270#\r
271################################################################################\r
272\r
273[PcdsFeatureFlag.common]\r
274 gEfiMdeModulePkgTokenSpaceGuid.PcdHiiOsRuntimeSupport|FALSE\r
275\r
276 gEmbeddedTokenSpaceGuid.PcdPrePiProduceMemoryTypeInformationHob|TRUE\r
277\r
278[PcdsFeatureFlag.AARCH64]\r
279 #\r
280 # Activate AcpiSdtProtocol\r
281 #\r
282 gEfiMdeModulePkgTokenSpaceGuid.PcdInstallAcpiSdtProtocol|TRUE\r
283\r
284[PcdsFixedAtBuild.common]\r
285 gEfiMdePkgTokenSpaceGuid.PcdMaximumUnicodeStringLength|1000000\r
286 gEfiMdePkgTokenSpaceGuid.PcdMaximumAsciiStringLength|1000000\r
287 gEfiMdePkgTokenSpaceGuid.PcdMaximumLinkedListLength|0\r
288 gEfiMdePkgTokenSpaceGuid.PcdSpinLockTimeout|10000000\r
289 gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|320\r
290\r
291 # DEBUG_ASSERT_ENABLED 0x01\r
292 # DEBUG_PRINT_ENABLED 0x02\r
293 # DEBUG_CODE_ENABLED 0x04\r
294 # CLEAR_MEMORY_ENABLED 0x08\r
295 # ASSERT_BREAKPOINT_ENABLED 0x10\r
296 # ASSERT_DEADLOOP_ENABLED 0x20\r
297!if $(TARGET) == RELEASE\r
298 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x21\r
299!else\r
300 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2f\r
301!endif\r
302\r
303 # DEBUG_INIT 0x00000001 // Initialization\r
304 # DEBUG_WARN 0x00000002 // Warnings\r
305 # DEBUG_LOAD 0x00000004 // Load events\r
306 # DEBUG_FS 0x00000008 // EFI File system\r
307 # DEBUG_POOL 0x00000010 // Alloc & Free (pool)\r
308 # DEBUG_PAGE 0x00000020 // Alloc & Free (page)\r
309 # DEBUG_INFO 0x00000040 // Informational debug messages\r
310 # DEBUG_DISPATCH 0x00000080 // PEI/DXE/SMM Dispatchers\r
311 # DEBUG_VARIABLE 0x00000100 // Variable\r
312 # DEBUG_BM 0x00000400 // Boot Manager\r
313 # DEBUG_BLKIO 0x00001000 // BlkIo Driver\r
314 # DEBUG_NET 0x00004000 // SNP Driver\r
315 # DEBUG_UNDI 0x00010000 // UNDI Driver\r
316 # DEBUG_LOADFILE 0x00020000 // LoadFile\r
317 # DEBUG_EVENT 0x00080000 // Event messages\r
318 # DEBUG_GCD 0x00100000 // Global Coherency Database changes\r
319 # DEBUG_CACHE 0x00200000 // Memory range cachability changes\r
320 # DEBUG_VERBOSE 0x00400000 // Detailed debug messages that may\r
321 # // significantly impact boot performance\r
322 # DEBUG_ERROR 0x80000000 // Error\r
323!if $(TARGET) != RELEASE\r
324 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|$(DEBUG_PRINT_ERROR_LEVEL)\r
325!endif\r
326\r
327 #\r
328 # Optional feature to help prevent EFI memory map fragments\r
329 # Turned on and off via: PcdPrePiProduceMemoryTypeInformationHob\r
330 # Values are in EFI Pages (4K). DXE Core will make sure that\r
331 # at least this much of each type of memory can be allocated\r
332 # from a single memory range. This way you only end up with\r
333 # maximum of two fragments for each type in the memory map\r
334 # (the memory used, and the free memory that was prereserved\r
335 # but not used).\r
336 #\r
337 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIReclaimMemory|0\r
338 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIMemoryNVS|0\r
339 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiReservedMemoryType|0\r
340!if $(SECURE_BOOT_ENABLE) == TRUE\r
341 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesData|600\r
342 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesCode|400\r
343 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiBootServicesCode|1500\r
344!else\r
345 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesData|300\r
346 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesCode|150\r
347 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiBootServicesCode|1000\r
348!endif\r
349 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiBootServicesData|12000\r
350 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiLoaderCode|20\r
351 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiLoaderData|0\r
352\r
353 #\r
354 # Enable strict image permissions for all images. (This applies\r
355 # only to images that were built with >= 4 KB section alignment.)\r
356 #\r
357 gEfiMdeModulePkgTokenSpaceGuid.PcdImageProtectionPolicy|0x3\r
358\r
359 #\r
360 # Enable NX memory protection for all non-code regions, including OEM and OS\r
361 # reserved ones, with the exception of LoaderData regions, of which OS loaders\r
362 # (i.e., GRUB) may assume that its contents are executable.\r
363 #\r
364 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeNxMemoryProtectionPolicy|0xC000000000007FD5\r
365\r
366[Components.common]\r
367 #\r
368 # Ramdisk support\r
369 #\r
370 MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf\r
371\r
372 ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf {\r
373 <PcdsFixedAtBuild>\r
374 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE\r
375 }\r
376 ShellPkg/DynamicCommand/HttpDynamicCommand/HttpDynamicCommand.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!if $(ACPIVIEW_ENABLE) == TRUE\r
393 NULL|ShellPkg/Library/UefiShellAcpiViewCommandLib/UefiShellAcpiViewCommandLib.inf\r
394!endif\r
395 NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf\r
396 NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf\r
397!if $(NETWORK_IP6_ENABLE) == TRUE\r
398 NULL|ShellPkg/Library/UefiShellNetwork2CommandsLib/UefiShellNetwork2CommandsLib.inf\r
399!endif\r
400 HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf\r
401 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf\r
402 BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf\r
403\r
404 <PcdsFixedAtBuild>\r
405 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0xFF\r
406 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE\r
407 gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|8000\r
408 }\r
409\r
410[Components.AARCH64]\r
411 #\r
412 # ACPI Support\r
413 #\r
414 MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf {\r
415 <LibraryClasses>\r
416 NULL|EmbeddedPkg/Library/PlatformHasAcpiLib/PlatformHasAcpiLib.inf\r
417 }\r