oem-ibm: Sync boot side file with bios attributes
This change adds support to update the boot side file to keep it
in sync with boot side bios attributes
Change-Id: I2bea293500c69a883f400ddaadc436705bbe5ab4
Signed-off-by: Archana Kakani <archana.kakani@ibm.com>
diff --git a/pldmd/oem_ibm.hpp b/pldmd/oem_ibm.hpp
index 3f5802b..e3fbddf 100644
--- a/pldmd/oem_ibm.hpp
+++ b/pldmd/oem_ibm.hpp
@@ -52,6 +52,7 @@
* @param[in] platformHandler - platformHandler handler
* @param[in] fruHandler - fruHandler handler
* @param[in] baseHandler - baseHandler handler
+ * @param[in] biosHandler - biosHandler handler
* @param[in] reqHandler - reqHandler handler
*/
explicit OemIBM(
@@ -62,6 +63,7 @@
responder::platform::Handler* platformHandler,
responder::fru::Handler* fruHandler,
responder::base::Handler* baseHandler,
+ responder::bios::Handler* biosHandler,
pldm::requester::Handler<pldm::requester::Request>* reqHandler) :
dBusIntf(dBusIntf), mctp_fd(mctp_fd), mctp_eid(mctp_eid), repo(repo),
instanceIdDb(instanceIdDb), event(event), invoker(invoker),
@@ -73,6 +75,9 @@
createOemIbmFruHandler();
oemIbmFruHandler->setIBMFruHandler(fruHandler);
+ createOemIbmBiosHandler();
+ biosHandler->setOemBiosHandler(oemIbmBiosHandler.get());
+
createCodeUpdate();
createSlotHandler();
createOemPlatformHandler();
@@ -119,6 +124,13 @@
instanceIdDb, event, reqHandler);
}
+ /** @brief Method for creating oemIbmBiosHandler */
+ void createOemIbmBiosHandler()
+ {
+ oemIbmBiosHandler =
+ std::make_unique<responder::oem_ibm_bios::Handler>();
+ }
+
/** @brief Method for creating oemIbmPlatformHandler */
void createOemIbmPlatformHandler()
{
@@ -211,6 +223,9 @@
/** @brief oem IBM Fru handler*/
pldm::responder::oem_ibm_fru::Handler* oemIbmFruHandler = nullptr;
+ /** @brief pointer to the oem IBM Bios handler*/
+ std::unique_ptr<responder::oem_bios::Handler> oemIbmBiosHandler{};
+
std::unique_ptr<pldm::led::HostLampTest> hostLampTest;
/** @brief oem IBM Utils handler*/