From 8a6cd66acb952444957e51b52d35a35042cbb59a Mon Sep 17 00:00:00 2001 From: Sami Mujawar Date: Thu, 18 Sep 2025 16:42:06 +0100 Subject: [PATCH] SecurityPkg/HashInstanceLibSha256: Remove unused Tpm2CommandLib dependency The HashInstanceLibSha256 library does not call into Tpm2CommandLib. Removing it from the [LibraryClasses] section reduces unnecessary dependencies and avoids potential build issues in non-TPM builds. Also remove the unnecessary include of Tpm2CommandLib.h Signed-off-by: Sami Mujawar --- .../Library/HashInstanceLibSha256/HashInstanceLibSha256.c | 1 - .../Library/HashInstanceLibSha256/HashInstanceLibSha256.inf | 1 - 2 files changed, 2 deletions(-) diff --git a/SecurityPkg/Library/HashInstanceLibSha256/HashInstanceLibSha256.c b/SecurityPkg/Library/HashInstanceLibSha256/HashInstanceLibSha256.c index 4387740001..f06c702865 100644 --- a/SecurityPkg/Library/HashInstanceLibSha256/HashInstanceLibSha256.c +++ b/SecurityPkg/Library/HashInstanceLibSha256/HashInstanceLibSha256.c @@ -10,7 +10,6 @@ SPDX-License-Identifier: BSD-2-Clause-Patent #include #include #include -#include #include #include #include diff --git a/SecurityPkg/Library/HashInstanceLibSha256/HashInstanceLibSha256.inf b/SecurityPkg/Library/HashInstanceLibSha256/HashInstanceLibSha256.inf index a7d1f162bd..72fd1b4405 100644 --- a/SecurityPkg/Library/HashInstanceLibSha256/HashInstanceLibSha256.inf +++ b/SecurityPkg/Library/HashInstanceLibSha256/HashInstanceLibSha256.inf @@ -36,6 +36,5 @@ BaseLib BaseMemoryLib DebugLib - Tpm2CommandLib MemoryAllocationLib BaseCryptLib