BaseLib interfaces (namely, SwapBytesXx()) are only used in
"Tpm12Support.c", which is IA32/X64-only. Therefore the BaseLib class
dependency should also be restricted to IA32 & X64, in the INF file.
The "#include <Library/BaseLib.h>" directive is already present in
"Tpm12Support.c" only.
(The BaseLib dependency should have been restricted to IA32 and X64
together with the Tpm12DeviceLib dependency, as part of commit
74f90d38c4
, "OvmfPkg/Tcg2ConfigPei: skip TPM-1.2 detection when building
for ARM/AARCH64", 2020-05-21.)
This is a trivial cleanup; functionally a no-op.
Cc: Ard Biesheuvel <ard.biesheuvel@arm.com>
Cc: Jordan Justen <jordan.l.justen@intel.com>
Cc: Marc-André Lureau <marcandre.lureau@redhat.com>
Cc: Philippe Mathieu-Daudé <philmd@redhat.com>
Cc: Stefan Berger <stefanb@linux.ibm.com>
Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2752
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Message-Id: <20200603170413.23936-3-lersek@redhat.com>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@arm.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
64 lines
1.6 KiB
INI
64 lines
1.6 KiB
INI
## @file
|
|
# Set TPM device type
|
|
#
|
|
# In SecurityPkg, this module initializes the TPM device type based on a UEFI
|
|
# variable and/or hardware detection. In OvmfPkg, the module only performs TPM
|
|
# hardware detection.
|
|
#
|
|
# Copyright (c) 2015 - 2016, Intel Corporation. All rights reserved.<BR>
|
|
# Copyright (C) 2018, Red Hat, Inc.
|
|
#
|
|
# SPDX-License-Identifier: BSD-2-Clause-Patent
|
|
##
|
|
|
|
[Defines]
|
|
INF_VERSION = 0x00010005
|
|
BASE_NAME = Tcg2ConfigPei
|
|
FILE_GUID = BF7F2B0C-9F2F-4889-AB5C-12460022BE87
|
|
MODULE_TYPE = PEIM
|
|
VERSION_STRING = 1.0
|
|
ENTRY_POINT = Tcg2ConfigPeimEntryPoint
|
|
|
|
[Sources]
|
|
Tcg2ConfigPeim.c
|
|
Tpm12Support.h
|
|
|
|
[Sources.IA32, Sources.X64]
|
|
Tpm12Support.c
|
|
|
|
[Sources.ARM, Sources.AARCH64]
|
|
Tpm12SupportNull.c
|
|
|
|
[Packages]
|
|
MdePkg/MdePkg.dec
|
|
MdeModulePkg/MdeModulePkg.dec
|
|
OvmfPkg/OvmfPkg.dec
|
|
SecurityPkg/SecurityPkg.dec
|
|
|
|
[LibraryClasses]
|
|
PeimEntryPoint
|
|
DebugLib
|
|
PeiServicesLib
|
|
Tpm2DeviceLib
|
|
|
|
[LibraryClasses.IA32, LibraryClasses.X64]
|
|
BaseLib
|
|
Tpm12DeviceLib
|
|
|
|
[Guids]
|
|
gEfiTpmDeviceSelectedGuid ## PRODUCES ## GUID # Used as a PPI GUID
|
|
gEfiTpmDeviceInstanceTpm20DtpmGuid ## SOMETIMES_CONSUMES
|
|
gEfiTpmDeviceInstanceTpm12Guid ## SOMETIMES_CONSUMES
|
|
|
|
[Ppis]
|
|
gPeiTpmInitializationDonePpiGuid ## SOMETIMES_PRODUCES
|
|
|
|
[Pcd]
|
|
gEfiSecurityPkgTokenSpaceGuid.PcdTpmInstanceGuid ## PRODUCES
|
|
|
|
[Depex.IA32, Depex.X64]
|
|
TRUE
|
|
|
|
[Depex.ARM, Depex.AARCH64]
|
|
gOvmfTpmDiscoveredPpiGuid
|