]> git.proxmox.com Git - mirror_edk2.git/blame - CorebootPayloadPkg/CorebootPayloadPkgIA32.dsc
CorebootPayloadPkg: Use extra braces to prevent gcc compile fail
[mirror_edk2.git] / CorebootPayloadPkg / CorebootPayloadPkgIA32.dsc
CommitLineData
9c228fb0
MM
1## @file\r
2# Coreboot Payload Package\r
3#\r
4# Provides drivers and definitions to create uefi payload for coreboot. \r
5#\r
6# Copyright (c) 2014, Intel Corporation. All rights reserved.<BR>\r
7# This program and the accompanying materials are licensed and made available under \r
8# the terms and conditions of the BSD License that accompanies this distribution. \r
9# The full text of the license may be found at\r
10# http://opensource.org/licenses/bsd-license.php. \r
11# \r
12# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
13# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
14#\r
15##\r
16\r
17################################################################################\r
18#\r
19# Defines Section - statements that will be processed to create a Makefile.\r
20#\r
21################################################################################\r
22[Defines]\r
23 PLATFORM_NAME = CorebootPayloadPkg\r
24 PLATFORM_GUID = F71608AB-D63D-4491-B744-A99998C8CD96\r
25 PLATFORM_VERSION = 0.1\r
26 DSC_SPECIFICATION = 0x00010005 \r
27 SUPPORTED_ARCHITECTURES = IA32|X64\r
28 BUILD_TARGETS = DEBUG|RELEASE\r
29 SKUID_IDENTIFIER = DEFAULT\r
30 OUTPUT_DIRECTORY = Build/CorebootPayloadPkg\r
31 FLASH_DEFINITION = CorebootPayloadPkg/CorebootPayloadPkg.fdf\r
32 \r
33 DEFINE SECURE_BOOT_ENABLE = FALSE\r
34 DEFINE SOURCE_DEBUG_ENABLE = FALSE\r
35 \r
36[BuildOptions]\r
37 GCC:*_UNIXGCC_*_CC_FLAGS = -DMDEPKG_NDEBUG\r
38 GCC:RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG\r
39 INTEL:RELEASE_*_*_CC_FLAGS = /D MDEPKG_NDEBUG\r
40 MSFT:RELEASE_*_*_CC_FLAGS = /D MDEPKG_NDEBUG\r
41\r
42################################################################################\r
43#\r
44# SKU Identification section - list of all SKU IDs supported by this Platform.\r
45#\r
46################################################################################\r
47[SkuIds]\r
48 0|DEFAULT\r
49\r
50################################################################################\r
51#\r
52# Library Class section - list of all Library Classes needed by this Platform.\r
53#\r
54################################################################################\r
55[LibraryClasses]\r
56 #\r
57 # Entry point\r
58 #\r
59 PeiCoreEntryPoint|MdePkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoint.inf\r
60 PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf\r
61 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf\r
62 UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf\r
63 UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf\r
64\r
65 #\r
66 # Basic\r
67 #\r
68 BaseLib|MdePkg/Library/BaseLib/BaseLib.inf \r
69 BaseMemoryLib|MdePkg/Library/BaseMemoryLibRepStr/BaseMemoryLibRepStr.inf\r
70 SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf\r
71 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf\r
72 CpuLib|MdePkg/Library/BaseCpuLib/BaseCpuLib.inf\r
73 IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf\r
74 PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf\r
75 PciCf8Lib|MdePkg/Library/BasePciCf8Lib/BasePciCf8Lib.inf\r
76 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf\r
77 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf\r
78 CacheMaintenanceLib|MdePkg/Library/BaseCacheMaintenanceLib/BaseCacheMaintenanceLib.inf\r
79 \r
80 #\r
81 # UEFI & PI\r
82 #\r
83 UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf\r
84 UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf\r
85 UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf\r
86 UefiLib|MdePkg/Library/UefiLib/UefiLib.inf\r
87 UefiHiiServicesLib|MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf\r
88 HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf\r
89 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf\r
90 UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf\r
91 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf\r
92 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf\r
93 DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf\r
94 DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf\r
95 UefiCpuLib|UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib.inf\r
96 \r
97 #\r
98 # Generic Modules\r
99 #\r
100 UefiUsbLib|MdePkg/Library/UefiUsbLib/UefiUsbLib.inf\r
101 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf\r
102 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf\r
103 CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf\r
104 SecurityManagementLib|MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib.inf\r
105 GenericBdsLib|IntelFrameworkModulePkg/Library/GenericBdsLib/GenericBdsLib.inf\r
106 CustomizedDisplayLib|MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.inf\r
107 \r
108 #\r
109 # CPU\r
110 #\r
111 MtrrLib|UefiCpuPkg/Library/MtrrLib/MtrrLib.inf\r
112 LocalApicLib|UefiCpuPkg/Library/BaseXApicLib/BaseXApicLib.inf \r
113 \r
114 #\r
115 # Platform\r
116 #\r
117 TimerLib|CorebootPayloadPkg/Library/AcpiTimerLib/AcpiTimerLib.inf\r
118 ResetSystemLib|CorebootPayloadPkg/Library/ResetSystemLib/ResetSystemLib.inf\r
119 SerialPortLib|CorebootPayloadPkg/Library/SerialPortLib/SerialPortLib.inf\r
120 PlatformBdsLib|CorebootPayloadPkg/Library/PlatformBdsLib/PlatformBdsLib.inf\r
121 \r
122 #\r
123 # Misc\r
124 #\r
125 DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf\r
126 PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf\r
127 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf\r
128!if $(SOURCE_DEBUG_ENABLE) == TRUE\r
129 PeCoffExtraActionLib|SourceLevelDebugPkg/Library/PeCoffExtraActionLibDebug/PeCoffExtraActionLibDebug.inf\r
130 DebugCommunicationLib|SourceLevelDebugPkg/Library/DebugCommunicationLibSerialPort/DebugCommunicationLibSerialPort.inf\r
131!else\r
132 PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf\r
133 DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.inf \r
134!endif\r
135 CbParseLib|CorebootModulePkg/Library/CbParseLib/CbParseLib.inf\r
136 DebugLib|IntelFrameworkModulePkg/Library/PeiDxeDebugLibReportStatusCode/PeiDxeDebugLibReportStatusCode.inf\r
137\r
138[LibraryClasses.IA32.SEC]\r
139 DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf\r
140 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf\r
141 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf\r
142 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf\r
143 DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.inf\r
144 ReportStatusCodeLib|MdePkg/Library/BaseReportStatusCodeLibNull/BaseReportStatusCodeLibNull.inf\r
145\r
146[LibraryClasses.IA32.PEI_CORE, LibraryClasses.IA32.PEIM]\r
147 PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf\r
148 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf\r
149 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf\r
150 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf\r
151 ExtractGuidedSectionLib|MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.inf\r
152!if $(SOURCE_DEBUG_ENABLE)\r
153 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf\r
154!endif\r
155\r
156[LibraryClasses.common.DXE_CORE]\r
157 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf\r
158 HobLib|MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf\r
159 MemoryAllocationLib|MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeCoreMemoryAllocationLib.inf\r
160 ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf\r
161 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf \r
162!if $(SOURCE_DEBUG_ENABLE)\r
163 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf\r
164!endif \r
165 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf\r
166\r
167[LibraryClasses.common.DXE_DRIVER] \r
168 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf\r
169 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf\r
170 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf\r
171 ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf\r
172 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf\r
173 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf\r
174 \r
175[LibraryClasses.common.DXE_RUNTIME_DRIVER]\r
176 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf\r
177 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf\r
178 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf\r
179 ReportStatusCodeLib|MdeModulePkg/Library/RuntimeDxeReportStatusCodeLib/RuntimeDxeReportStatusCodeLib.inf\r
180 \r
181[LibraryClasses.common.UEFI_DRIVER,LibraryClasses.common.UEFI_APPLICATION]\r
182 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf\r
183 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf\r
184 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf\r
185 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf \r
186 \r
187################################################################################\r
188#\r
189# Pcd Section - list of all EDK II PCD Entries defined by this Platform.\r
190#\r
191################################################################################\r
192[PcdsFeatureFlag]\r
193 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial|TRUE\r
194 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseMemory|FALSE\r
195 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSwitchToLongMode|FALSE\r
196 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE\r
197 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE\r
198\r
199[PcdsFixedAtBuild]\r
200 gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x7\r
201 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000004F\r
202!if $(SOURCE_DEBUG_ENABLE)\r
203 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x17\r
204!else\r
205 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2F\r
206!endif\r
207 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x10000\r
208 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxHardwareErrorVariableSize|0x8000\r
209 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x10000\r
210 \r
211 gEfiMdeModulePkgTokenSpaceGuid.PcdVpdBaseAddress|0x0 \r
212\r
213!if $(SOURCE_DEBUG_ENABLE)\r
214 gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdDebugLoadImageMethod|0x2\r
215!endif\r
216\r
217################################################################################\r
218#\r
219# Pcd Dynamic Section - list of all EDK II PCD Entries defined by this Platform\r
220#\r
221################################################################################\r
222\r
223[PcdsDynamicDefault]\r
224 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved|0\r
225 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|0\r
226 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0\r
227 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0\r
228\r
229\r
230################################################################################\r
231#\r
232# Components Section - list of all EDK II Modules needed by this Platform.\r
233#\r
234################################################################################\r
235[Components.IA32]\r
236 #\r
237 # SEC Core\r
238 #\r
239 CorebootModulePkg/SecCore/SecCore.inf\r
240 \r
241 #\r
242 # PEI Core\r
243 #\r
244 MdeModulePkg/Core/Pei/PeiMain.inf\r
245 \r
246 #\r
247 # PEIM\r
248 #\r
249 MdeModulePkg/Universal/PCD/Pei/Pcd.inf {\r
250 <LibraryClasses>\r
251 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf\r
252 }\r
253 IntelFrameworkModulePkg/Universal/StatusCode/Pei/StatusCodePei.inf\r
254 \r
255 CorebootModulePkg/CbSupportPei/CbSupportPei.inf \r
256 MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf\r
257\r
258[Components.IA32]\r
259 #\r
260 # DXE Core\r
261 #\r
262 MdeModulePkg/Core/Dxe/DxeMain.inf {\r
263 <LibraryClasses>\r
264 NULL|IntelFrameworkModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf\r
265 }\r
266 \r
267 #\r
268 # Components that produce the architectural protocols\r
269 #\r
270 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf\r
271 UefiCpuPkg/CpuDxe/CpuDxe.inf\r
272 IntelFrameworkModulePkg/Universal/BdsDxe/BdsDxe.inf\r
273 PcAtChipsetPkg/8254TimerDxe/8254Timer.inf\r
274 MdeModulePkg/Universal/Metronome/Metronome.inf\r
275 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf\r
276 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf\r
277 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf\r
278 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf\r
279 MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf \r
280 PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf \r
281 MdeModulePkg/Universal/Variable/EmuRuntimeDxe/EmuVariableRuntimeDxe.inf\r
282 \r
283 #\r
284 # Following are the DXE drivers \r
285 #\r
286 MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {\r
287 <LibraryClasses>\r
288 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf\r
289 }\r
290 \r
291 IntelFrameworkModulePkg/Universal/StatusCode/RuntimeDxe/StatusCodeRuntimeDxe.inf\r
292 UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf\r
293 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf\r
294 MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf\r
295 PcAtChipsetPkg/8259InterruptControllerDxe/8259.inf \r
296 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf\r
297 MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf \r
298 MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf\r
299 \r
300 CorebootModulePkg/CbSupportDxe/CbSupportDxe.inf \r
301 \r
302 #\r
303 # SMBIOS Support\r
304 #\r
305 MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf\r
306 \r
307 #\r
308 # ACPI Support\r
309 #\r
310 MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf \r
311 \r
312 #\r
313 # PCI Support\r
314 #\r
315 PcAtChipsetPkg/PciHostBridgeDxe/PciHostBridgeDxe.inf\r
316 DuetPkg/PciBusNoEnumerationDxe/PciBusNoEnumeration.inf \r
317 \r
318 #\r
319 # SCSI/ATA/IDE/DISK Support\r
320 #\r
321 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf\r
322 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf\r
323 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf\r
324 DuetPkg/SataControllerDxe/SataControllerDxe.inf \r
325 MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf\r
326 MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf \r
327 MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf\r
328 MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf\r
329 \r
330 #\r
331 # Usb Support\r
332 #\r
333 MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf\r
334 MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf\r
335 MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf\r
336 MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf\r
337 MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf\r
338 MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf\r
339 \r
340 #\r
341 # ISA Support\r
342 #\r
343 CorebootPayloadPkg/SerialDxe/SerialDxe.inf\r
344 \r
345 #\r
346 # Console Support\r
347 #\r
348 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf\r
349 MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf\r
350 MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf\r
351 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf\r
352 \r
353 \r
354 #\r
355 # Framebuffer Gop \r
356 #\r
357 CorebootPayloadPkg/FbGop/FbGop.inf\r
358 \r
359 \r
360