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.hpp b/libpldmresponder/bios.hpp
index 23f1318..6923063 100644
--- a/libpldmresponder/bios.hpp
+++ b/libpldmresponder/bios.hpp
@@ -3,6 +3,7 @@
#include "bios_config.hpp"
#include "bios_table.hpp"
#include "common/instance_id.hpp"
+#include "platform_config.hpp"
#include "pldmd/handler.hpp"
#include "requester/handler.hpp"
@@ -33,11 +34,11 @@
* @param[in] eid - MCTP EID of host firmware
* @param[in] instanceIdDb - pointer to an InstanceIdDb object
* @param[in] handler - PLDM request handler
- * @param[in] systemConfig - pointer to SystemConfig object
+ * @param[in] platformConfigHandler - pointer to platform config object
*/
Handler(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);
/** @brief Handler for GetDateTime
*