VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/Firmware/IntelFsp2Pkg/Tools/Tests/QemuFspPkg.dsc@ 107064

Last change on this file since 107064 was 101291, checked in by vboxsync, 17 months ago

EFI/FirmwareNew: Make edk2-stable202308 build on all supported platforms (using gcc at least, msvc not tested yet), bugref:4643

  • Property svn:eol-style set to native
File size: 21.4 KB
Line 
1## @file
2# FSP DSC build file for QEMU platform
3#
4# Copyright (c) 2017 - 2021, Intel Corporation. All rights reserved.<BR>
5#
6# This program and the accompanying materials
7# are licensed and made available under the terms and conditions of the BSD License
8# which accompanies this distribution. The full text of the license may be found at
9# http://opensource.org/licenses/bsd-license.php
10#
11# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
13#
14##
15
16################################################################################
17#
18# Defines Section - statements that will be processed to create a Makefile.
19#
20################################################################################
21[Defines]
22 PLATFORM_NAME = QemuFspPkg
23 PLATFORM_GUID = 1BEDB57A-7904-406e-8486-C89FC7FB39EE
24 PLATFORM_VERSION = 0.1
25 DSC_SPECIFICATION = 0x00010005
26 OUTPUT_DIRECTORY = Build/QemuFspPkg
27 SUPPORTED_ARCHITECTURES = IA32|X64
28 BUILD_TARGETS = DEBUG|RELEASE
29 SKUID_IDENTIFIER = DEFAULT
30 FLASH_DEFINITION = QemuFspPkg/QemuFspPkg.fdf
31
32 #
33 # UPD tool definition
34 #
35 FSP_T_UPD_TOOL_GUID = 34686CA3-34F9-4901-B82A-BA630F0714C6
36 FSP_V_UPD_TOOL_GUID = 4E2F4725-734A-4399-BAF5-B4E16348EB2F
37 FSP_M_UPD_TOOL_GUID = 39A250DB-E465-4DD1-A2AC-E2BD3C0E2385
38 FSP_S_UPD_TOOL_GUID = CAE3605B-5B34-4C85-B3D7-27D54273C40F
39 FSP_T_UPD_FFS_GUID = 70BCF6A5-FFB1-47D8-B1AE-EFE5508E23EA
40 FSP_V_UPD_FFS_GUID = 0197EF5E-2FFC-4089-8E55-F70400B18146
41 FSP_M_UPD_FFS_GUID = D5B86AEA-6AF7-40D4-8014-982301BC3D89
42 FSP_S_UPD_FFS_GUID = E3CD9B18-998C-4F76-B65E-98B154E5446F
43
44 #
45 # Set platform specific package/folder name, same as passed from PREBUILD script.
46 # PLATFORM_PACKAGE would be the same as PLATFORM_NAME as well as package build folder
47 # DEFINE only takes effect at R9 DSC and FDF.
48 #
49 DEFINE FSP_PACKAGE = QemuFspPkg
50 DEFINE FSP_IMAGE_ID = 0x245053464D455124 # $QEMFSP$
51 DEFINE FSP_IMAGE_REV = 0x00001010
52
53 DEFINE CAR_BASE_ADDRESS = 0x00000000
54 DEFINE CAR_REGION_SIZE = 0x00080000
55 DEFINE CAR_BLD_REGION_SIZE = 0x00070000
56 DEFINE CAR_FSP_REGION_SIZE = 0x00010000
57
58 DEFINE FSP_ARCH = X64
59
60################################################################################
61#
62# SKU Identification section - list of all SKU IDs supported by this
63# Platform.
64#
65################################################################################
66[SkuIds]
67 0|DEFAULT # The entry: 0|DEFAULT is reserved and always required.
68
69################################################################################
70#
71# Library Class section - list of all Library Classes needed by this Platform.
72#
73################################################################################
74
75!include MdePkg/MdeLibs.dsc.inc
76
77[LibraryClasses]
78 PeiCoreEntryPoint|MdePkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoint.inf
79 PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf
80 DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
81 BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
82 IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf
83 PciLib|MdePkg/Library/BasePciLibPciExpress/BasePciLibPciExpress.inf
84 PciCf8Lib|MdePkg/Library/BasePciCf8Lib/BasePciCf8Lib.inf
85 PciExpressLib|MdePkg/Library/BasePciExpressLib/BasePciExpressLib.inf
86 BaseMemoryLib|MdePkg/Library/BaseMemoryLibRepStr/BaseMemoryLibRepStr.inf
87 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
88 PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
89 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
90 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
91 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
92 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
93 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
94 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
95 CacheMaintenanceLib|MdePkg/Library/BaseCacheMaintenanceLib/BaseCacheMaintenanceLib.inf
96 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
97 PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf
98 UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf
99 SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
100 CpuLib|MdePkg/Library/BaseCpuLib/BaseCpuLib.inf
101 ExtractGuidedSectionLib|MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.inf
102 CacheLib|IntelFsp2Pkg/Library/BaseCacheLib/BaseCacheLib.inf
103 CacheAsRamLib|IntelFsp2Pkg/Library/BaseCacheAsRamLibNull/BaseCacheAsRamLibNull.inf
104 FspSwitchStackLib|IntelFsp2Pkg/Library/BaseFspSwitchStackLib/BaseFspSwitchStackLib.inf
105 FspCommonLib|IntelFsp2Pkg/Library/BaseFspCommonLib/BaseFspCommonLib.inf
106 FspPlatformLib|IntelFsp2Pkg/Library/BaseFspPlatformLib/BaseFspPlatformLib.inf
107 PlatformHookLib|MdeModulePkg/Library/BasePlatformHookLibNull/BasePlatformHookLibNull.inf
108 PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf
109 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
110!if $(TARGET) == DEBUG
111 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
112 SerialPortLib|MdeModulePkg/Library/BaseSerialPortLib16550/BaseSerialPortLib16550.inf
113!else
114 DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
115 SerialPortLib|MdePkg/Library/BaseSerialPortLibNull/BaseSerialPortLibNull.inf
116!endif
117
118
119################################################################################
120#
121# Pcd Section - list of all EDK II PCD Entries defined by this Platform
122#
123################################################################################
124[PcdsFixedAtBuild]
125 gEfiMdeModulePkgTokenSpaceGuid.PcdShadowPeimOnS3Boot | TRUE
126 gQemuFspPkgTokenSpaceGuid.PcdFspHeaderRevision | 0x03
127 gQemuFspPkgTokenSpaceGuid.PcdFspImageIdString | $(FSP_IMAGE_ID)
128 gQemuFspPkgTokenSpaceGuid.PcdFspImageRevision | $(FSP_IMAGE_REV)
129 #
130 # FSP CAR Usages (BL RAM | FSP RAM | FSP CODE)
131 #
132 gIntelFsp2PkgTokenSpaceGuid.PcdTemporaryRamBase | $(CAR_BASE_ADDRESS)
133 gIntelFsp2PkgTokenSpaceGuid.PcdTemporaryRamSize | $(CAR_REGION_SIZE)
134 gIntelFsp2PkgTokenSpaceGuid.PcdFspTemporaryRamSize | $(CAR_FSP_REGION_SIZE)
135 gIntelFsp2PkgTokenSpaceGuid.PcdFspReservedBufferSize | 0x0100
136
137 # This defines how much space will be used for heap in FSP temporary memory
138 # x % of FSP temporary memory will be used for heap
139 # (100 - x) % of FSP temporary memory will be used for stack
140 gIntelFsp2PkgTokenSpaceGuid.PcdFspHeapSizePercentage | 65
141
142 # This is a platform specific global pointer used by FSP
143 gIntelFsp2PkgTokenSpaceGuid.PcdGlobalDataPointerAddress | 0xFED00148
144 gIntelFsp2PkgTokenSpaceGuid.PcdFspReservedMemoryLength | 0x00100000
145
146!if $(TARGET) == RELEASE
147 gEfiMdePkgTokenSpaceGuid.PcdFixedDebugPrintErrorLevel | 0x00000000
148 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask | 0
149!else
150 gEfiMdePkgTokenSpaceGuid.PcdFixedDebugPrintErrorLevel | 0x80000047
151 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask | 0x27
152!endif
153
154[PcdsPatchableInModule]
155 gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress | 0xE0000000
156 #
157 # This entry will be patched during the build process
158 #
159 gEfiMdeModulePkgTokenSpaceGuid.PcdVpdBaseAddress | 0x12345678
160
161!if $(TARGET) == RELEASE
162 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel | 0
163!else
164 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel | 0x80000047
165!endif
166
167[PcdsDynamicVpd.Upd]
168 #
169 # This section is not used by the normal build process
170 # However, FSP will use dedicated tool to handle it and generate a
171 # VPD similar binary block (User Configuration Data). This block will
172 # be accessed through a generated data structure directly rather than
173 # PCD services. This is for size consideration.
174 # Format:
175 # gQemuFspPkgTokenSpaceGuid.Updxxxxxxxxxxxxn | OFFSET | LENGTH | VALUE
176 # Only simple data type is supported
177 #
178
179 #
180 # Comments with !BSF will be used to generate BSF file
181 # Comments with !HDR will be used to generate H header file
182 #
183
184 # Global definitions in BSF
185 # !BSF PAGES:{TMP:"FSP T", MEM:"FSP MemoryInit Settings", SIL:"FSP SiliconInit Settings"}
186 # !BSF BLOCK:{NAME:"QEMU Platform", VER:"0.1"}
187
188 # !BSF FIND:{QEMUPD_T}
189 # !HDR COMMENT:{FSP_UPD_HEADER:FSP UPD Header}
190 # !HDR EMBED:{FSP_UPD_HEADER:FspUpdHeader:START}
191 # FsptUpdSignature: {QEMUPD_T}
192 gQemuFspPkgTokenSpaceGuid.Signature | * | 0x08 | 0x545F4450554D4551
193 # !BSF NAME:{FsptUpdRevision}
194 gQemuFspPkgTokenSpaceGuid.Revision | * | 0x01 | 0x01
195 # !HDR EMBED:{FSP_UPD_HEADER:FspUpdHeader:END}
196 gQemuFspPkgTokenSpaceGuid.Reserved | * | 0x17 | {0x00}
197
198 # !HDR COMMENT:{FSPT_ARCH_UPD:FSPT_ARCH_UPD}
199 # !HDR EMBED:{FSPT_ARCH_UPD:FsptArchUpd:START}
200 gQemuFspPkgTokenSpaceGuid.Revision | * | 0x01 | 0x01
201 gQemuFspPkgTokenSpaceGuid.Reserved | * | 0x03 | {0x00}
202 gQemuFspPkgTokenSpaceGuid.Length | * | 0x04 | 0x00000020
203 gQemuFspPkgTokenSpaceGuid.FspDebugHandler | * | 0x04 | 0x00000000
204 # !HDR EMBED:{FSPT_ARCH_UPD:FsptArchUpd:END}
205 gQemuFspPkgTokenSpaceGuid.Reserved1 | * | 0x14 | {0x00}
206
207 # !HDR COMMENT:{FSPT_COMMON_UPD:Fsp T Common UPD}
208 # !HDR EMBED:{FSPT_COMMON_UPD:FsptCommonUpd:START}
209 gQemuFspPkgTokenSpaceGuid.Revision | * | 0x01 | 0x01
210 gQemuFspPkgTokenSpaceGuid.Reserved | * | 0x03 | {0x00}
211
212 # Base address of the microcode region.
213 gQemuFspPkgTokenSpaceGuid.MicrocodeRegionBase | * | 0x04 | 0x00000000
214
215 # Length of the microcode region.
216 gQemuFspPkgTokenSpaceGuid.MicrocodeRegionLength | * | 0x04 | 0x00000000
217
218 # Base address of the cacheable flash region.
219 gQemuFspPkgTokenSpaceGuid.CodeRegionBase | * | 0x04 | 0x00000000
220
221 # Length of the cacheable flash region.
222 gQemuFspPkgTokenSpaceGuid.CodeRegionLength | * | 0x04 | 0x00000000
223
224 # !HDR EMBED:{FSPT_COMMON_UPD:FsptCommonUpd:END}
225 gQemuFspPkgTokenSpaceGuid.Reserved1 | * | 0x0C | {0x00}
226
227 # !HDR COMMENT:{FSP_T_CONFIG:Fsp T Configuration}
228 # !HDR EMBED:{FSP_T_CONFIG:FsptConfig:START}
229 # !BSF PAGE:{TMP}
230 # !BSF NAME:{Chicken bytes to test Hex config}
231 # !BSF TYPE:{EditNum, HEX, (0x00000000,0xFFFFFFFF)}
232 # !BSF HELP:{This option shows how to present option for 4 bytes data}
233 gQemuFspPkgTokenSpaceGuid.ChickenBytes | * | 0x04 | 0x00000000
234
235 # !HDR EMBED:{FSP_T_CONFIG:FsptConfig:END}
236 gQemuFspPkgTokenSpaceGuid.ReservedFsptUpd1 | * | 0x1C | {0x00}
237
238 # Note please keep "UpdTerminator" at the end of each UPD region.
239 # The tool will use this field to determine the actual end of the UPD data
240 # structure.
241 gQemuFspPkgTokenSpaceGuid.UpdTerminator | * | 0x02 | 0x55AA
242
243 ################################################################################
244 #
245 # UPDs consumed in FspMemoryInit Api
246 #
247 ################################################################################
248 # !BSF FIND:{QEMUPD_M}
249 # !HDR COMMENT:{FSP_UPD_HEADER:FSP UPD Header}
250 # !HDR EMBED:{FSP_UPD_HEADER:FspUpdHeader:START}
251 # FspmUpdSignature: {QEMUPD_M}
252 gQemuFspPkgTokenSpaceGuid.Signature | * | 0x08 | 0x4D5F4450554D4551
253 # !BSF NAME:{FspmUpdRevision}
254 gQemuFspPkgTokenSpaceGuid.Revision | * | 0x01 | 0x01
255 # !HDR EMBED:{FSP_UPD_HEADER:FspUpdHeader:END}
256 gQemuFspPkgTokenSpaceGuid.Reserved | * | 0x17 | {0x00}
257
258 # !HDR COMMENT:{FSPM_ARCH_UPD:Fsp M Architectural UPD}
259 # !HDR EMBED:{FSPM_ARCH_UPD:FspmArchUpd:START}
260
261 gQemuFspPkgTokenSpaceGuid.Revision | * | 0x01 | 0x01
262
263 gQemuFspPkgTokenSpaceGuid.Reserved | * | 0x03 | {0x00}
264
265 # !HDR STRUCT:{VOID*}
266 gQemuFspPkgTokenSpaceGuid.NvsBufferPtr | * | 0x04 | 0x00000000
267
268 # !HDR STRUCT:{VOID*}
269 # !BSF NAME:{StackBase}
270 # !BSF HELP:{Stack base for FSP use. Default: 0xFEF16000}
271 gQemuFspPkgTokenSpaceGuid.StackBase | * | 0x04 | $(CAR_BLD_REGION_SIZE)
272
273 # !BSF NAME:{StackSize}
274 # !BSF HELP:{To pass the stack size for FSP use. Bootloader can programmatically get the FSP requested StackSize by using the defaults in the FSP-M component. This is the minimum stack size expected by this revision of FSP. Default: 0x2A000}
275 gQemuFspPkgTokenSpaceGuid.StackSize | * | 0x04 | $(CAR_FSP_REGION_SIZE)
276
277 # !BSF NAME:{BootLoaderTolumSize}
278 # !BSF HELP:{To pass Bootloader Tolum size.}
279 gQemuFspPkgTokenSpaceGuid.BootLoaderTolumSize | * | 0x04 | 0x00000000
280
281 # !BSF NAME:{Bootmode}
282 # !BSF HELP:{To maintain Bootmode details.}
283 gPlatformFspPkgTokenSpaceGuid.Bootmode | * | 0x04 | 0x00000000
284
285 # !HDR EMBED:{FSPM_ARCH_UPD:FspmArchUpd:END}
286 gQemuFspPkgTokenSpaceGuid.Reserved1 | * | 0x08 | {0x00}
287
288 # !HDR COMMENT:{FSP_M_CONFIG:Fsp M Configuration}
289 # !HDR EMBED:{FSP_M_CONFIG:FspmConfig:START}
290 # !BSF PAGE:{MEM}
291 # !BSF NAME:{Debug Serial Port Base address}
292 # !BSF TYPE:{EditNum, HEX, (0x00000000,0xFFFFFFFF)}
293 # !BSF HELP:{Debug serial port base address. This option will be used only when the 'Serial Port Debug Device'}
294 # !BSF HELP:{+ option is set to 'External Device'. 0x00000000(Default).}
295 gQemuFspPkgTokenSpaceGuid.SerialDebugPortAddress | * | 0x04 | 0x00000000
296
297 # !BSF NAME:{Debug Serial Port Type} TYPE:{Combo}
298 # !BSF OPTION:{0:NONE, 1:I/O, 2:MMIO}
299 # !BSF HELP:{16550 compatible debug serial port resource type. NONE means no serial port support. 0x02:MMIO(Default).}
300 gQemuFspPkgTokenSpaceGuid.SerialDebugPortType | * | 0x01 | 0x02
301
302 # !BSF NAME:{Serial Port Debug Device} TYPE:{Combo}
303 # !BSF OPTION:{0:SOC UART0, 1:SOC UART1, 2:SOC UART2, 3:External Device}
304 # !BSF HELP:{Select active serial port device for debug.}
305 # !BSF HELP:{+For SOC UART devices,'Debug Serial Port Base' options will be ignored. 0x02:SOC UART2(Default).}
306 gQemuFspPkgTokenSpaceGuid.SerialDebugPortDevice | * | 0x01 | 0x02
307
308 # !BSF NAME:{Debug Serial Port Stride Size} TYPE:{Combo}
309 # !BSF OPTION:{0:1, 2:4}
310 # !BSF HELP:{Debug serial port register map stride size in bytes. 0x00:1, 0x02:4(Default).}
311 gQemuFspPkgTokenSpaceGuid.SerialDebugPortStrideSize | * | 0x01 | 0x02
312
313
314 # !HDR EMBED:{FSP_M_CONFIG:FspmConfig:END}
315 gQemuFspPkgTokenSpaceGuid.ReservedFspmUpd | * | 0x04 | {0x00}
316
317
318 # Note please keep "UpdTerminator" at the end of each UPD region.
319 # The tool will use this field to determine the actual end of the UPD data
320 # structure.
321 gQemuFspPkgTokenSpaceGuid.UpdTerminator | * | 0x02 | 0x55AA
322
323 ################################################################################
324 #
325 # UPDs consumed in FspSiliconInit Api
326 #
327 ################################################################################
328 # !BSF FIND:{QEMUPD_S}
329 # !HDR COMMENT:{FSP_UPD_HEADER:FSP UPD Header}
330 # !HDR EMBED:{FSP_UPD_HEADER:FspUpdHeader:START}
331 # FspsUpdSignature: {QEMUPD_S}
332 gQemuFspPkgTokenSpaceGuid.Signature | * | 0x08 | 0x535F4450554D4551
333 # !BSF NAME:{FspsUpdRevision}
334 gQemuFspPkgTokenSpaceGuid.Revision | * | 0x01 | 0x01
335 # !HDR EMBED:{FSP_UPD_HEADER:FspUpdHeader:END}
336 gQemuFspPkgTokenSpaceGuid.Reserved | * | 0x17 | {0x00}
337
338 # !HDR COMMENT:{FSPS_ARCH_UPD:FSPS_ARCH_UPD}
339 # !HDR EMBED:{FSPS_ARCH_UPD:FspsArchUpd:START}
340 gQemuFspPkgTokenSpaceGuid.Revision | * | 0x01 | 0x01
341 gQemuFspPkgTokenSpaceGuid.Reserved | * | 0x03 | {0x00}
342 gQemuFspPkgTokenSpaceGuid.Length | * | 0x04 | 0x00000020
343 gQemuFspPkgTokenSpaceGuid.FspEventHandler | * | 0x04 | 0x00000000
344 gQemuFspPkgTokenSpaceGuid.EnableMultiPhaseSiliconInit | * | 0x01 | 0x00
345 # !HDR EMBED:{FSPS_ARCH_UPD:FspsArchUpd:END}
346 gQemuFspPkgTokenSpaceGuid.Reserved1 | * | 0x13 | {0x00}
347
348 # !HDR COMMENT:{FSP_S_CONFIG:Fsp S Configuration}
349 # !HDR EMBED:{FSP_S_CONFIG:FspsConfig:START}
350 # !BSF PAGE:{SIL}
351
352 # !BSF NAME:{BMP Logo Data Size}
353 # !BSF TYPE:{Reserved}
354 # !BSF HELP:{BMP logo data buffer size. 0x00000000(Default).}
355 gQemuFspPkgTokenSpaceGuid.LogoSize | * | 0x04 | 0x00000000
356
357 # !BSF NAME:{BMP Logo Data Pointer}
358 # !BSF TYPE:{Reserved}
359 # !BSF HELP:{BMP logo data pointer to a BMP format buffer. 0x00000000(Default).}
360 gQemuFspPkgTokenSpaceGuid.LogoPtr | * | 0x04 | 0x00000000
361
362 # !BSF NAME:{Graphics Configuration Data Pointer}
363 # !BSF TYPE:{Reserved}
364 # !BSF HELP:{Graphics configuration data used for initialization. 0x00000000(Default).}
365 gQemuFspPkgTokenSpaceGuid.GraphicsConfigPtr | * | 0x04 | 0x00000000
366
367 # !BSF NAME:{PCI GFX Temporary MMIO Base}
368 # !BSF TYPE:{EditNum, HEX, (0x80000000,0xDFFFFFFF)}
369 # !BSF HELP:{PCI Temporary PCI GFX Base used before full PCI enumeration. 0x80000000(Default).}
370 gQemuFspPkgTokenSpaceGuid.PciTempResourceBase | * | 0x04 | 0x80000000
371
372 # !HDR EMBED:{FSP_S_CONFIG:FspsConfig:END}
373 gQemuFspPkgTokenSpaceGuid.ReservedFspsUpd | * | 0x01 | 0x00
374
375 # Note please keep "UpdTerminator" at the end of each UPD region.
376 # The tool will use this field to determine the actual end of the UPD data
377 # structure.
378 gQemuFspPkgTokenSpaceGuid.UpdTerminator | * | 0x02 | 0x55AA
379
380###################################################################################################
381#
382# Components Section - list of the modules and components that will be processed by compilation
383# tools and the EDK II tools to generate PE32/PE32+/Coff image files.
384#
385# Note: The EDK II DSC file is not used to specify how compiled binary images get placed
386# into firmware volume images. This section is just a list of modules to compile from
387# source into UEFI-compliant binaries.
388# It is the FDF file that contains information on combining binary files into firmware
389# volume images, whose concept is beyond UEFI and is described in PI specification.
390# Binary modules do not need to be listed in this section, as they should be
391# specified in the FDF file. For example: Shell binary (Shell_Full.efi), FAT binary (Fat.efi),
392# Logo (Logo.bmp), and etc.
393# There may also be modules listed in this section that are not required in the FDF file,
394# When a module listed here is excluded from FDF file, then UEFI-compliant binary will be
395# generated for it, but the binary will not be put into any firmware volume.
396#
397###################################################################################################
398[Components.IA32]
399 #
400 # FSP Binary Components
401 #
402 $(FSP_PACKAGE)/FspHeader/FspHeader.inf
403
404 #
405 # SEC
406 #
407 IntelFsp2Pkg/FspSecCore/FspSecCoreT.inf {
408 <LibraryClasses>
409 FspSecPlatformLib|$(FSP_PACKAGE)/Library/PlatformSecLib/Vtf0PlatformSecTLib.inf
410 }
411
412[Components.$(FSP_ARCH)]
413 IntelFsp2Pkg/FspSecCore/FspSecCoreV.inf {
414 <LibraryClasses>
415 FspSecPlatformLib|$(FSP_PACKAGE)/Library/PlatformSecLib/Vtf0PlatformSecVLib.inf
416 }
417
418 IntelFsp2Pkg/FspSecCore/FspSecCoreM.inf {
419 <LibraryClasses>
420 FspSecPlatformLib|$(FSP_PACKAGE)/Library/PlatformSecLib/Vtf0PlatformSecMLib.inf
421 }
422
423 IntelFsp2Pkg/FspSecCore/FspSecCoreS.inf {
424 <LibraryClasses>
425 FspSecPlatformLib|$(FSP_PACKAGE)/Library/PlatformSecLib/Vtf0PlatformSecSLib.inf
426 }
427
428 #
429 # PEI Core
430 #
431 MdeModulePkg/Core/Pei/PeiMain.inf
432
433 #
434 # PCD
435 #
436 MdeModulePkg/Universal/PCD/Pei/Pcd.inf {
437 <LibraryClasses>
438 DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
439 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
440 }
441
442 $(FSP_PACKAGE)/FspvInit/FspvInit.inf
443 $(FSP_PACKAGE)/FspmInit/FspmInit.inf
444 $(FSP_PACKAGE)/FspsInit/FspsInit.inf
445 $(FSP_PACKAGE)/QemuVideo/QemuVideo.inf
446 MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf {
447 <LibraryClasses>
448 DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.inf
449 ResetSystemLib|MdeModulePkg/Library/BaseResetSystemLibNull/BaseResetSystemLibNull.inf
450 }
451 IntelFsp2Pkg/FspNotifyPhase/FspNotifyPhasePeim.inf
452
453###################################################################################################
454#
455# BuildOptions Section - Define the module specific tool chain flags that should be used as
456# the default flags for a module. These flags are appended to any
457# standard flags that are defined by the build process. They can be
458# applied for any modules or only those modules with the specific
459# module style (EDK or EDKII) specified in [Components] section.
460#
461###################################################################################################
462[BuildOptions]
463# Append build options for EDK and EDKII drivers (= is Append, == is Replace)
464 # Enable link-time optimization when building with GCC49
465 *_GCC49_IA32_CC_FLAGS = -flto
466 *_GCC49_IA32_DLINK_FLAGS = -flto
467 *_GCC5_IA32_CC_FLAGS = -fno-pic
468 *_GCC5_IA32_DLINK_FLAGS = -no-pie
469 *_GCC5_IA32_ASLCC_FLAGS = -fno-pic
470 *_GCC5_IA32_ASLDLINK_FLAGS = -no-pie
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette