]> git.proxmox.com Git - mirror_edk2.git/blob - UefiPayloadPkg/UefiPayloadPkg.dsc
UefiPayloadPkg: Add PcdInstallAcpiSdtProtocol feature in UefiPayloadPkg
[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 gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }
311
312 gUefiPayloadPkgTokenSpaceGuid.PcdPcdDriverFile|{ 0x57, 0x72, 0xcf, 0x80, 0xab, 0x87, 0xf9, 0x47, 0xa3, 0xfe, 0xD5, 0x0B, 0x76, 0xd8, 0x95, 0x41 }
313
314 !if $(SOURCE_DEBUG_ENABLE)
315 gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdDebugLoadImageMethod|0x2
316 !endif
317
318 [PcdsPatchableInModule.common]
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.PcdEmuVariableNvStoreReserved|0
363 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|0
364 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0
365 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0
366 gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|3
367
368 ## This PCD defines the video horizontal resolution.
369 # This PCD could be set to 0 then video resolution could be at highest resolution.
370 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|0
371 ## This PCD defines the video vertical resolution.
372 # This PCD could be set to 0 then video resolution could be at highest resolution.
373 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|0
374
375 ## The PCD is used to specify the video horizontal resolution of text setup.
376 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoHorizontalResolution|0
377 ## The PCD is used to specify the video vertical resolution of text setup.
378 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoVerticalResolution|0
379
380 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutRow|31
381 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutColumn|100
382 gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0
383 gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseSize|0
384 gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbBase|0
385 gEfiMdeModulePkgTokenSpaceGuid.PcdTestKeyUsed|FALSE
386 gUefiCpuPkgTokenSpaceGuid.PcdSevEsIsEnabled|0
387 gEfiMdeModulePkgTokenSpaceGuid.PcdPciDisableBusEnumeration|TRUE
388
389 ################################################################################
390 #
391 # Components Section - list of all EDK II Modules needed by this Platform.
392 #
393 ################################################################################
394
395 !if "IA32" in $(ARCH)
396 [Components.IA32]
397 !if $(UNIVERSAL_PAYLOAD) == TRUE
398 UefiPayloadPkg/UefiPayloadEntry/UniversalPayloadEntry.inf
399 !else
400 UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.inf
401 !endif
402 !else
403 [Components.X64]
404 !if $(UNIVERSAL_PAYLOAD) == TRUE
405 UefiPayloadPkg/UefiPayloadEntry/UniversalPayloadEntry.inf
406 !else
407 UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.inf
408 !endif
409 !endif
410
411 [Components.X64]
412 #
413 # DXE Core
414 #
415 MdeModulePkg/Core/Dxe/DxeMain.inf {
416 <LibraryClasses>
417 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
418 }
419
420 #
421 # Components that produce the architectural protocols
422 #
423 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
424 UefiCpuPkg/CpuDxe/CpuDxe.inf
425 MdeModulePkg/Universal/BdsDxe/BdsDxe.inf
426 MdeModulePkg/Application/UiApp/UiApp.inf {
427 <LibraryClasses>
428 NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf
429 NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf
430 NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
431 }
432
433 PcAtChipsetPkg/HpetTimerDxe/HpetTimerDxe.inf
434 MdeModulePkg/Universal/Metronome/Metronome.inf
435 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
436 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
437 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
438 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
439 !if $(DISABLE_RESET_SYSTEM) == FALSE
440 MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
441 !endif
442 PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf
443 !if $(EMU_VARIABLE_ENABLE) == TRUE
444 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf
445 !endif
446 #
447 # Following are the DXE drivers
448 #
449 MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
450 <LibraryClasses>
451 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
452 }
453
454 MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf
455 MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf
456 UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf
457 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
458 MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf
459 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
460 MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
461 MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
462
463 UefiPayloadPkg/BlSupportDxe/BlSupportDxe.inf
464
465 #
466 # SMBIOS Support
467 #
468 MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf
469
470 #
471 # ACPI Support
472 #
473 MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
474
475 #
476 # PCI Support
477 #
478 MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf
479 MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf {
480 <LibraryClasses>
481 PciHostBridgeLib|UefiPayloadPkg/Library/PciHostBridgeLib/PciHostBridgeLib.inf
482 }
483
484 #
485 # SCSI/ATA/IDE/DISK Support
486 #
487 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
488 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
489 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
490 FatPkg/EnhancedFatDxe/Fat.inf
491 MdeModulePkg/Bus/Pci/SataControllerDxe/SataControllerDxe.inf
492 MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf
493 MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf
494 MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
495 MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
496 MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf
497
498 #
499 # SD/eMMC Support
500 #
501 MdeModulePkg/Bus/Pci/SdMmcPciHcDxe/SdMmcPciHcDxe.inf
502 MdeModulePkg/Bus/Sd/EmmcDxe/EmmcDxe.inf
503 MdeModulePkg/Bus/Sd/SdDxe/SdDxe.inf
504
505 #
506 # Usb Support
507 #
508 MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
509 MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
510 MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
511 MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
512 MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
513 MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
514
515 #
516 # ISA Support
517 #
518 MdeModulePkg/Universal/SerialDxe/SerialDxe.inf
519 !if $(PS2_KEYBOARD_ENABLE) == TRUE
520 OvmfPkg/SioBusDxe/SioBusDxe.inf
521 MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KeyboardDxe.inf
522 !endif
523
524 #
525 # Console Support
526 #
527 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
528 MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
529 MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
530 !if $(DISABLE_SERIAL_TERMINAL) == FALSE
531 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
532 !endif
533 UefiPayloadPkg/GraphicsOutputDxe/GraphicsOutputDxe.inf
534
535 #------------------------------
536 # Build the shell
537 #------------------------------
538
539 !if $(SHELL_TYPE) == BUILD_SHELL
540
541 #
542 # Shell Lib
543 #
544 [LibraryClasses]
545 BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf
546 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
547 FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
548 ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
549 !include NetworkPkg/NetworkLibs.dsc.inc
550
551 [Components.X64]
552 ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf {
553 <PcdsFixedAtBuild>
554 ## This flag is used to control initialization of the shell library
555 # This should be FALSE for compiling the dynamic command.
556 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
557 }
558 ShellPkg/DynamicCommand/DpDynamicCommand/DpDynamicCommand.inf {
559 <PcdsFixedAtBuild>
560 ## This flag is used to control initialization of the shell library
561 # This should be FALSE for compiling the dynamic command.
562 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
563 }
564 ShellPkg/Application/Shell/Shell.inf {
565 <PcdsFixedAtBuild>
566 ## This flag is used to control initialization of the shell library
567 # This should be FALSE for compiling the shell application itself only.
568 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
569
570 #------------------------------
571 # Basic commands
572 #------------------------------
573
574 <LibraryClasses>
575 NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf
576 NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
577 NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf
578 NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf
579 NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
580 NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
581
582 #------------------------------
583 # Networking commands
584 #------------------------------
585
586 <LibraryClasses>
587 NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf
588
589 #------------------------------
590 # Support libraries
591 #------------------------------
592
593 <LibraryClasses>
594 DebugLib|MdePkg/Library/UefiDebugLibConOut/UefiDebugLibConOut.inf
595 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
596 HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
597 OrderedCollectionLib|MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.inf
598 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
599 ShellCEntryLib|ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.inf
600 ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
601 SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf
602 }
603
604 !endif