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/meson.build b/pldmtool/meson.build
index 865e9f0..765bdba 100644
--- a/pldmtool/meson.build
+++ b/pldmtool/meson.build
@@ -6,6 +6,7 @@
'pldm_platform_cmd.cpp',
'pldm_bios_cmd.cpp',
'pldm_fru_cmd.cpp',
+ 'pldm_fw_update_cmd.cpp',
'pldmtool.cpp',
]