]> git.proxmox.com Git - mirror_edk2.git/blob - UefiPayloadPkg/UefiPayloadPkg.dsc
UefiPayloadPkg: Remove PEI phase from Payload
[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 - 2020, 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 [LibraryClasses]
117 #
118 # Entry point
119 #
120 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
121 UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
122 UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
123
124 #
125 # Basic
126 #
127 BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
128 BaseMemoryLib|MdePkg/Library/BaseMemoryLibRepStr/BaseMemoryLibRepStr.inf
129 SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
130 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
131 CpuLib|MdePkg/Library/BaseCpuLib/BaseCpuLib.inf
132 IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf
133 !if $(PCIE_BASE_SUPPORT) == FALSE
134 PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf
135 PciCf8Lib|MdePkg/Library/BasePciCf8Lib/BasePciCf8Lib.inf
136 !else
137 PciLib|MdePkg/Library/BasePciLibPciExpress/BasePciLibPciExpress.inf
138 PciExpressLib|MdePkg/Library/BasePciExpressLib/BasePciExpressLib.inf
139 !endif
140 PciSegmentLib|MdePkg/Library/PciSegmentLibSegmentInfo/BasePciSegmentLibSegmentInfo.inf
141 PciSegmentInfoLib|UefiPayloadPkg/Library/PciSegmentInfoLibAcpiBoardInfo/PciSegmentInfoLibAcpiBoardInfo.inf
142 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
143 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
144 CacheMaintenanceLib|MdePkg/Library/BaseCacheMaintenanceLib/BaseCacheMaintenanceLib.inf
145
146 #
147 # UEFI & PI
148 #
149 UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
150 UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
151 UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
152 UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
153 UefiHiiServicesLib|MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf
154 HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
155 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
156 UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf
157 DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
158 DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf
159 UefiCpuLib|UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib.inf
160 SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf
161
162 #
163 # Generic Modules
164 #
165 UefiUsbLib|MdePkg/Library/UefiUsbLib/UefiUsbLib.inf
166 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
167 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
168 CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
169 SecurityManagementLib|MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib.inf
170 UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf
171 CustomizedDisplayLib|MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.inf
172 FrameBufferBltLib|MdeModulePkg/Library/FrameBufferBltLib/FrameBufferBltLib.inf
173
174 #
175 # CPU
176 #
177 MtrrLib|UefiCpuPkg/Library/MtrrLib/MtrrLib.inf
178 LocalApicLib|UefiCpuPkg/Library/BaseXApicX2ApicLib/BaseXApicX2ApicLib.inf
179
180 #
181 # Platform
182 #
183 TimerLib|UefiPayloadPkg/Library/AcpiTimerLib/AcpiTimerLib.inf
184 ResetSystemLib|UefiPayloadPkg/Library/ResetSystemLib/ResetSystemLib.inf
185 SerialPortLib|MdeModulePkg/Library/BaseSerialPortLib16550/BaseSerialPortLib16550.inf
186 PlatformHookLib|UefiPayloadPkg/Library/PlatformHookLib/PlatformHookLib.inf
187 PlatformBootManagerLib|UefiPayloadPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf
188 IoApicLib|PcAtChipsetPkg/Library/BaseIoApicLib/BaseIoApicLib.inf
189
190 #
191 # Misc
192 #
193 DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
194 PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf
195 !if $(SOURCE_DEBUG_ENABLE) == TRUE
196 PeCoffExtraActionLib|SourceLevelDebugPkg/Library/PeCoffExtraActionLibDebug/PeCoffExtraActionLibDebug.inf
197 DebugCommunicationLib|SourceLevelDebugPkg/Library/DebugCommunicationLibSerialPort/DebugCommunicationLibSerialPort.inf
198 !else
199 PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf
200 DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.inf
201 !endif
202 PlatformSupportLib|UefiPayloadPkg/Library/PlatformSupportLibNull/PlatformSupportLibNull.inf
203 !if $(BOOTLOADER) == "COREBOOT"
204 BlParseLib|UefiPayloadPkg/Library/CbParseLib/CbParseLib.inf
205 !else
206 BlParseLib|UefiPayloadPkg/Library/SblParseLib/SblParseLib.inf
207 !endif
208
209 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
210 LockBoxLib|MdeModulePkg/Library/LockBoxNullLib/LockBoxNullLib.inf
211 FileExplorerLib|MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf
212 AuthVariableLib|MdeModulePkg/Library/AuthVariableLibNull/AuthVariableLibNull.inf
213 TpmMeasurementLib|MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNull.inf
214 VarCheckLib|MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf
215 VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLib.inf
216 VariablePolicyHelperLib|MdeModulePkg/Library/VariablePolicyHelperLib/VariablePolicyHelperLib.inf
217
218 [LibraryClasses.common.SEC]
219 HobLib|UefiPayloadPkg/Library/HobLib/HobLib.inf
220 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
221
222 [LibraryClasses.common.DXE_CORE]
223 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
224 HobLib|MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf
225 MemoryAllocationLib|MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeCoreMemoryAllocationLib.inf
226 ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
227 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
228 !if $(SOURCE_DEBUG_ENABLE)
229 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
230 !endif
231 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
232 VmgExitLib|UefiCpuPkg/Library/VmgExitLibNull/VmgExitLibNull.inf
233
234 [LibraryClasses.common.DXE_DRIVER]
235 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
236 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
237 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
238 ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
239 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
240 !if $(SOURCE_DEBUG_ENABLE)
241 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
242 !endif
243 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
244 MpInitLib|UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf
245 VmgExitLib|UefiCpuPkg/Library/VmgExitLibNull/VmgExitLibNull.inf
246
247 [LibraryClasses.common.DXE_RUNTIME_DRIVER]
248 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
249 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
250 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
251 ReportStatusCodeLib|MdeModulePkg/Library/RuntimeDxeReportStatusCodeLib/RuntimeDxeReportStatusCodeLib.inf
252 VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLibRuntimeDxe.inf
253
254 [LibraryClasses.common.UEFI_DRIVER,LibraryClasses.common.UEFI_APPLICATION]
255 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
256 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
257 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
258 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
259
260 ################################################################################
261 #
262 # Pcd Section - list of all EDK II PCD Entries defined by this Platform.
263 #
264 ################################################################################
265 [PcdsFeatureFlag]
266 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSwitchToLongMode|TRUE
267 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE
268 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE
269
270 [PcdsFixedAtBuild]
271 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x10000
272 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxHardwareErrorVariableSize|0x8000
273 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x10000
274 #
275 # Make VariableRuntimeDxe work at emulated non-volatile variable mode.
276 #
277 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvModeEnable|TRUE
278
279 gEfiMdeModulePkgTokenSpaceGuid.PcdVpdBaseAddress|0x0
280 !if $(TARGET) == DEBUG
281 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial|TRUE
282 !else
283 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial|FALSE
284 !endif
285 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseMemory|FALSE
286 gEfiMdeModulePkgTokenSpaceGuid.PcdUse1GPageTable|TRUE
287 gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }
288
289
290 !if $(SOURCE_DEBUG_ENABLE)
291 gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdDebugLoadImageMethod|0x2
292 !endif
293
294 [PcdsPatchableInModule.common]
295 gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x7
296 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000004F
297 !if $(SOURCE_DEBUG_ENABLE)
298 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x17
299 !else
300 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2F
301 !endif
302
303 #
304 # The following parameters are set by Library/PlatformHookLib
305 #
306 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialUseMmio|FALSE
307 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialRegisterBase|0
308 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialBaudRate|$(BAUD_RATE)
309 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialRegisterStride|1
310
311 #
312 # Enable these parameters to be set on the command line
313 #
314 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialClockRate|$(SERIAL_CLOCK_RATE)
315 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialLineControl|$(SERIAL_LINE_CONTROL)
316 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialUseHardwareFlowControl|$(SERIAL_HARDWARE_FLOW_CONTROL)
317 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialDetectCable|$(SERIAL_DETECT_CABLE)
318 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialFifoControl|$(SERIAL_FIFO_CONTROL)
319 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialExtendedTxFifoSize|$(SERIAL_EXTENDED_TX_FIFO_SIZE)
320
321 gEfiMdeModulePkgTokenSpaceGuid.PcdPciDisableBusEnumeration|TRUE
322 gEfiMdePkgTokenSpaceGuid.PcdUartDefaultBaudRate|$(UART_DEFAULT_BAUD_RATE)
323 gEfiMdePkgTokenSpaceGuid.PcdUartDefaultDataBits|$(UART_DEFAULT_DATA_BITS)
324 gEfiMdePkgTokenSpaceGuid.PcdUartDefaultParity|$(UART_DEFAULT_PARITY)
325 gEfiMdePkgTokenSpaceGuid.PcdUartDefaultStopBits|$(UART_DEFAULT_STOP_BITS)
326 gEfiMdePkgTokenSpaceGuid.PcdDefaultTerminalType|$(DEFAULT_TERMINAL_TYPE)
327 gEfiMdeModulePkgTokenSpaceGuid.PcdPciSerialParameters|$(PCI_SERIAL_PARAMETERS)
328
329 gUefiCpuPkgTokenSpaceGuid.PcdCpuMaxLogicalProcessorNumber|$(MAX_LOGICAL_PROCESSORS)
330
331
332 ################################################################################
333 #
334 # Pcd Dynamic Section - list of all EDK II PCD Entries defined by this Platform
335 #
336 ################################################################################
337
338 [PcdsDynamicDefault]
339 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved|0
340 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|0
341 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0
342 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0
343 gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|3
344
345 ## This PCD defines the video horizontal resolution.
346 # This PCD could be set to 0 then video resolution could be at highest resolution.
347 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|0
348 ## This PCD defines the video vertical resolution.
349 # This PCD could be set to 0 then video resolution could be at highest resolution.
350 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|0
351
352 ## The PCD is used to specify the video horizontal resolution of text setup.
353 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoHorizontalResolution|0
354 ## The PCD is used to specify the video vertical resolution of text setup.
355 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoVerticalResolution|0
356
357 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutRow|31
358 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutColumn|100
359 gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0
360 gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseSize|0
361
362 ################################################################################
363 #
364 # Components Section - list of all EDK II Modules needed by this Platform.
365 #
366 ################################################################################
367
368 !if "IA32" in $(ARCH)
369 [Components.IA32]
370 UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.inf
371 !else
372 [Components.X64]
373 UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.inf
374 !endif
375
376 [Components.X64]
377 #
378 # DXE Core
379 #
380 MdeModulePkg/Core/Dxe/DxeMain.inf {
381 <LibraryClasses>
382 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
383 }
384
385 #
386 # Components that produce the architectural protocols
387 #
388 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
389 UefiCpuPkg/CpuDxe/CpuDxe.inf
390 MdeModulePkg/Universal/BdsDxe/BdsDxe.inf
391 MdeModulePkg/Application/UiApp/UiApp.inf {
392 <LibraryClasses>
393 NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf
394 NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf
395 NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
396 }
397
398 PcAtChipsetPkg/HpetTimerDxe/HpetTimerDxe.inf
399 MdeModulePkg/Universal/Metronome/Metronome.inf
400 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
401 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
402 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
403 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
404 MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
405 PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf
406 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf
407
408 #
409 # Following are the DXE drivers
410 #
411 MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
412 <LibraryClasses>
413 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
414 }
415
416 MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf
417 MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf
418 UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf
419 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
420 MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf
421 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
422 MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
423 MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
424
425 UefiPayloadPkg/BlSupportDxe/BlSupportDxe.inf
426
427 #
428 # SMBIOS Support
429 #
430 MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf
431
432 #
433 # ACPI Support
434 #
435 MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
436
437 #
438 # PCI Support
439 #
440 MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf
441 MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf {
442 <LibraryClasses>
443 PciHostBridgeLib|UefiPayloadPkg/Library/PciHostBridgeLib/PciHostBridgeLib.inf
444 }
445
446 #
447 # SCSI/ATA/IDE/DISK Support
448 #
449 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
450 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
451 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
452 FatPkg/EnhancedFatDxe/Fat.inf
453 MdeModulePkg/Bus/Pci/SataControllerDxe/SataControllerDxe.inf
454 MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf
455 MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf
456 MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
457 MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
458
459 #
460 # SD/eMMC Support
461 #
462 MdeModulePkg/Bus/Pci/SdMmcPciHcDxe/SdMmcPciHcDxe.inf
463 MdeModulePkg/Bus/Sd/EmmcDxe/EmmcDxe.inf
464 MdeModulePkg/Bus/Sd/SdDxe/SdDxe.inf
465
466 #
467 # Usb Support
468 #
469 MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
470 MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
471 MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
472 MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
473 MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
474 MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
475
476 #
477 # ISA Support
478 #
479 MdeModulePkg/Universal/SerialDxe/SerialDxe.inf
480 !if $(PS2_KEYBOARD_ENABLE) == TRUE
481 OvmfPkg/SioBusDxe/SioBusDxe.inf
482 MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KeyboardDxe.inf
483 !endif
484
485 #
486 # Console Support
487 #
488 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
489 MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
490 MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
491 !if $(DISABLE_SERIAL_TERMINAL) == FALSE
492 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
493 !endif
494 UefiPayloadPkg/GraphicsOutputDxe/GraphicsOutputDxe.inf
495
496 #------------------------------
497 # Build the shell
498 #------------------------------
499
500 !if $(SHELL_TYPE) == BUILD_SHELL
501
502 #
503 # Shell Lib
504 #
505 [LibraryClasses]
506 BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf
507 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
508 FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
509 ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
510 !include NetworkPkg/NetworkLibs.dsc.inc
511
512 [Components.X64]
513 ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf {
514 <PcdsFixedAtBuild>
515 ## This flag is used to control initialization of the shell library
516 # This should be FALSE for compiling the dynamic command.
517 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
518 }
519 ShellPkg/DynamicCommand/DpDynamicCommand/DpDynamicCommand.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/Application/Shell/Shell.inf {
526 <PcdsFixedAtBuild>
527 ## This flag is used to control initialization of the shell library
528 # This should be FALSE for compiling the shell application itself only.
529 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
530
531 #------------------------------
532 # Basic commands
533 #------------------------------
534
535 <LibraryClasses>
536 NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf
537 NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
538 NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf
539 NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf
540 NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
541 NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
542
543 #------------------------------
544 # Networking commands
545 #------------------------------
546
547 <LibraryClasses>
548 NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf
549
550 #------------------------------
551 # Support libraries
552 #------------------------------
553
554 <LibraryClasses>
555 DebugLib|MdePkg/Library/UefiDebugLibConOut/UefiDebugLibConOut.inf
556 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
557 HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
558 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
559 ShellCEntryLib|ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.inf
560 ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
561 SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf
562 }
563
564 !endif