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