Adding Platform specific PDR support
- Adding platform check to generate pdr based on platform type.
- Currently PDR generation is happening based on default
configuration, so this commit adds support to generate PDR's based
in the platform type.
Testing:
- Added traces and check from which path the files has been taken for
pdr generation.
- Removed power supply from default path and oem layer and identified
that power supply pdr is not generating.
Change-Id: I6bedf06be7392e02c1ad32af7a552a5a4d6d42c0
Signed-off-by: Kamalkumar Patel <kamalkumar.patel@ibm.com>
diff --git a/libpldmresponder/bios.cpp b/libpldmresponder/bios.cpp
index 32d68af..637b213 100644
--- a/libpldmresponder/bios.cpp
+++ b/libpldmresponder/bios.cpp
@@ -69,11 +69,12 @@
DBusHandler dbusHandler;
-Handler::Handler(int fd, uint8_t eid, pldm::InstanceIdDb* instanceIdDb,
- pldm::requester::Handler<pldm::requester::Request>* handler,
- pldm::responder::oem_bios::Handler* oemBiosHandler) :
+Handler::Handler(
+ int fd, uint8_t eid, pldm::InstanceIdDb* instanceIdDb,
+ pldm::requester::Handler<pldm::requester::Request>* handler,
+ pldm::responder::platform_config::Handler* platformConfigHandler) :
biosConfig(BIOS_JSONS_DIR, BIOS_TABLES_DIR, &dbusHandler, fd, eid,
- instanceIdDb, handler, oemBiosHandler)
+ instanceIdDb, handler, platformConfigHandler)
{
biosConfig.removeTables();
biosConfig.buildTables();