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