Commit 2f06e5af authored by Min M Xu's avatar Min M Xu Committed by mergify[bot]
Browse files

OvmfPkg: Add MpInitLibDepLib

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.dong@intel.com>
Cc: Ray Ni <ray.ni@intel.com>
Cc: Brijesh Singh <brijesh.singh@amd.com>
Cc: Erdem Aktas <erdemaktas@google.com>
Cc: James Bottomley <jejb@linux.ibm.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Tom Lendacky <thomas.lendacky@amd.com>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: default avatarMin Xu <min.m.xu@intel.com>
Tested-by: default avatarTom Lendacky <thomas.lendacky@amd.com>
Acked-by: default avatarGerd Hoffmann <kraxel@redhat.com>
Acked-by: default avatarJiewen Yao <jiewen.yao@intel.com>
Reviewed-by: default avatarRay Ni <ray.ni@intel.com>
parent ad629b5c
## @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
## @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
/** @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;
}
## @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
## @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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment