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