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