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