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