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