pldmtool: Add GetStatus firmware update command
Tested:
pldmtool fw_update --help
firmware update type commands
Usage: ./pldmtool fw_update [OPTIONS] SUBCOMMAND
Options:
-h,--help Print this help message and exit
Subcommands:
GetStatus Status of the FD
pldmtool fw_update GetStatus -m <eid>
{ "CurrentState": "IDLE",
"PreviousState": "IDLE",
"AuxState": "Not applicable in current state",
"AuxStateStatus": "AuxState is In Progress or Success",
"ProgressPercent": 101,
"ReasonCode": "Initialization of firmware device has occurred",
"UpdateOptionFlagsEnabled": 0
}
Signed-off-by: Tom Joseph <rushtotom@gmail.com>
Change-Id: I2eb41996ab0dcb1d00ac5b8b0e55846b0d4b28a5
diff --git a/pldmtool/pldmtool.cpp b/pldmtool/pldmtool.cpp
index f52c1e8..45cd9f8 100644
--- a/pldmtool/pldmtool.cpp
+++ b/pldmtool/pldmtool.cpp
@@ -2,6 +2,7 @@
#include "pldm_bios_cmd.hpp"
#include "pldm_cmd_helper.hpp"
#include "pldm_fru_cmd.hpp"
+#include "pldm_fw_update_cmd.hpp"
#include "pldm_platform_cmd.hpp"
#include "pldmtool/oem/ibm/pldm_oem_ibm.hpp"
@@ -72,6 +73,7 @@
pldmtool::bios::registerCommand(app);
pldmtool::platform::registerCommand(app);
pldmtool::fru::registerCommand(app);
+ pldmtool::fw_update::registerCommand(app);
#ifdef OEM_IBM
pldmtool::oem_ibm::registerCommand(app);