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