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