]> git.proxmox.com Git - mirror_edk2.git/blame - UefiPayloadPkg/UefiPayloadPkg.dsc
UefiPayloadPkg: UefiPayload retrieve PCI root bridge from Guid Hob
[mirror_edk2.git] / UefiPayloadPkg / UefiPayloadPkg.dsc
CommitLineData
04af8bf2
DG
1## @file\r
2# Bootloader Payload Package\r
3#\r
4# Provides drivers and definitions to create uefi payload for bootloaders.\r
5#\r
08c65f7c 6# Copyright (c) 2014 - 2021, Intel Corporation. All rights reserved.<BR>\r
d49fe0ca 7# Copyright (c) Microsoft Corporation.\r
04af8bf2
DG
8# SPDX-License-Identifier: BSD-2-Clause-Patent\r
9#\r
10##\r
11\r
12################################################################################\r
13#\r
14# Defines Section - statements that will be processed to create a Makefile.\r
15#\r
16################################################################################\r
17[Defines]\r
18 PLATFORM_NAME = UefiPayloadPkg\r
19 PLATFORM_GUID = F71608AB-D63D-4491-B744-A99998C8CD96\r
20 PLATFORM_VERSION = 0.1\r
21 DSC_SPECIFICATION = 0x00010005\r
22 SUPPORTED_ARCHITECTURES = IA32|X64\r
23 BUILD_TARGETS = DEBUG|RELEASE|NOOPT\r
24 SKUID_IDENTIFIER = DEFAULT\r
25 OUTPUT_DIRECTORY = Build/UefiPayloadPkgX64\r
26 FLASH_DEFINITION = UefiPayloadPkg/UefiPayloadPkg.fdf\r
27\r
28 DEFINE SOURCE_DEBUG_ENABLE = FALSE\r
33a32936 29 DEFINE PS2_KEYBOARD_ENABLE = FALSE\r
04af8bf2
DG
30\r
31 #\r
32 # SBL: UEFI payload for Slim Bootloader\r
33 # COREBOOT: UEFI payload for coreboot\r
34 #\r
35 DEFINE BOOTLOADER = SBL\r
36\r
37 #\r
38 # CPU options\r
39 #\r
40 DEFINE MAX_LOGICAL_PROCESSORS = 64\r
41\r
42 #\r
43 # PCI options\r
44 #\r
3900a63e 45 DEFINE PCIE_BASE_SUPPORT = TRUE\r
04af8bf2
DG
46\r
47 #\r
48 # Serial port set up\r
49 #\r
50 DEFINE BAUD_RATE = 115200\r
51 DEFINE SERIAL_CLOCK_RATE = 1843200\r
52 DEFINE SERIAL_LINE_CONTROL = 3 # 8-bits, no parity\r
53 DEFINE SERIAL_HARDWARE_FLOW_CONTROL = FALSE\r
54 DEFINE SERIAL_DETECT_CABLE = FALSE\r
55 DEFINE SERIAL_FIFO_CONTROL = 7 # Enable FIFO\r
56 DEFINE SERIAL_EXTENDED_TX_FIFO_SIZE = 16\r
57 DEFINE UART_DEFAULT_BAUD_RATE = $(BAUD_RATE)\r
58 DEFINE UART_DEFAULT_DATA_BITS = 8\r
59 DEFINE UART_DEFAULT_PARITY = 1\r
60 DEFINE UART_DEFAULT_STOP_BITS = 1\r
61 DEFINE DEFAULT_TERMINAL_TYPE = 0\r
62\r
48aa2edf
PR
63 # Enabling the serial terminal will slow down the boot menu redering!\r
64 DEFINE DISABLE_SERIAL_TERMINAL = FALSE\r
65\r
04af8bf2
DG
66 #\r
67 # typedef struct {\r
68 # UINT16 VendorId; ///< Vendor ID to match the PCI device. The value 0xFFFF terminates the list of entries.\r
69 # UINT16 DeviceId; ///< Device ID to match the PCI device\r
70 # UINT32 ClockRate; ///< UART clock rate. Set to 0 for default clock rate of 1843200 Hz\r
71 # UINT64 Offset; ///< The byte offset into to the BAR\r
72 # UINT8 BarIndex; ///< Which BAR to get the UART base address\r
73 # UINT8 RegisterStride; ///< UART register stride in bytes. Set to 0 for default register stride of 1 byte.\r
74 # UINT16 ReceiveFifoDepth; ///< UART receive FIFO depth in bytes. Set to 0 for a default FIFO depth of 16 bytes.\r
75 # UINT16 TransmitFifoDepth; ///< UART transmit FIFO depth in bytes. Set to 0 for a default FIFO depth of 16 bytes.\r
76 # UINT8 Reserved[2];\r
77 # } PCI_SERIAL_PARAMETER;\r
78 #\r
79 # Vendor FFFF Device 0000 Prog Interface 1, BAR #0, Offset 0, Stride = 1, Clock 1843200 (0x1c2000)\r
80 #\r
81 # [Vendor] [Device] [----ClockRate---] [------------Offset-----------] [Bar] [Stride] [RxFifo] [TxFifo] [Rsvd] [Vendor]\r
82 DEFINE PCI_SERIAL_PARAMETERS = {0xff,0xff, 0x00,0x00, 0x0,0x20,0x1c,0x00, 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, 0x00, 0x01, 0x0,0x0, 0x0,0x0, 0x0,0x0, 0xff,0xff}\r
83\r
84 #\r
85 # Shell options: [BUILD_SHELL, MIN_BIN, NONE, UEFI_BIN]\r
86 #\r
87 DEFINE SHELL_TYPE = BUILD_SHELL\r
88\r
89[BuildOptions]\r
90 *_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES\r
91 GCC:*_UNIXGCC_*_CC_FLAGS = -DMDEPKG_NDEBUG\r
92 GCC:RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG\r
93 INTEL:RELEASE_*_*_CC_FLAGS = /D MDEPKG_NDEBUG\r
94 MSFT:RELEASE_*_*_CC_FLAGS = /D MDEPKG_NDEBUG\r
95\r
7c4ab1c2
GD
96[BuildOptions.common.EDKII.DXE_RUNTIME_DRIVER]\r
97 GCC:*_*_*_DLINK_FLAGS = -z common-page-size=0x1000\r
98 XCODE:*_*_*_DLINK_FLAGS = -seg1addr 0x1000 -segalign 0x1000\r
99 XCODE:*_*_*_MTOC_FLAGS = -align 0x1000\r
100 CLANGPDB:*_*_*_DLINK_FLAGS = /ALIGN:4096\r
101 MSFT:*_*_*_DLINK_FLAGS = /ALIGN:4096\r
04af8bf2
DG
102\r
103################################################################################\r
104#\r
105# SKU Identification section - list of all SKU IDs supported by this Platform.\r
106#\r
107################################################################################\r
108[SkuIds]\r
109 0|DEFAULT\r
110\r
111################################################################################\r
112#\r
113# Library Class section - list of all Library Classes needed by this Platform.\r
114#\r
115################################################################################\r
08c65f7c
DB
116\r
117!include MdePkg/MdeLibs.dsc.inc\r
118\r
04af8bf2
DG
119[LibraryClasses]\r
120 #\r
121 # Entry point\r
122 #\r
04af8bf2
DG
123 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf\r
124 UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf\r
125 UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf\r
126\r
127 #\r
128 # Basic\r
129 #\r
130 BaseLib|MdePkg/Library/BaseLib/BaseLib.inf\r
131 BaseMemoryLib|MdePkg/Library/BaseMemoryLibRepStr/BaseMemoryLibRepStr.inf\r
132 SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf\r
133 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf\r
134 CpuLib|MdePkg/Library/BaseCpuLib/BaseCpuLib.inf\r
135 IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf\r
3900a63e 136!if $(PCIE_BASE_SUPPORT) == FALSE\r
04af8bf2
DG
137 PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf\r
138 PciCf8Lib|MdePkg/Library/BasePciCf8Lib/BasePciCf8Lib.inf\r
139!else\r
140 PciLib|MdePkg/Library/BasePciLibPciExpress/BasePciLibPciExpress.inf\r
141 PciExpressLib|MdePkg/Library/BasePciExpressLib/BasePciExpressLib.inf\r
142!endif\r
3900a63e
RN
143 PciSegmentLib|MdePkg/Library/PciSegmentLibSegmentInfo/BasePciSegmentLibSegmentInfo.inf\r
144 PciSegmentInfoLib|UefiPayloadPkg/Library/PciSegmentInfoLibAcpiBoardInfo/PciSegmentInfoLibAcpiBoardInfo.inf\r
04af8bf2
DG
145 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf\r
146 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf\r
147 CacheMaintenanceLib|MdePkg/Library/BaseCacheMaintenanceLib/BaseCacheMaintenanceLib.inf\r
6d95eff8 148 SafeIntLib|MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf\r
04af8bf2
DG
149\r
150 #\r
151 # UEFI & PI\r
152 #\r
153 UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf\r
154 UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf\r
155 UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf\r
156 UefiLib|MdePkg/Library/UefiLib/UefiLib.inf\r
157 UefiHiiServicesLib|MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf\r
158 HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf\r
159 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf\r
160 UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf\r
04af8bf2
DG
161 DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf\r
162 DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf\r
163 UefiCpuLib|UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib.inf\r
164 SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf\r
165\r
166 #\r
167 # Generic Modules\r
168 #\r
169 UefiUsbLib|MdePkg/Library/UefiUsbLib/UefiUsbLib.inf\r
170 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf\r
171 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf\r
172 CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf\r
173 SecurityManagementLib|MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib.inf\r
174 UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf\r
175 CustomizedDisplayLib|MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.inf\r
176 FrameBufferBltLib|MdeModulePkg/Library/FrameBufferBltLib/FrameBufferBltLib.inf\r
177\r
178 #\r
179 # CPU\r
180 #\r
181 MtrrLib|UefiCpuPkg/Library/MtrrLib/MtrrLib.inf\r
182 LocalApicLib|UefiCpuPkg/Library/BaseXApicX2ApicLib/BaseXApicX2ApicLib.inf\r
83c7f817 183 MicrocodeLib|UefiCpuPkg/Library/MicrocodeLib/MicrocodeLib.inf\r
04af8bf2
DG
184\r
185 #\r
186 # Platform\r
187 #\r
188 TimerLib|UefiPayloadPkg/Library/AcpiTimerLib/AcpiTimerLib.inf\r
189 ResetSystemLib|UefiPayloadPkg/Library/ResetSystemLib/ResetSystemLib.inf\r
190 SerialPortLib|MdeModulePkg/Library/BaseSerialPortLib16550/BaseSerialPortLib16550.inf\r
191 PlatformHookLib|UefiPayloadPkg/Library/PlatformHookLib/PlatformHookLib.inf\r
192 PlatformBootManagerLib|UefiPayloadPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf\r
193 IoApicLib|PcAtChipsetPkg/Library/BaseIoApicLib/BaseIoApicLib.inf\r
194\r
195 #\r
196 # Misc\r
197 #\r
198 DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf\r
199 PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf\r
200!if $(SOURCE_DEBUG_ENABLE) == TRUE\r
201 PeCoffExtraActionLib|SourceLevelDebugPkg/Library/PeCoffExtraActionLibDebug/PeCoffExtraActionLibDebug.inf\r
202 DebugCommunicationLib|SourceLevelDebugPkg/Library/DebugCommunicationLibSerialPort/DebugCommunicationLibSerialPort.inf\r
203!else\r
204 PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf\r
205 DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.inf\r
206!endif\r
207 PlatformSupportLib|UefiPayloadPkg/Library/PlatformSupportLibNull/PlatformSupportLibNull.inf\r
208!if $(BOOTLOADER) == "COREBOOT"\r
209 BlParseLib|UefiPayloadPkg/Library/CbParseLib/CbParseLib.inf\r
210!else\r
211 BlParseLib|UefiPayloadPkg/Library/SblParseLib/SblParseLib.inf\r
212!endif\r
213\r
214 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf\r
215 LockBoxLib|MdeModulePkg/Library/LockBoxNullLib/LockBoxNullLib.inf\r
216 FileExplorerLib|MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf\r
217 AuthVariableLib|MdeModulePkg/Library/AuthVariableLibNull/AuthVariableLibNull.inf\r
218 TpmMeasurementLib|MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNull.inf\r
219 VarCheckLib|MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf\r
d49fe0ca
BB
220 VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLib.inf\r
221 VariablePolicyHelperLib|MdeModulePkg/Library/VariablePolicyHelperLib/VariablePolicyHelperLib.inf\r
04af8bf2 222\r
7c4ab1c2
GD
223[LibraryClasses.common.SEC]\r
224 HobLib|UefiPayloadPkg/Library/HobLib/HobLib.inf\r
04af8bf2 225 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf\r
04af8bf2
DG
226\r
227[LibraryClasses.common.DXE_CORE]\r
228 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf\r
229 HobLib|MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf\r
230 MemoryAllocationLib|MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeCoreMemoryAllocationLib.inf\r
231 ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf\r
232 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf\r
233!if $(SOURCE_DEBUG_ENABLE)\r
234 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf\r
235!endif\r
236 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf\r
3a4a6ead 237 VmgExitLib|UefiCpuPkg/Library/VmgExitLibNull/VmgExitLibNull.inf\r
04af8bf2
DG
238\r
239[LibraryClasses.common.DXE_DRIVER]\r
240 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf\r
241 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf\r
242 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf\r
243 ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf\r
244 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf\r
245!if $(SOURCE_DEBUG_ENABLE)\r
246 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf\r
247!endif\r
248 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf\r
249 MpInitLib|UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf\r
3a4a6ead 250 VmgExitLib|UefiCpuPkg/Library/VmgExitLibNull/VmgExitLibNull.inf\r
04af8bf2
DG
251\r
252[LibraryClasses.common.DXE_RUNTIME_DRIVER]\r
253 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf\r
254 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf\r
255 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf\r
256 ReportStatusCodeLib|MdeModulePkg/Library/RuntimeDxeReportStatusCodeLib/RuntimeDxeReportStatusCodeLib.inf\r
d49fe0ca 257 VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLibRuntimeDxe.inf\r
04af8bf2
DG
258\r
259[LibraryClasses.common.UEFI_DRIVER,LibraryClasses.common.UEFI_APPLICATION]\r
260 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf\r
261 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf\r
262 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf\r
263 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf\r
264\r
265################################################################################\r
266#\r
267# Pcd Section - list of all EDK II PCD Entries defined by this Platform.\r
268#\r
269################################################################################\r
270[PcdsFeatureFlag]\r
04af8bf2
DG
271 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSwitchToLongMode|TRUE\r
272 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE\r
273 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE\r
274\r
275[PcdsFixedAtBuild]\r
276 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x10000\r
277 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxHardwareErrorVariableSize|0x8000\r
278 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x10000\r
279 #\r
280 # Make VariableRuntimeDxe work at emulated non-volatile variable mode.\r
281 #\r
282 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvModeEnable|TRUE\r
283\r
284 gEfiMdeModulePkgTokenSpaceGuid.PcdVpdBaseAddress|0x0\r
763e0f0a
MT
285!if $(TARGET) == DEBUG\r
286 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial|TRUE\r
287!else\r
288 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial|FALSE\r
289!endif\r
290 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseMemory|FALSE\r
04af8bf2
DG
291 gEfiMdeModulePkgTokenSpaceGuid.PcdUse1GPageTable|TRUE\r
292 gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }\r
293\r
04af8bf2
DG
294\r
295!if $(SOURCE_DEBUG_ENABLE)\r
296 gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdDebugLoadImageMethod|0x2\r
297!endif\r
298\r
299[PcdsPatchableInModule.common]\r
300 gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x7\r
301 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000004F\r
302!if $(SOURCE_DEBUG_ENABLE)\r
303 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x17\r
304!else\r
305 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2F\r
306!endif\r
307\r
308 #\r
309 # The following parameters are set by Library/PlatformHookLib\r
310 #\r
311 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialUseMmio|FALSE\r
317d84ab 312 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialRegisterBase|0\r
04af8bf2
DG
313 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialBaudRate|$(BAUD_RATE)\r
314 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialRegisterStride|1\r
315\r
316 #\r
317 # Enable these parameters to be set on the command line\r
318 #\r
319 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialClockRate|$(SERIAL_CLOCK_RATE)\r
320 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialLineControl|$(SERIAL_LINE_CONTROL)\r
321 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialUseHardwareFlowControl|$(SERIAL_HARDWARE_FLOW_CONTROL)\r
322 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialDetectCable|$(SERIAL_DETECT_CABLE)\r
323 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialFifoControl|$(SERIAL_FIFO_CONTROL)\r
324 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialExtendedTxFifoSize|$(SERIAL_EXTENDED_TX_FIFO_SIZE)\r
325\r
04af8bf2
DG
326 gEfiMdePkgTokenSpaceGuid.PcdUartDefaultBaudRate|$(UART_DEFAULT_BAUD_RATE)\r
327 gEfiMdePkgTokenSpaceGuid.PcdUartDefaultDataBits|$(UART_DEFAULT_DATA_BITS)\r
328 gEfiMdePkgTokenSpaceGuid.PcdUartDefaultParity|$(UART_DEFAULT_PARITY)\r
329 gEfiMdePkgTokenSpaceGuid.PcdUartDefaultStopBits|$(UART_DEFAULT_STOP_BITS)\r
330 gEfiMdePkgTokenSpaceGuid.PcdDefaultTerminalType|$(DEFAULT_TERMINAL_TYPE)\r
331 gEfiMdeModulePkgTokenSpaceGuid.PcdPciSerialParameters|$(PCI_SERIAL_PARAMETERS)\r
332\r
333 gUefiCpuPkgTokenSpaceGuid.PcdCpuMaxLogicalProcessorNumber|$(MAX_LOGICAL_PROCESSORS)\r
334\r
335\r
336################################################################################\r
337#\r
338# Pcd Dynamic Section - list of all EDK II PCD Entries defined by this Platform\r
339#\r
340################################################################################\r
341\r
342[PcdsDynamicDefault]\r
343 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved|0\r
344 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|0\r
345 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0\r
346 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0\r
347 gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|3\r
348\r
349 ## This PCD defines the video horizontal resolution.\r
350 # This PCD could be set to 0 then video resolution could be at highest resolution.\r
351 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|0\r
352 ## This PCD defines the video vertical resolution.\r
353 # This PCD could be set to 0 then video resolution could be at highest resolution.\r
354 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|0\r
355\r
356 ## The PCD is used to specify the video horizontal resolution of text setup.\r
357 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoHorizontalResolution|0\r
358 ## The PCD is used to specify the video vertical resolution of text setup.\r
359 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoVerticalResolution|0\r
360\r
361 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutRow|31\r
362 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutColumn|100\r
3900a63e 363 gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0\r
8028b290 364 gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseSize|0\r
99de2e7e 365 gEfiMdeModulePkgTokenSpaceGuid.PcdPciDisableBusEnumeration|TRUE\r
04af8bf2
DG
366\r
367################################################################################\r
368#\r
369# Components Section - list of all EDK II Modules needed by this Platform.\r
370#\r
371################################################################################\r
04af8bf2 372\r
7c4ab1c2
GD
373!if "IA32" in $(ARCH)\r
374 [Components.IA32]\r
375 UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.inf\r
376!else\r
377 [Components.X64]\r
378 UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.inf\r
379!endif\r
04af8bf2
DG
380\r
381[Components.X64]\r
382 #\r
383 # DXE Core\r
384 #\r
385 MdeModulePkg/Core/Dxe/DxeMain.inf {\r
386 <LibraryClasses>\r
387 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf\r
388 }\r
389\r
390 #\r
391 # Components that produce the architectural protocols\r
392 #\r
393 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf\r
394 UefiCpuPkg/CpuDxe/CpuDxe.inf\r
395 MdeModulePkg/Universal/BdsDxe/BdsDxe.inf\r
396 MdeModulePkg/Application/UiApp/UiApp.inf {\r
397 <LibraryClasses>\r
398 NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf\r
399 NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf\r
400 NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf\r
401 }\r
402\r
403 PcAtChipsetPkg/HpetTimerDxe/HpetTimerDxe.inf\r
404 MdeModulePkg/Universal/Metronome/Metronome.inf\r
405 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf\r
406 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf\r
407 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf\r
408 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf\r
409 MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf\r
410 PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf\r
411 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf\r
412\r
413 #\r
414 # Following are the DXE drivers\r
415 #\r
416 MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {\r
417 <LibraryClasses>\r
418 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf\r
419 }\r
420\r
421 MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf\r
422 MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf\r
423 UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf\r
424 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf\r
425 MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf\r
04af8bf2
DG
426 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf\r
427 MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf\r
428 MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf\r
429\r
430 UefiPayloadPkg/BlSupportDxe/BlSupportDxe.inf\r
431\r
432 #\r
433 # SMBIOS Support\r
434 #\r
435 MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf\r
436\r
437 #\r
438 # ACPI Support\r
439 #\r
440 MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf\r
441\r
442 #\r
443 # PCI Support\r
444 #\r
445 MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf\r
446 MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf {\r
447 <LibraryClasses>\r
448 PciHostBridgeLib|UefiPayloadPkg/Library/PciHostBridgeLib/PciHostBridgeLib.inf\r
449 }\r
450\r
451 #\r
452 # SCSI/ATA/IDE/DISK Support\r
453 #\r
454 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf\r
455 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf\r
456 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf\r
457 FatPkg/EnhancedFatDxe/Fat.inf\r
458 MdeModulePkg/Bus/Pci/SataControllerDxe/SataControllerDxe.inf\r
459 MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf\r
460 MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf\r
461 MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf\r
462 MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf\r
cf4cbe19 463 MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf\r
04af8bf2
DG
464\r
465 #\r
466 # SD/eMMC Support\r
467 #\r
468 MdeModulePkg/Bus/Pci/SdMmcPciHcDxe/SdMmcPciHcDxe.inf\r
469 MdeModulePkg/Bus/Sd/EmmcDxe/EmmcDxe.inf\r
470 MdeModulePkg/Bus/Sd/SdDxe/SdDxe.inf\r
471\r
472 #\r
473 # Usb Support\r
474 #\r
475 MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf\r
476 MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf\r
477 MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf\r
478 MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf\r
479 MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf\r
480 MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf\r
481\r
482 #\r
483 # ISA Support\r
484 #\r
485 MdeModulePkg/Universal/SerialDxe/SerialDxe.inf\r
33a32936
DG
486!if $(PS2_KEYBOARD_ENABLE) == TRUE\r
487 OvmfPkg/SioBusDxe/SioBusDxe.inf\r
488 MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KeyboardDxe.inf\r
489!endif\r
04af8bf2
DG
490\r
491 #\r
492 # Console Support\r
493 #\r
494 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf\r
495 MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf\r
496 MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf\r
d9a40845 497!if $(DISABLE_SERIAL_TERMINAL) == FALSE\r
04af8bf2 498 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf\r
d9a40845 499!endif\r
04af8bf2
DG
500 UefiPayloadPkg/GraphicsOutputDxe/GraphicsOutputDxe.inf\r
501\r
502 #------------------------------\r
503 # Build the shell\r
504 #------------------------------\r
505\r
506!if $(SHELL_TYPE) == BUILD_SHELL\r
507\r
508 #\r
509 # Shell Lib\r
510 #\r
511[LibraryClasses]\r
512 BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf\r
513 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf\r
514 FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf\r
515 ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf\r
005a5f2d 516 !include NetworkPkg/NetworkLibs.dsc.inc\r
04af8bf2
DG
517\r
518[Components.X64]\r
519 ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf {\r
520 <PcdsFixedAtBuild>\r
521 ## This flag is used to control initialization of the shell library\r
522 # This should be FALSE for compiling the dynamic command.\r
523 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE\r
524 }\r
525 ShellPkg/DynamicCommand/DpDynamicCommand/DpDynamicCommand.inf {\r
526 <PcdsFixedAtBuild>\r
527 ## This flag is used to control initialization of the shell library\r
528 # This should be FALSE for compiling the dynamic command.\r
529 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE\r
530 }\r
531 ShellPkg/Application/Shell/Shell.inf {\r
532 <PcdsFixedAtBuild>\r
533 ## This flag is used to control initialization of the shell library\r
534 # This should be FALSE for compiling the shell application itself only.\r
535 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE\r
536\r
537 #------------------------------\r
538 # Basic commands\r
539 #------------------------------\r
540\r
541 <LibraryClasses>\r
542 NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf\r
543 NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf\r
544 NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf\r
545 NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf\r
546 NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf\r
547 NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf\r
548\r
549 #------------------------------\r
550 # Networking commands\r
551 #------------------------------\r
552\r
553 <LibraryClasses>\r
554 NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf\r
555\r
556 #------------------------------\r
557 # Support libraries\r
558 #------------------------------\r
559\r
560 <LibraryClasses>\r
561 DebugLib|MdePkg/Library/UefiDebugLibConOut/UefiDebugLibConOut.inf\r
562 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf\r
563 HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf\r
ef03e726 564 OrderedCollectionLib|MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.inf\r
04af8bf2
DG
565 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf\r
566 ShellCEntryLib|ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.inf\r
567 ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf\r
568 SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf\r
569 }\r
570\r
571!endif\r