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