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