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