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