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