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