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