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