From 82e0b2f043c17bdb3d5ada7d9fe2bc13624cef27 Mon Sep 17 00:00:00 2001 From: Laszlo Ersek Date: Wed, 3 Jun 2020 19:04:13 +0200 Subject: OvmfPkg/Tcg2ConfigPei: restrict BaseLib class dependency to IA32 and X64 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 " 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 74f90d38c446, "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 Cc: Jordan Justen Cc: Marc-André Lureau Cc: Philippe Mathieu-Daudé Cc: Stefan Berger Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2752 Signed-off-by: Laszlo Ersek Message-Id: <20200603170413.23936-3-lersek@redhat.com> Reviewed-by: Ard Biesheuvel Reviewed-by: Philippe Mathieu-Daudé --- OvmfPkg/Tcg/Tcg2Config/Tcg2ConfigPei.inf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'OvmfPkg/Tcg') diff --git a/OvmfPkg/Tcg/Tcg2Config/Tcg2ConfigPei.inf b/OvmfPkg/Tcg/Tcg2Config/Tcg2ConfigPei.inf index 55c20db963..6776ec931c 100644 --- a/OvmfPkg/Tcg/Tcg2Config/Tcg2ConfigPei.inf +++ b/OvmfPkg/Tcg/Tcg2Config/Tcg2ConfigPei.inf @@ -37,12 +37,12 @@ [LibraryClasses] PeimEntryPoint - BaseLib DebugLib PeiServicesLib Tpm2DeviceLib [LibraryClasses.IA32, LibraryClasses.X64] + BaseLib Tpm12DeviceLib [Guids] -- cgit v1.2.3