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