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