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