oem ibm: marker LID validation
This commit adds code for writing marker LID
from Host and also send a PlatformEventMessage
after validation.
This commit also subscribes for the interface added
signal to fetch the new image id and sends the relevant
sensor event to host
Change-Id: I92476beca18e6dd255f372dd82d6eaeca18e282c
Signed-off-by: Sampa Misra <sampmisr@in.ibm.com>
diff --git a/oem/ibm/libpldmresponder/file_io_by_type.cpp b/oem/ibm/libpldmresponder/file_io_by_type.cpp
index 43c2b91..bdc1332 100644
--- a/oem/ibm/libpldmresponder/file_io_by_type.cpp
+++ b/oem/ibm/libpldmresponder/file_io_by_type.cpp
@@ -142,6 +142,12 @@
return std::make_unique<LidHandler>(fileHandle, false);
break;
}
+ case PLDM_FILE_TYPE_LID_MARKER:
+ {
+ return std::make_unique<LidHandler>(fileHandle, false,
+ PLDM_FILE_TYPE_LID_MARKER);
+ break;
+ }
case PLDM_FILE_TYPE_DUMP:
{
return std::make_unique<DumpHandler>(fileHandle);