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