Add updateable association to active BMC FW object
Add 'updateable' association to the active BMC
firmware version object. This 'updateable' association
can be used to mark all the firmware components
which can be programmable from BMC interfaces like
Redfish.
Tested:
- Able to query the updateable endpoint objects.
Req:
busctl call xyz.openbmc_project.ObjectMapper
/xyz/openbmc_project/software/updateable
org.freedesktop.DBus.Properties Get ss
xyz.openbmc_project.Association endpoints
Res:
v as 1 "/xyz/openbmc_project/software/1201fc36"
- Get on FirmwareInventory shows correct value
for 'Updateable' property. Redfish support is
added as new commit.
URI: /redfish/v1/UpdateService/FirmwareInventory/1201fc36
Res: Can see "Updateable": true output
Change-Id: Id74a134dacdea86399d10fbe0a4b0e62728d1cf4
Signed-off-by: AppaRao Puli <apparao.puli@linux.intel.com>
diff --git a/configure.ac b/configure.ac
index 403ea8d..5fba420 100755
--- a/configure.ac
+++ b/configure.ac
@@ -82,6 +82,9 @@
AC_DEFINE(FUNCTIONAL_FWD_ASSOCIATION, "functional", [The name of the functional forward association.])
AC_DEFINE(FUNCTIONAL_REV_ASSOCIATION, "software_version", [The functional reverse association.])
+AC_DEFINE(UPDATEABLE_FWD_ASSOCIATION, "updateable", [The name of the updateable forward association.])
+AC_DEFINE(UPDATEABLE_REV_ASSOCIATION, "software_version", [The updateable reverse association.])
+
AC_ARG_VAR(VERSION_BUSNAME, [The Dbus busname to own])
AS_IF([test "x$VERSION_BUSNAME" == "x"], [VERSION_BUSNAME="xyz.openbmc_project.Software.Version"])
AC_DEFINE_UNQUOTED([VERSION_BUSNAME], ["$VERSION_BUSNAME"], [The DBus busname to own])