]> git.proxmox.com Git - mirror_edk2.git/blob - UefiPayloadPkg/UefiPayloadPkg.dsc
UefiPayloadPkg: Consume MdeLibs.dsc.inc for RegisterFilterLib
[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
184 #
185 # Platform
186 #
187 TimerLib|UefiPayloadPkg/Library/AcpiTimerLib/AcpiTimerLib.inf
188 ResetSystemLib|UefiPayloadPkg/Library/ResetSystemLib/ResetSystemLib.inf
189 SerialPortLib|MdeModulePkg/Library/BaseSerialPortLib16550/BaseSerialPortLib16550.inf
190 PlatformHookLib|UefiPayloadPkg/Library/PlatformHookLib/PlatformHookLib.inf
191 PlatformBootManagerLib|UefiPayloadPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf
192 IoApicLib|PcAtChipsetPkg/Library/BaseIoApicLib/BaseIoApicLib.inf
193
194 #
195 # Misc
196 #
197 DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
198 PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf
199 !if $(SOURCE_DEBUG_ENABLE) == TRUE
200 PeCoffExtraActionLib|SourceLevelDebugPkg/Library/PeCoffExtraActionLibDebug/PeCoffExtraActionLibDebug.inf
201 DebugCommunicationLib|SourceLevelDebugPkg/Library/DebugCommunicationLibSerialPort/DebugCommunicationLibSerialPort.inf
202 !else
203 PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf
204 DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.inf
205 !endif
206 PlatformSupportLib|UefiPayloadPkg/Library/PlatformSupportLibNull/PlatformSupportLibNull.inf
207 !if $(BOOTLOADER) == "COREBOOT"
208 BlParseLib|UefiPayloadPkg/Library/CbParseLib/CbParseLib.inf
209 !else
210 BlParseLib|UefiPayloadPkg/Library/SblParseLib/SblParseLib.inf
211 !endif
212
213 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
214 LockBoxLib|MdeModulePkg/Library/LockBoxNullLib/LockBoxNullLib.inf
215 FileExplorerLib|MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf
216 AuthVariableLib|MdeModulePkg/Library/AuthVariableLibNull/AuthVariableLibNull.inf
217 TpmMeasurementLib|MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNull.inf
218 VarCheckLib|MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf
219 VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLib.inf
220 VariablePolicyHelperLib|MdeModulePkg/Library/VariablePolicyHelperLib/VariablePolicyHelperLib.inf
221
222 [LibraryClasses.common.SEC]
223 HobLib|UefiPayloadPkg/Library/HobLib/HobLib.inf
224 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
225
226 [LibraryClasses.common.DXE_CORE]
227 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
228 HobLib|MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf
229 MemoryAllocationLib|MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeCoreMemoryAllocationLib.inf
230 ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
231 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
232 !if $(SOURCE_DEBUG_ENABLE)
233 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
234 !endif
235 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
236 VmgExitLib|UefiCpuPkg/Library/VmgExitLibNull/VmgExitLibNull.inf
237
238 [LibraryClasses.common.DXE_DRIVER]
239 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
240 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
241 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
242 ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
243 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
244 !if $(SOURCE_DEBUG_ENABLE)
245 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
246 !endif
247 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
248 MpInitLib|UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf
249 VmgExitLib|UefiCpuPkg/Library/VmgExitLibNull/VmgExitLibNull.inf
250
251 [LibraryClasses.common.DXE_RUNTIME_DRIVER]
252 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
253 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
254 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
255 ReportStatusCodeLib|MdeModulePkg/Library/RuntimeDxeReportStatusCodeLib/RuntimeDxeReportStatusCodeLib.inf
256 VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLibRuntimeDxe.inf
257
258 [LibraryClasses.common.UEFI_DRIVER,LibraryClasses.common.UEFI_APPLICATION]
259 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
260 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
261 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
262 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
263
264 ################################################################################
265 #
266 # Pcd Section - list of all EDK II PCD Entries defined by this Platform.
267 #
268 ################################################################################
269 [PcdsFeatureFlag]
270 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSwitchToLongMode|TRUE
271 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE
272 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE
273
274 [PcdsFixedAtBuild]
275 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x10000
276 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxHardwareErrorVariableSize|0x8000
277 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x10000
278 #
279 # Make VariableRuntimeDxe work at emulated non-volatile variable mode.
280 #
281 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvModeEnable|TRUE
282
283 gEfiMdeModulePkgTokenSpaceGuid.PcdVpdBaseAddress|0x0
284 !if $(TARGET) == DEBUG
285 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial|TRUE
286 !else
287 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial|FALSE
288 !endif
289 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseMemory|FALSE
290 gEfiMdeModulePkgTokenSpaceGuid.PcdUse1GPageTable|TRUE
291 gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }
292
293
294 !if $(SOURCE_DEBUG_ENABLE)
295 gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdDebugLoadImageMethod|0x2
296 !endif
297
298 [PcdsPatchableInModule.common]
299 gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x7
300 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000004F
301 !if $(SOURCE_DEBUG_ENABLE)
302 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x17
303 !else
304 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2F
305 !endif
306
307 #
308 # The following parameters are set by Library/PlatformHookLib
309 #
310 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialUseMmio|FALSE
311 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialRegisterBase|0
312 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialBaudRate|$(BAUD_RATE)
313 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialRegisterStride|1
314
315 #
316 # Enable these parameters to be set on the command line
317 #
318 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialClockRate|$(SERIAL_CLOCK_RATE)
319 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialLineControl|$(SERIAL_LINE_CONTROL)
320 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialUseHardwareFlowControl|$(SERIAL_HARDWARE_FLOW_CONTROL)
321 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialDetectCable|$(SERIAL_DETECT_CABLE)
322 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialFifoControl|$(SERIAL_FIFO_CONTROL)
323 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialExtendedTxFifoSize|$(SERIAL_EXTENDED_TX_FIFO_SIZE)
324
325 gEfiMdeModulePkgTokenSpaceGuid.PcdPciDisableBusEnumeration|TRUE
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
366 ################################################################################
367 #
368 # Components Section - list of all EDK II Modules needed by this Platform.
369 #
370 ################################################################################
371
372 !if "IA32" in $(ARCH)
373 [Components.IA32]
374 UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.inf
375 !else
376 [Components.X64]
377 UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.inf
378 !endif
379
380 [Components.X64]
381 #
382 # DXE Core
383 #
384 MdeModulePkg/Core/Dxe/DxeMain.inf {
385 <LibraryClasses>
386 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
387 }
388
389 #
390 # Components that produce the architectural protocols
391 #
392 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
393 UefiCpuPkg/CpuDxe/CpuDxe.inf
394 MdeModulePkg/Universal/BdsDxe/BdsDxe.inf
395 MdeModulePkg/Application/UiApp/UiApp.inf {
396 <LibraryClasses>
397 NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf
398 NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf
399 NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
400 }
401
402 PcAtChipsetPkg/HpetTimerDxe/HpetTimerDxe.inf
403 MdeModulePkg/Universal/Metronome/Metronome.inf
404 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
405 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
406 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
407 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
408 MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
409 PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf
410 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf
411
412 #
413 # Following are the DXE drivers
414 #
415 MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
416 <LibraryClasses>
417 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
418 }
419
420 MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf
421 MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf
422 UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf
423 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
424 MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf
425 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
426 MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
427 MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
428
429 UefiPayloadPkg/BlSupportDxe/BlSupportDxe.inf
430
431 #
432 # SMBIOS Support
433 #
434 MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf
435
436 #
437 # ACPI Support
438 #
439 MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
440
441 #
442 # PCI Support
443 #
444 MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf
445 MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf {
446 <LibraryClasses>
447 PciHostBridgeLib|UefiPayloadPkg/Library/PciHostBridgeLib/PciHostBridgeLib.inf
448 }
449
450 #
451 # SCSI/ATA/IDE/DISK Support
452 #
453 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
454 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
455 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
456 FatPkg/EnhancedFatDxe/Fat.inf
457 MdeModulePkg/Bus/Pci/SataControllerDxe/SataControllerDxe.inf
458 MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf
459 MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf
460 MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
461 MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
462 MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf
463
464 #
465 # SD/eMMC Support
466 #
467 MdeModulePkg/Bus/Pci/SdMmcPciHcDxe/SdMmcPciHcDxe.inf
468 MdeModulePkg/Bus/Sd/EmmcDxe/EmmcDxe.inf
469 MdeModulePkg/Bus/Sd/SdDxe/SdDxe.inf
470
471 #
472 # Usb Support
473 #
474 MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
475 MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
476 MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
477 MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
478 MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
479 MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
480
481 #
482 # ISA Support
483 #
484 MdeModulePkg/Universal/SerialDxe/SerialDxe.inf
485 !if $(PS2_KEYBOARD_ENABLE) == TRUE
486 OvmfPkg/SioBusDxe/SioBusDxe.inf
487 MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KeyboardDxe.inf
488 !endif
489
490 #
491 # Console Support
492 #
493 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
494 MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
495 MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
496 !if $(DISABLE_SERIAL_TERMINAL) == FALSE
497 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
498 !endif
499 UefiPayloadPkg/GraphicsOutputDxe/GraphicsOutputDxe.inf
500
501 #------------------------------
502 # Build the shell
503 #------------------------------
504
505 !if $(SHELL_TYPE) == BUILD_SHELL
506
507 #
508 # Shell Lib
509 #
510 [LibraryClasses]
511 BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf
512 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
513 FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
514 ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
515 !include NetworkPkg/NetworkLibs.dsc.inc
516
517 [Components.X64]
518 ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf {
519 <PcdsFixedAtBuild>
520 ## This flag is used to control initialization of the shell library
521 # This should be FALSE for compiling the dynamic command.
522 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
523 }
524 ShellPkg/DynamicCommand/DpDynamicCommand/DpDynamicCommand.inf {
525 <PcdsFixedAtBuild>
526 ## This flag is used to control initialization of the shell library
527 # This should be FALSE for compiling the dynamic command.
528 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
529 }
530 ShellPkg/Application/Shell/Shell.inf {
531 <PcdsFixedAtBuild>
532 ## This flag is used to control initialization of the shell library
533 # This should be FALSE for compiling the shell application itself only.
534 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
535
536 #------------------------------
537 # Basic commands
538 #------------------------------
539
540 <LibraryClasses>
541 NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf
542 NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
543 NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf
544 NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf
545 NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
546 NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
547
548 #------------------------------
549 # Networking commands
550 #------------------------------
551
552 <LibraryClasses>
553 NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf
554
555 #------------------------------
556 # Support libraries
557 #------------------------------
558
559 <LibraryClasses>
560 DebugLib|MdePkg/Library/UefiDebugLibConOut/UefiDebugLibConOut.inf
561 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
562 HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
563 OrderedCollectionLib|MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.inf
564 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
565 ShellCEntryLib|ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.inf
566 ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
567 SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf
568 }
569
570 !endif