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