There are two libraries: MdePkg/CpuLib and UefiCpuPkg/UefiCpuLib and UefiCpuPkg/UefiCpuLib will be merged to MdePkg/CpuLib. To avoid build failure, add CpuLib dependency to all modules that depend on UefiCpuLib.
Cc: Ard Biesheuvel <ardb+tianoc...@kernel.org> Cc: Jiewen Yao <jiewen....@intel.com> Cc: Jordan Justen <jordan.l.jus...@intel.com> Cc: Gerd Hoffmann <kra...@redhat.com> Signed-off-by: Zhiguang Liu <zhiguang....@intel.com> --- OvmfPkg/IntelTdx/Sec/SecMain.c | 1 + OvmfPkg/IntelTdx/Sec/SecMain.inf | 1 + OvmfPkg/Library/PeilessStartupLib/PeilessStartupLib.inf | 1 + OvmfPkg/Library/TdxMailboxLib/TdxMailbox.c | 1 + OvmfPkg/Library/TdxMailboxLib/TdxMailboxLib.inf | 1 + 5 files changed, 5 insertions(+) diff --git a/OvmfPkg/IntelTdx/Sec/SecMain.c b/OvmfPkg/IntelTdx/Sec/SecMain.c index ccb217b709..8f1f75b294 100644 --- a/OvmfPkg/IntelTdx/Sec/SecMain.c +++ b/OvmfPkg/IntelTdx/Sec/SecMain.c @@ -17,6 +17,7 @@ #include <Library/BaseMemoryLib.h> #include <Library/PcdLib.h> #include <Library/UefiCpuLib.h> +#include <Library/CpuLib.h> #include <Library/DebugAgentLib.h> #include <Library/IoLib.h> #include <Library/PeCoffLib.h> diff --git a/OvmfPkg/IntelTdx/Sec/SecMain.inf b/OvmfPkg/IntelTdx/Sec/SecMain.inf index 9cf1249d02..e112ba80bc 100644 --- a/OvmfPkg/IntelTdx/Sec/SecMain.inf +++ b/OvmfPkg/IntelTdx/Sec/SecMain.inf @@ -38,6 +38,7 @@ BaseMemoryLib PcdLib UefiCpuLib + CpuLib DebugAgentLib IoLib PeCoffLib diff --git a/OvmfPkg/Library/PeilessStartupLib/PeilessStartupLib.inf b/OvmfPkg/Library/PeilessStartupLib/PeilessStartupLib.inf index e77ad7bc92..b1c936b960 100644 --- a/OvmfPkg/Library/PeilessStartupLib/PeilessStartupLib.inf +++ b/OvmfPkg/Library/PeilessStartupLib/PeilessStartupLib.inf @@ -46,6 +46,7 @@ BaseMemoryLib PcdLib UefiCpuLib + CpuLib DebugAgentLib IoLib LocalApicLib diff --git a/OvmfPkg/Library/TdxMailboxLib/TdxMailbox.c b/OvmfPkg/Library/TdxMailboxLib/TdxMailbox.c index c580a28856..063875b34b 100644 --- a/OvmfPkg/Library/TdxMailboxLib/TdxMailbox.c +++ b/OvmfPkg/Library/TdxMailboxLib/TdxMailbox.c @@ -11,6 +11,7 @@ #include <Library/BaseMemoryLib.h> #include <Library/PcdLib.h> #include <Library/UefiCpuLib.h> +#include <Library/CpuLib.h> #include <Library/SynchronizationLib.h> #include <Uefi/UefiBaseType.h> #include <IndustryStandard/IntelTdx.h> diff --git a/OvmfPkg/Library/TdxMailboxLib/TdxMailboxLib.inf b/OvmfPkg/Library/TdxMailboxLib/TdxMailboxLib.inf index e504bda0dd..83e3c8b842 100644 --- a/OvmfPkg/Library/TdxMailboxLib/TdxMailboxLib.inf +++ b/OvmfPkg/Library/TdxMailboxLib/TdxMailboxLib.inf @@ -37,6 +37,7 @@ BaseMemoryLib PcdLib UefiCpuLib + CpuLib DebugAgentLib IoLib SynchronizationLib -- 2.31.1.windows.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#100506): https://edk2.groups.io/g/devel/message/100506 Mute This Topic: https://groups.io/mt/97261630/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-