]> git.proxmox.com Git - mirror_edk2.git/blob - IntelFsp2Pkg/Tools/Tests/QemuFspPkg.dsc
IntelFsp2Pkg: Consume MdeLibs.dsc.inc for RegisterFilterLib
[mirror_edk2.git] / IntelFsp2Pkg / Tools / Tests / QemuFspPkg.dsc
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 UefiCpuLib|UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib.inf
111 !if $(TARGET) == DEBUG
112 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
113 SerialPortLib|MdeModulePkg/Library/BaseSerialPortLib16550/BaseSerialPortLib16550.inf
114 !else
115 DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
116 SerialPortLib|MdePkg/Library/BaseSerialPortLibNull/BaseSerialPortLibNull.inf
117 !endif
118
119
120 ################################################################################
121 #
122 # Pcd Section - list of all EDK II PCD Entries defined by this Platform
123 #
124 ################################################################################
125 [PcdsFixedAtBuild]
126 gEfiMdeModulePkgTokenSpaceGuid.PcdShadowPeimOnS3Boot | TRUE
127 gQemuFspPkgTokenSpaceGuid.PcdFspHeaderRevision | 0x03
128 gQemuFspPkgTokenSpaceGuid.PcdFspImageIdString | $(FSP_IMAGE_ID)
129 gQemuFspPkgTokenSpaceGuid.PcdFspImageRevision | $(FSP_IMAGE_REV)
130 #
131 # FSP CAR Usages (BL RAM | FSP RAM | FSP CODE)
132 #
133 gIntelFsp2PkgTokenSpaceGuid.PcdTemporaryRamBase | $(CAR_BASE_ADDRESS)
134 gIntelFsp2PkgTokenSpaceGuid.PcdTemporaryRamSize | $(CAR_REGION_SIZE)
135 gIntelFsp2PkgTokenSpaceGuid.PcdFspTemporaryRamSize | $(CAR_FSP_REGION_SIZE)
136 gIntelFsp2PkgTokenSpaceGuid.PcdFspReservedBufferSize | 0x0100
137
138 # This defines how much space will be used for heap in FSP temporary memory
139 # x % of FSP temporary memory will be used for heap
140 # (100 - x) % of FSP temporary memory will be used for stack
141 gIntelFsp2PkgTokenSpaceGuid.PcdFspHeapSizePercentage | 65
142
143 # This is a platform specific global pointer used by FSP
144 gIntelFsp2PkgTokenSpaceGuid.PcdGlobalDataPointerAddress | 0xFED00148
145 gIntelFsp2PkgTokenSpaceGuid.PcdFspReservedMemoryLength | 0x00100000
146
147 !if $(TARGET) == RELEASE
148 gEfiMdePkgTokenSpaceGuid.PcdFixedDebugPrintErrorLevel | 0x00000000
149 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask | 0
150 !else
151 gEfiMdePkgTokenSpaceGuid.PcdFixedDebugPrintErrorLevel | 0x80000047
152 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask | 0x27
153 !endif
154
155 [PcdsPatchableInModule]
156 gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress | 0xE0000000
157 #
158 # This entry will be patched during the build process
159 #
160 gEfiMdeModulePkgTokenSpaceGuid.PcdVpdBaseAddress | 0x12345678
161
162 !if $(TARGET) == RELEASE
163 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel | 0
164 !else
165 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel | 0x80000047
166 !endif
167
168 [PcdsDynamicVpd.Upd]
169 #
170 # This section is not used by the normal build process
171 # However, FSP will use dedicated tool to handle it and generate a
172 # VPD similar binary block (User Configuration Data). This block will
173 # be accessed through a generated data structure directly rather than
174 # PCD services. This is for size consideration.
175 # Format:
176 # gQemuFspPkgTokenSpaceGuid.Updxxxxxxxxxxxxn | OFFSET | LENGTH | VALUE
177 # Only simple data type is supported
178 #
179
180 #
181 # Comments with !BSF will be used to generate BSF file
182 # Comments with !HDR will be used to generate H header file
183 #
184
185 # Global definitions in BSF
186 # !BSF PAGES:{TMP:"FSP T", MEM:"FSP MemoryInit Settings", SIL:"FSP SiliconInit Settings"}
187 # !BSF BLOCK:{NAME:"QEMU Platform", VER:"0.1"}
188
189 # !BSF FIND:{QEMUPD_T}
190 # !HDR COMMENT:{FSP_UPD_HEADER:FSP UPD Header}
191 # !HDR EMBED:{FSP_UPD_HEADER:FspUpdHeader:START}
192 # FsptUpdSignature: {QEMUPD_T}
193 gQemuFspPkgTokenSpaceGuid.Signature | * | 0x08 | 0x545F4450554D4551
194 # !BSF NAME:{FsptUpdRevision}
195 gQemuFspPkgTokenSpaceGuid.Revision | * | 0x01 | 0x01
196 # !HDR EMBED:{FSP_UPD_HEADER:FspUpdHeader:END}
197 gQemuFspPkgTokenSpaceGuid.Reserved | * | 0x17 | {0x00}
198
199 # !HDR COMMENT:{FSPT_ARCH_UPD:FSPT_ARCH_UPD}
200 # !HDR EMBED:{FSPT_ARCH_UPD:FsptArchUpd:START}
201 gQemuFspPkgTokenSpaceGuid.Revision | * | 0x01 | 0x01
202 gQemuFspPkgTokenSpaceGuid.Reserved | * | 0x03 | {0x00}
203 gQemuFspPkgTokenSpaceGuid.Length | * | 0x04 | 0x00000020
204 gQemuFspPkgTokenSpaceGuid.FspDebugHandler | * | 0x04 | 0x00000000
205 # !HDR EMBED:{FSPT_ARCH_UPD:FsptArchUpd:END}
206 gQemuFspPkgTokenSpaceGuid.Reserved1 | * | 0x14 | {0x00}
207
208 # !HDR COMMENT:{FSPT_COMMON_UPD:Fsp T Common UPD}
209 # !HDR EMBED:{FSPT_COMMON_UPD:FsptCommonUpd:START}
210 gQemuFspPkgTokenSpaceGuid.Revision | * | 0x01 | 0x01
211 gQemuFspPkgTokenSpaceGuid.Reserved | * | 0x03 | {0x00}
212
213 # Base address of the microcode region.
214 gQemuFspPkgTokenSpaceGuid.MicrocodeRegionBase | * | 0x04 | 0x00000000
215
216 # Length of the microcode region.
217 gQemuFspPkgTokenSpaceGuid.MicrocodeRegionLength | * | 0x04 | 0x00000000
218
219 # Base address of the cacheable flash region.
220 gQemuFspPkgTokenSpaceGuid.CodeRegionBase | * | 0x04 | 0x00000000
221
222 # Length of the cacheable flash region.
223 gQemuFspPkgTokenSpaceGuid.CodeRegionLength | * | 0x04 | 0x00000000
224
225 # !HDR EMBED:{FSPT_COMMON_UPD:FsptCommonUpd:END}
226 gQemuFspPkgTokenSpaceGuid.Reserved1 | * | 0x0C | {0x00}
227
228 # !HDR COMMENT:{FSP_T_CONFIG:Fsp T Configuration}
229 # !HDR EMBED:{FSP_T_CONFIG:FsptConfig:START}
230 # !BSF PAGE:{TMP}
231 # !BSF NAME:{Chicken bytes to test Hex config}
232 # !BSF TYPE:{EditNum, HEX, (0x00000000,0xFFFFFFFF)}
233 # !BSF HELP:{This option shows how to present option for 4 bytes data}
234 gQemuFspPkgTokenSpaceGuid.ChickenBytes | * | 0x04 | 0x00000000
235
236 # !HDR EMBED:{FSP_T_CONFIG:FsptConfig:END}
237 gQemuFspPkgTokenSpaceGuid.ReservedFsptUpd1 | * | 0x1C | {0x00}
238
239 # Note please keep "UpdTerminator" at the end of each UPD region.
240 # The tool will use this field to determine the actual end of the UPD data
241 # structure.
242 gQemuFspPkgTokenSpaceGuid.UpdTerminator | * | 0x02 | 0x55AA
243
244 ################################################################################
245 #
246 # UPDs consumed in FspMemoryInit Api
247 #
248 ################################################################################
249 # !BSF FIND:{QEMUPD_M}
250 # !HDR COMMENT:{FSP_UPD_HEADER:FSP UPD Header}
251 # !HDR EMBED:{FSP_UPD_HEADER:FspUpdHeader:START}
252 # FspmUpdSignature: {QEMUPD_M}
253 gQemuFspPkgTokenSpaceGuid.Signature | * | 0x08 | 0x4D5F4450554D4551
254 # !BSF NAME:{FspmUpdRevision}
255 gQemuFspPkgTokenSpaceGuid.Revision | * | 0x01 | 0x01
256 # !HDR EMBED:{FSP_UPD_HEADER:FspUpdHeader:END}
257 gQemuFspPkgTokenSpaceGuid.Reserved | * | 0x17 | {0x00}
258
259 # !HDR COMMENT:{FSPM_ARCH_UPD:Fsp M Architectural UPD}
260 # !HDR EMBED:{FSPM_ARCH_UPD:FspmArchUpd:START}
261
262 gQemuFspPkgTokenSpaceGuid.Revision | * | 0x01 | 0x01
263
264 gQemuFspPkgTokenSpaceGuid.Reserved | * | 0x03 | {0x00}
265
266 # !HDR STRUCT:{VOID*}
267 gQemuFspPkgTokenSpaceGuid.NvsBufferPtr | * | 0x04 | 0x00000000
268
269 # !HDR STRUCT:{VOID*}
270 # !BSF NAME:{StackBase}
271 # !BSF HELP:{Stack base for FSP use. Default: 0xFEF16000}
272 gQemuFspPkgTokenSpaceGuid.StackBase | * | 0x04 | $(CAR_BLD_REGION_SIZE)
273
274 # !BSF NAME:{StackSize}
275 # !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}
276 gQemuFspPkgTokenSpaceGuid.StackSize | * | 0x04 | $(CAR_FSP_REGION_SIZE)
277
278 # !BSF NAME:{BootLoaderTolumSize}
279 # !BSF HELP:{To pass Bootloader Tolum size.}
280 gQemuFspPkgTokenSpaceGuid.BootLoaderTolumSize | * | 0x04 | 0x00000000
281
282 # !BSF NAME:{Bootmode}
283 # !BSF HELP:{To maintain Bootmode details.}
284 gPlatformFspPkgTokenSpaceGuid.Bootmode | * | 0x04 | 0x00000000
285
286 # !HDR EMBED:{FSPM_ARCH_UPD:FspmArchUpd:END}
287 gQemuFspPkgTokenSpaceGuid.Reserved1 | * | 0x08 | {0x00}
288
289 # !HDR COMMENT:{FSP_M_CONFIG:Fsp M Configuration}
290 # !HDR EMBED:{FSP_M_CONFIG:FspmConfig:START}
291 # !BSF PAGE:{MEM}
292 # !BSF NAME:{Debug Serial Port Base address}
293 # !BSF TYPE:{EditNum, HEX, (0x00000000,0xFFFFFFFF)}
294 # !BSF HELP:{Debug serial port base address. This option will be used only when the 'Serial Port Debug Device'}
295 # !BSF HELP:{+ option is set to 'External Device'. 0x00000000(Default).}
296 gQemuFspPkgTokenSpaceGuid.SerialDebugPortAddress | * | 0x04 | 0x00000000
297
298 # !BSF NAME:{Debug Serial Port Type} TYPE:{Combo}
299 # !BSF OPTION:{0:NONE, 1:I/O, 2:MMIO}
300 # !BSF HELP:{16550 compatible debug serial port resource type. NONE means no serial port support. 0x02:MMIO(Default).}
301 gQemuFspPkgTokenSpaceGuid.SerialDebugPortType | * | 0x01 | 0x02
302
303 # !BSF NAME:{Serial Port Debug Device} TYPE:{Combo}
304 # !BSF OPTION:{0:SOC UART0, 1:SOC UART1, 2:SOC UART2, 3:External Device}
305 # !BSF HELP:{Select active serial port device for debug.}
306 # !BSF HELP:{+For SOC UART devices,'Debug Serial Port Base' options will be ignored. 0x02:SOC UART2(Default).}
307 gQemuFspPkgTokenSpaceGuid.SerialDebugPortDevice | * | 0x01 | 0x02
308
309 # !BSF NAME:{Debug Serial Port Stride Size} TYPE:{Combo}
310 # !BSF OPTION:{0:1, 2:4}
311 # !BSF HELP:{Debug serial port register map stride size in bytes. 0x00:1, 0x02:4(Default).}
312 gQemuFspPkgTokenSpaceGuid.SerialDebugPortStrideSize | * | 0x01 | 0x02
313
314
315 # !HDR EMBED:{FSP_M_CONFIG:FspmConfig:END}
316 gQemuFspPkgTokenSpaceGuid.ReservedFspmUpd | * | 0x04 | {0x00}
317
318
319 # Note please keep "UpdTerminator" at the end of each UPD region.
320 # The tool will use this field to determine the actual end of the UPD data
321 # structure.
322 gQemuFspPkgTokenSpaceGuid.UpdTerminator | * | 0x02 | 0x55AA
323
324 ################################################################################
325 #
326 # UPDs consumed in FspSiliconInit Api
327 #
328 ################################################################################
329 # !BSF FIND:{QEMUPD_S}
330 # !HDR COMMENT:{FSP_UPD_HEADER:FSP UPD Header}
331 # !HDR EMBED:{FSP_UPD_HEADER:FspUpdHeader:START}
332 # FspsUpdSignature: {QEMUPD_S}
333 gQemuFspPkgTokenSpaceGuid.Signature | * | 0x08 | 0x535F4450554D4551
334 # !BSF NAME:{FspsUpdRevision}
335 gQemuFspPkgTokenSpaceGuid.Revision | * | 0x01 | 0x01
336 # !HDR EMBED:{FSP_UPD_HEADER:FspUpdHeader:END}
337 gQemuFspPkgTokenSpaceGuid.Reserved | * | 0x17 | {0x00}
338
339 # !HDR COMMENT:{FSPS_ARCH_UPD:FSPS_ARCH_UPD}
340 # !HDR EMBED:{FSPS_ARCH_UPD:FspsArchUpd:START}
341 gQemuFspPkgTokenSpaceGuid.Revision | * | 0x01 | 0x01
342 gQemuFspPkgTokenSpaceGuid.Reserved | * | 0x03 | {0x00}
343 gQemuFspPkgTokenSpaceGuid.Length | * | 0x04 | 0x00000020
344 gQemuFspPkgTokenSpaceGuid.FspEventHandler | * | 0x04 | 0x00000000
345 gQemuFspPkgTokenSpaceGuid.EnableMultiPhaseSiliconInit | * | 0x01 | 0x00
346 # !HDR EMBED:{FSPS_ARCH_UPD:FspsArchUpd:END}
347 gQemuFspPkgTokenSpaceGuid.Reserved1 | * | 0x13 | {0x00}
348
349 # !HDR COMMENT:{FSP_S_CONFIG:Fsp S Configuration}
350 # !HDR EMBED:{FSP_S_CONFIG:FspsConfig:START}
351 # !BSF PAGE:{SIL}
352
353 # !BSF NAME:{BMP Logo Data Size}
354 # !BSF TYPE:{Reserved}
355 # !BSF HELP:{BMP logo data buffer size. 0x00000000(Default).}
356 gQemuFspPkgTokenSpaceGuid.LogoSize | * | 0x04 | 0x00000000
357
358 # !BSF NAME:{BMP Logo Data Pointer}
359 # !BSF TYPE:{Reserved}
360 # !BSF HELP:{BMP logo data pointer to a BMP format buffer. 0x00000000(Default).}
361 gQemuFspPkgTokenSpaceGuid.LogoPtr | * | 0x04 | 0x00000000
362
363 # !BSF NAME:{Graphics Configuration Data Pointer}
364 # !BSF TYPE:{Reserved}
365 # !BSF HELP:{Graphics configuration data used for initialization. 0x00000000(Default).}
366 gQemuFspPkgTokenSpaceGuid.GraphicsConfigPtr | * | 0x04 | 0x00000000
367
368 # !BSF NAME:{PCI GFX Temporary MMIO Base}
369 # !BSF TYPE:{EditNum, HEX, (0x80000000,0xDFFFFFFF)}
370 # !BSF HELP:{PCI Temporary PCI GFX Base used before full PCI enumeration. 0x80000000(Default).}
371 gQemuFspPkgTokenSpaceGuid.PciTempResourceBase | * | 0x04 | 0x80000000
372
373 # !HDR EMBED:{FSP_S_CONFIG:FspsConfig:END}
374 gQemuFspPkgTokenSpaceGuid.ReservedFspsUpd | * | 0x01 | 0x00
375
376 # Note please keep "UpdTerminator" at the end of each UPD region.
377 # The tool will use this field to determine the actual end of the UPD data
378 # structure.
379 gQemuFspPkgTokenSpaceGuid.UpdTerminator | * | 0x02 | 0x55AA
380
381 ###################################################################################################
382 #
383 # Components Section - list of the modules and components that will be processed by compilation
384 # tools and the EDK II tools to generate PE32/PE32+/Coff image files.
385 #
386 # Note: The EDK II DSC file is not used to specify how compiled binary images get placed
387 # into firmware volume images. This section is just a list of modules to compile from
388 # source into UEFI-compliant binaries.
389 # It is the FDF file that contains information on combining binary files into firmware
390 # volume images, whose concept is beyond UEFI and is described in PI specification.
391 # Binary modules do not need to be listed in this section, as they should be
392 # specified in the FDF file. For example: Shell binary (Shell_Full.efi), FAT binary (Fat.efi),
393 # Logo (Logo.bmp), and etc.
394 # There may also be modules listed in this section that are not required in the FDF file,
395 # When a module listed here is excluded from FDF file, then UEFI-compliant binary will be
396 # generated for it, but the binary will not be put into any firmware volume.
397 #
398 ###################################################################################################
399 [Components.IA32]
400 #
401 # FSP Binary Components
402 #
403 $(FSP_PACKAGE)/FspHeader/FspHeader.inf
404
405 #
406 # SEC
407 #
408 IntelFsp2Pkg/FspSecCore/FspSecCoreT.inf {
409 <LibraryClasses>
410 FspSecPlatformLib|$(FSP_PACKAGE)/Library/PlatformSecLib/Vtf0PlatformSecTLib.inf
411 }
412
413 [Components.$(FSP_ARCH)]
414 IntelFsp2Pkg/FspSecCore/FspSecCoreV.inf {
415 <LibraryClasses>
416 FspSecPlatformLib|$(FSP_PACKAGE)/Library/PlatformSecLib/Vtf0PlatformSecVLib.inf
417 }
418
419 IntelFsp2Pkg/FspSecCore/FspSecCoreM.inf {
420 <LibraryClasses>
421 FspSecPlatformLib|$(FSP_PACKAGE)/Library/PlatformSecLib/Vtf0PlatformSecMLib.inf
422 }
423
424 IntelFsp2Pkg/FspSecCore/FspSecCoreS.inf {
425 <LibraryClasses>
426 FspSecPlatformLib|$(FSP_PACKAGE)/Library/PlatformSecLib/Vtf0PlatformSecSLib.inf
427 }
428
429 #
430 # PEI Core
431 #
432 MdeModulePkg/Core/Pei/PeiMain.inf
433
434 #
435 # PCD
436 #
437 MdeModulePkg/Universal/PCD/Pei/Pcd.inf {
438 <LibraryClasses>
439 DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
440 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
441 }
442
443 $(FSP_PACKAGE)/FspvInit/FspvInit.inf
444 $(FSP_PACKAGE)/FspmInit/FspmInit.inf
445 $(FSP_PACKAGE)/FspsInit/FspsInit.inf
446 $(FSP_PACKAGE)/QemuVideo/QemuVideo.inf
447 MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf {
448 <LibraryClasses>
449 DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.inf
450 ResetSystemLib|MdeModulePkg/Library/BaseResetSystemLibNull/BaseResetSystemLibNull.inf
451 }
452 IntelFsp2Pkg/FspNotifyPhase/FspNotifyPhasePeim.inf
453
454 ###################################################################################################
455 #
456 # BuildOptions Section - Define the module specific tool chain flags that should be used as
457 # the default flags for a module. These flags are appended to any
458 # standard flags that are defined by the build process. They can be
459 # applied for any modules or only those modules with the specific
460 # module style (EDK or EDKII) specified in [Components] section.
461 #
462 ###################################################################################################
463 [BuildOptions]
464 # Append build options for EDK and EDKII drivers (= is Append, == is Replace)
465 # Enable link-time optimization when building with GCC49
466 *_GCC49_IA32_CC_FLAGS = -flto
467 *_GCC49_IA32_DLINK_FLAGS = -flto
468 *_GCC5_IA32_CC_FLAGS = -fno-pic
469 *_GCC5_IA32_DLINK_FLAGS = -no-pie
470 *_GCC5_IA32_ASLCC_FLAGS = -fno-pic
471 *_GCC5_IA32_ASLDLINK_FLAGS = -no-pie