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