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