RedfishPkg/RedfishPlatformCredentialIpmiLib: IPMI implementation

This library follows Redfish Host Interface specification and use IPMI
command to get bootstrap account credential(NetFn 2Ch, Command 02h)
from BMC. RedfishHostInterfaceDxe will use this credential for the
following communication between BIOS and BMC.

Signed-off-by: Nickle Wang <nicklew@nvidia.com>
Cc: Abner Chang <abner.chang@amd.com>
Cc: Igor Kulchytskyy <igork@ami.com>
Cc: Nick Ramirez <nramirez@nvidia.com>
Reviewed-by: Igor Kulchytskyy <igork@ami.com>
This commit is contained in:
Nickle Wang
2023-03-08 10:53:56 +08:00
committed by mergify[bot]
parent 53eb26b238
commit 6f0c65cdb0
6 changed files with 599 additions and 0 deletions

View File

@@ -0,0 +1,42 @@
## @file
# INF file for RedfishPlatformCredentialIpmiLib.
#
# Copyright (c) 2022-2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
#
# SPDX-License-Identifier: BSD-2-Clause-Patent
#
##
[Defines]
INF_VERSION = 0x0001000b
BASE_NAME = RedfishPlatformCredentialIpmiLib
FILE_GUID = 9C45D622-4C66-417F-814C-F76246D97233
MODULE_TYPE = DXE_DRIVER
VERSION_STRING = 1.0
LIBRARY_CLASS = RedfishPlatformCredentialIpmiLib
[Sources]
RedfishPlatformCredentialIpmiLib.c
RedfishPlatformCredentialIpmiLib.h
[Packages]
MdePkg/MdePkg.dec
MdeModulePkg/MdeModulePkg.dec
RedfishPkg/RedfishPkg.dec
[LibraryClasses]
UefiLib
DebugLib
IpmiLib
MemoryAllocationLib
BaseMemoryLib
UefiRuntimeServicesTableLib
[Pcd]
gEfiRedfishPkgTokenSpaceGuid.PcdRedfishDisableBootstrapCredentialService
[Guids]
gEfiRedfishVariableGuid
[Depex]
TRUE