BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=3918
There are 4 MpInitLibDepLib: - PeiMpInitLibMpDepLib: MpInitLib multi-processor dependency - PeiMpInitLibUpDepLib: MpInitLib unique-processor dependency - DxeMpInitLibMpDepLib: MpInitLib multi-processor dependency - DxeMpInitLibUpDepLib MpInitLib unique-processor dependency The Pei libs depend on the corresponding PPI. The Dxe libs depend on the corresponding Protocol. Cc: Eric Dong <eric.d...@intel.com> Cc: Ray Ni <ray...@intel.com> Cc: Brijesh Singh <brijesh.si...@amd.com> Cc: Erdem Aktas <erdemak...@google.com> Cc: James Bottomley <j...@linux.ibm.com> Cc: Jiewen Yao <jiewen....@intel.com> Cc: Tom Lendacky <thomas.lenda...@amd.com> Cc: Gerd Hoffmann <kra...@redhat.com> Signed-off-by: Min Xu <min.m...@intel.com> --- .../MpInitLibDepLib/DxeMpInitLibMpDepLib.inf | 27 +++++++++++++++++++ .../MpInitLibDepLib/DxeMpInitLibUpDepLib.inf | 27 +++++++++++++++++++ .../Library/MpInitLibDepLib/MpInitLibDepLib.c | 23 ++++++++++++++++ .../MpInitLibDepLib/PeiMpInitLibMpDepLib.inf | 27 +++++++++++++++++++ .../MpInitLibDepLib/PeiMpInitLibUpDepLib.inf | 27 +++++++++++++++++++ 5 files changed, 131 insertions(+) create mode 100644 OvmfPkg/Library/MpInitLibDepLib/DxeMpInitLibMpDepLib.inf create mode 100644 OvmfPkg/Library/MpInitLibDepLib/DxeMpInitLibUpDepLib.inf create mode 100644 OvmfPkg/Library/MpInitLibDepLib/MpInitLibDepLib.c create mode 100644 OvmfPkg/Library/MpInitLibDepLib/PeiMpInitLibMpDepLib.inf create mode 100644 OvmfPkg/Library/MpInitLibDepLib/PeiMpInitLibUpDepLib.inf diff --git a/OvmfPkg/Library/MpInitLibDepLib/DxeMpInitLibMpDepLib.inf b/OvmfPkg/Library/MpInitLibDepLib/DxeMpInitLibMpDepLib.inf new file mode 100644 index 000000000000..97a8a52d4c29 --- /dev/null +++ b/OvmfPkg/Library/MpInitLibDepLib/DxeMpInitLibMpDepLib.inf @@ -0,0 +1,27 @@ +## @file +# +# Copyright (c) 2022, Intel Corporation. All rights reserved.<BR> +# SPDX-License-Identifier: BSD-2-Clause-Patent +# +## + +[Defines] + INF_VERSION = 0x00010005 + BASE_NAME = DxeMpInitLibMpDepLib + FILE_GUID = 57461928-290D-4FEC-A439-377420A829BE + MODULE_TYPE = BASE + VERSION_STRING = 1.0 + LIBRARY_CLASS = NULL + +[LibraryClasses] + BaseLib + +[Packages] + MdePkg/MdePkg.dec + OvmfPkg/OvmfPkg.dec + +[Sources] + MpInitLibDepLib.c + +[Depex] + gEfiMpInitLibMpDepProtocolGuid \ No newline at end of file diff --git a/OvmfPkg/Library/MpInitLibDepLib/DxeMpInitLibUpDepLib.inf b/OvmfPkg/Library/MpInitLibDepLib/DxeMpInitLibUpDepLib.inf new file mode 100644 index 000000000000..1241fa5de2fa --- /dev/null +++ b/OvmfPkg/Library/MpInitLibDepLib/DxeMpInitLibUpDepLib.inf @@ -0,0 +1,27 @@ +## @file +# +# Copyright (c) 2022, Intel Corporation. All rights reserved.<BR> +# SPDX-License-Identifier: BSD-2-Clause-Patent +# +## + +[Defines] + INF_VERSION = 0x00010005 + BASE_NAME = DxeMpInitLibUpDepLib + FILE_GUID = 95FA4B7B-930E-4755-A9B7-10F0716DA374 + MODULE_TYPE = BASE + VERSION_STRING = 1.0 + LIBRARY_CLASS = NULL + +[LibraryClasses] + BaseLib + +[Packages] + MdePkg/MdePkg.dec + OvmfPkg/OvmfPkg.dec + +[Sources] + MpInitLibDepLib.c + +[Depex] + gEfiMpInitLibUpDepProtocolGuid \ No newline at end of file diff --git a/OvmfPkg/Library/MpInitLibDepLib/MpInitLibDepLib.c b/OvmfPkg/Library/MpInitLibDepLib/MpInitLibDepLib.c new file mode 100644 index 000000000000..a7501bd9d960 --- /dev/null +++ b/OvmfPkg/Library/MpInitLibDepLib/MpInitLibDepLib.c @@ -0,0 +1,23 @@ +/** @file + + Copyright (c) 2022, Intel Corporation. All rights reserved.<BR> + SPDX-License-Identifier: BSD-2-Clause-Patent +**/ + +#include <Uefi.h> + +/** +This is null constructor which always return EFI_SUCCESS. +@param ImageHandle The firmware allocated handle for the EFI image. +@param SystemTable A pointer to the EFI System Table. +@retval EFI_SUCCESS Always return EFI_SUCCESS +**/ +EFI_STATUS +EFIAPI +MpInitLibDepContructor ( + IN EFI_HANDLE ImageHandle, + IN EFI_SYSTEM_TABLE *SystemTable + ) +{ + return EFI_SUCCESS; +} diff --git a/OvmfPkg/Library/MpInitLibDepLib/PeiMpInitLibMpDepLib.inf b/OvmfPkg/Library/MpInitLibDepLib/PeiMpInitLibMpDepLib.inf new file mode 100644 index 000000000000..3a3c24ecd142 --- /dev/null +++ b/OvmfPkg/Library/MpInitLibDepLib/PeiMpInitLibMpDepLib.inf @@ -0,0 +1,27 @@ +## @file +# +# Copyright (c) 2022, Intel Corporation. All rights reserved.<BR> +# SPDX-License-Identifier: BSD-2-Clause-Patent +# +## + +[Defines] + INF_VERSION = 0x00010005 + BASE_NAME = PeiMpInitLibMpDepLib + FILE_GUID = D14271DE-FBEA-4AAC-9633-7143DCD7C1C8 + MODULE_TYPE = BASE + VERSION_STRING = 1.0 + LIBRARY_CLASS = NULL + +[LibraryClasses] + BaseLib + +[Packages] + MdePkg/MdePkg.dec + OvmfPkg/OvmfPkg.dec + +[Sources] + MpInitLibDepLib.c + +[Depex] + gEfiPeiMpInitLibMpDepPpiGuid \ No newline at end of file diff --git a/OvmfPkg/Library/MpInitLibDepLib/PeiMpInitLibUpDepLib.inf b/OvmfPkg/Library/MpInitLibDepLib/PeiMpInitLibUpDepLib.inf new file mode 100644 index 000000000000..4a55a242a6f1 --- /dev/null +++ b/OvmfPkg/Library/MpInitLibDepLib/PeiMpInitLibUpDepLib.inf @@ -0,0 +1,27 @@ +## @file +# +# Copyright (c) 2022, Intel Corporation. All rights reserved.<BR> +# SPDX-License-Identifier: BSD-2-Clause-Patent +# +## + +[Defines] + INF_VERSION = 0x00010005 + BASE_NAME = MpInitLibUpDepLib + FILE_GUID = C64B5035-FA3D-4215-ADBF-9C9F3F458E30 + MODULE_TYPE = BASE + VERSION_STRING = 1.0 + LIBRARY_CLASS = NULL + +[LibraryClasses] + BaseLib + +[Packages] + MdePkg/MdePkg.dec + OvmfPkg/OvmfPkg.dec + +[Sources] + MpInitLibDepLib.c + +[Depex] + gEfiPeiMpInitLibUpDepPpiGuid \ No newline at end of file -- 2.29.2.windows.2 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#89565): https://edk2.groups.io/g/devel/message/89565 Mute This Topic: https://groups.io/mt/90946717/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-