oem-ibm: Builds filetable lazily
Adds support for lid files from file table to be patched when host is
off. FileTable is rebuilt when a getFileTable request is received.
Change-Id: Ief3afb698ba4fe8b871e85c9b7c9eff1e4699daa
Signed-off-by: Rahul D S <rahulds.rahul@gmail.com>
diff --git a/oem/ibm/libpldmresponder/oem_ibm_handler.hpp b/oem/ibm/libpldmresponder/oem_ibm_handler.hpp
index 6c175aa..f859c1b 100644
--- a/oem/ibm/libpldmresponder/oem_ibm_handler.hpp
+++ b/oem/ibm/libpldmresponder/oem_ibm_handler.hpp
@@ -2,6 +2,7 @@
#include "collect_slot_vpd.hpp"
#include "common/utils.hpp"
+#include "file_table.hpp"
#include "inband_code_update.hpp"
#include "libpldmresponder/bios_config.hpp"
#include "libpldmresponder/oem_handler.hpp"
@@ -92,6 +93,7 @@
setEventReceiverCnt = 0;
disableWatchDogTimer();
startStopTimer(false);
+ pldm::filetable::clearFileTable();
}
else if (propVal ==
"xyz.openbmc_project.State.Host.HostState.Running")