2010-02-24 01:21:16 +01:00
|
|
|
## @file
|
2014-08-28 08:34:06 +02:00
|
|
|
# PeiMain module is core module in PEI phase.
|
|
|
|
#
|
|
|
|
# It takes responsibilities of:
|
2008-10-28 14:16:21 +01:00
|
|
|
# 1) Initialize memory, PPI, image services etc, to establish PEIM runtime environment.
|
|
|
|
# 2) Dispatch PEIM from discovered FV.
|
|
|
|
# 3) Handoff control to DxeIpl to load DXE core and enter DXE phase.
|
2007-07-04 09:51:48 +02:00
|
|
|
#
|
2017-08-01 07:47:08 +02:00
|
|
|
# Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.<BR>
|
2007-07-04 09:51:48 +02:00
|
|
|
#
|
2010-04-24 11:49:11 +02:00
|
|
|
# This program and the accompanying materials
|
2007-07-04 09:51:48 +02:00
|
|
|
# are licensed and made available under the terms and conditions of the BSD License
|
|
|
|
# which accompanies this distribution. The full text of the license may be found at
|
|
|
|
# http://opensource.org/licenses/bsd-license.php
|
|
|
|
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
|
|
#
|
|
|
|
#
|
2010-02-24 01:21:16 +01:00
|
|
|
##
|
2007-07-04 09:51:48 +02:00
|
|
|
|
|
|
|
[Defines]
|
|
|
|
INF_VERSION = 0x00010005
|
2008-10-05 15:32:39 +02:00
|
|
|
BASE_NAME = PeiCore
|
2014-08-28 08:34:06 +02:00
|
|
|
MODULE_UNI_FILE = PeiCore.uni
|
2007-07-04 09:51:48 +02:00
|
|
|
FILE_GUID = 52C05B14-0B98-496c-BC3B-04B50211D680
|
|
|
|
MODULE_TYPE = PEI_CORE
|
|
|
|
VERSION_STRING = 1.0
|
|
|
|
ENTRY_POINT = PeiCore
|
|
|
|
|
|
|
|
#
|
|
|
|
# The following information is for reference only and not required by the build tools.
|
|
|
|
#
|
2008-10-28 08:17:17 +01:00
|
|
|
# VALID_ARCHITECTURES = IA32 X64 IPF EBC (EBC is for build only)
|
2007-07-04 09:51:48 +02:00
|
|
|
#
|
|
|
|
|
2010-01-14 02:40:51 +01:00
|
|
|
[Sources]
|
2007-07-04 09:51:48 +02:00
|
|
|
StatusCode/StatusCode.c
|
|
|
|
Security/Security.c
|
|
|
|
Reset/Reset.c
|
|
|
|
Ppi/Ppi.c
|
|
|
|
PeiMain/PeiMain.c
|
|
|
|
Memory/MemoryServices.c
|
|
|
|
Image/Image.c
|
|
|
|
Hob/Hob.c
|
|
|
|
FwVol/FwVol.c
|
2009-11-11 04:27:39 +01:00
|
|
|
FwVol/FwVol.h
|
2007-07-04 09:51:48 +02:00
|
|
|
Dispatcher/Dispatcher.c
|
2008-07-17 03:29:38 +02:00
|
|
|
Dependency/Dependency.c
|
|
|
|
Dependency/Dependency.h
|
2007-07-04 09:51:48 +02:00
|
|
|
BootMode/BootMode.c
|
2010-01-04 05:36:37 +01:00
|
|
|
CpuIo/CpuIo.c
|
|
|
|
PciCfg2/PciCfg2.c
|
2007-07-04 09:51:48 +02:00
|
|
|
PeiMain.h
|
|
|
|
|
|
|
|
[Packages]
|
|
|
|
MdePkg/MdePkg.dec
|
2009-02-25 16:35:58 +01:00
|
|
|
MdeModulePkg/MdeModulePkg.dec
|
2008-04-03 11:20:11 +02:00
|
|
|
|
2007-07-04 09:51:48 +02:00
|
|
|
[LibraryClasses]
|
|
|
|
BaseMemoryLib
|
|
|
|
PeCoffGetEntryPointLib
|
|
|
|
ReportStatusCodeLib
|
|
|
|
PeiServicesLib
|
|
|
|
PerformanceLib
|
|
|
|
HobLib
|
|
|
|
BaseLib
|
2007-09-12 11:52:37 +02:00
|
|
|
PeiCoreEntryPoint
|
2007-07-04 09:51:48 +02:00
|
|
|
DebugLib
|
2007-09-24 13:38:43 +02:00
|
|
|
MemoryAllocationLib
|
|
|
|
CacheMaintenanceLib
|
|
|
|
PeCoffLib
|
2008-10-17 10:42:33 +02:00
|
|
|
PeiServicesTablePointerLib
|
2012-11-01 07:59:25 +01:00
|
|
|
PcdLib
|
2007-07-04 09:51:48 +02:00
|
|
|
|
|
|
|
[Guids]
|
2014-08-28 08:34:06 +02:00
|
|
|
gPeiAprioriFileNameGuid ## SOMETIMES_CONSUMES ## File
|
|
|
|
## PRODUCES ## UNDEFINED # Install ppi
|
|
|
|
## CONSUMES ## UNDEFINED # Locate ppi
|
|
|
|
gEfiFirmwareFileSystem2Guid
|
|
|
|
## PRODUCES ## UNDEFINED # Install ppi
|
|
|
|
## CONSUMES ## UNDEFINED # Locate ppi
|
|
|
|
## CONSUMES ## GUID # Used to compare with FV's file system guid and get the FV's file system format
|
|
|
|
gEfiFirmwareFileSystem3Guid
|
2009-11-11 04:27:39 +01:00
|
|
|
|
2007-07-04 09:51:48 +02:00
|
|
|
[Ppis]
|
2014-08-28 08:34:06 +02:00
|
|
|
gEfiPeiStatusCodePpiGuid ## SOMETIMES_CONSUMES # PeiReportStatusService is not ready if this PPI doesn't exist
|
|
|
|
gEfiPeiResetPpiGuid ## SOMETIMES_CONSUMES # PeiResetService is not ready if this PPI doesn't exist
|
2009-02-13 09:38:34 +01:00
|
|
|
gEfiDxeIplPpiGuid ## CONSUMES
|
2009-02-25 16:35:58 +01:00
|
|
|
gEfiPeiMemoryDiscoveredPpiGuid ## PRODUCES
|
2014-08-28 08:34:06 +02:00
|
|
|
gEfiPeiDecompressPpiGuid ## SOMETIMES_CONSUMES
|
|
|
|
## NOTIFY
|
|
|
|
## SOMETIMES_PRODUCES # Produce FvInfoPpi if the encapsulated FvImage is found
|
|
|
|
gEfiPeiFirmwareVolumeInfoPpiGuid
|
|
|
|
## NOTIFY
|
|
|
|
## SOMETIMES_PRODUCES # Produce FvInfoPpi2 if the encapsulated FvImage is found
|
|
|
|
gEfiPeiFirmwareVolumeInfo2PpiGuid
|
|
|
|
## PRODUCES
|
|
|
|
## CONSUMES
|
|
|
|
gEfiPeiLoadFilePpiGuid
|
2009-02-25 16:35:58 +01:00
|
|
|
gEfiPeiSecurity2PpiGuid ## NOTIFY
|
2013-11-15 03:05:11 +01:00
|
|
|
gEfiTemporaryRamSupportPpiGuid ## SOMETIMES_CONSUMES
|
|
|
|
gEfiTemporaryRamDonePpiGuid ## SOMETIMES_CONSUMES
|
2015-05-11 04:06:51 +02:00
|
|
|
gEfiPeiReset2PpiGuid ## SOMETIMES_CONSUMES
|
2017-08-01 07:47:08 +02:00
|
|
|
gEfiSecHobDataPpiGuid ## SOMETIMES_CONSUMES
|
2010-01-14 02:40:51 +01:00
|
|
|
|
2014-08-28 08:34:06 +02:00
|
|
|
[Pcd]
|
|
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdPeiCoreMaxFvSupported ## CONSUMES
|
|
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdPeiCoreMaxPeimPerFv ## CONSUMES
|
|
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdPeiCoreMaxPpiSupported ## CONSUMES
|
|
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdPeiCoreMaxPeiStackSize ## CONSUMES
|
|
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdPeiCoreImageLoaderSearchTeSectionFirst ## CONSUMES
|
|
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdFrameworkCompatibilitySupport ## CONSUMES
|
|
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdLoadFixAddressPeiCodePageNumber ## SOMETIMES_CONSUMES
|
|
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdLoadFixAddressBootTimeCodePageNumber ## SOMETIMES_CONSUMES
|
|
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdLoadFixAddressRuntimeCodePageNumber ## SOMETIMES_CONSUMES
|
|
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdLoadModuleAtFixAddressEnable ## CONSUMES
|
|
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdShadowPeimOnS3Boot ## CONSUMES
|
2015-08-03 05:18:37 +02:00
|
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdShadowPeimOnBoot ## CONSUMES
|
2017-11-02 03:59:14 +01:00
|
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdInitValueInTempStack ## CONSUMES
|
2014-08-28 08:34:06 +02:00
|
|
|
|
|
|
|
# [BootMode]
|
|
|
|
# S3_RESUME ## SOMETIMES_CONSUMES
|
|
|
|
|
|
|
|
# [Hob]
|
|
|
|
# PHIT ## PRODUCES
|
|
|
|
# RESOURCE_DESCRIPTOR ## SOMETIMES_PRODUCES
|
|
|
|
# RESOURCE_DESCRIPTOR ## SOMETIMES_CONSUMES
|
|
|
|
# MEMORY_ALLOCATION ## SOMETIMES_CONSUMES
|
|
|
|
# FIRMWARE_VOLUME ## SOMETIMES_PRODUCES
|
|
|
|
# FIRMWARE_VOLUME ## SOMETIMES_CONSUMES
|
|
|
|
# MEMORY_ALLOCATION ## SOMETIMES_PRODUCES
|
|
|
|
# MEMORY_ALLOCATION ## PRODUCES # MEMORY_ALLOCATION_STACK
|
|
|
|
# UNDEFINED ## PRODUCES # MEMORY_POOL
|
|
|
|
|
|
|
|
[UserExtensions.TianoCore."ExtraFiles"]
|
|
|
|
PeiCoreExtra.uni
|