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_config.cpp b/libpldmresponder/bios_config.cpp
index abc7b2a..8b52a8c 100644
--- a/libpldmresponder/bios_config.cpp
+++ b/libpldmresponder/bios_config.cpp
@@ -45,15 +45,16 @@
const char* jsonDir, const char* tableDir, DBusHandler* const dbusHandler,
int fd, uint8_t eid, pldm::InstanceIdDb* instanceIdDb,
pldm::requester::Handler<pldm::requester::Request>* handler,
- pldm::responder::oem_bios::Handler* oemBiosHandler) :
+ pldm::responder::platform_config::Handler* platformConfigHandler) :
jsonDir(jsonDir),
tableDir(tableDir), dbusHandler(dbusHandler), fd(fd), eid(eid),
- instanceIdDb(instanceIdDb), handler(handler), oemBiosHandler(oemBiosHandler)
+ instanceIdDb(instanceIdDb), handler(handler),
+ platformConfigHandler(platformConfigHandler)
{
- if (oemBiosHandler)
+ if (platformConfigHandler)
{
- auto systemType = oemBiosHandler->getPlatformName();
+ auto systemType = platformConfigHandler->getPlatformName();
if (systemType.has_value())
{
sysType = systemType.value();