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