eSEL: Add severity and callout to the error metadata
The sensor number in the eSEL data is mapped to the inventory
object path and the callout association is added to the error
metadata. The mappings are generated from the MRW. The severity
of the eSEL is inferred from the eSEL data and the corresponding
error level is updated in the metadata. This implementation is
moved from phosphor-ipmi-host to this repository, since this is
OpenPower specific.
Change-Id: I0bf0fe3776b593c6d38a958a23a140aeae71e754
Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
diff --git a/configure.ac b/configure.ac
index 4683d40..b002e0a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -70,6 +70,10 @@
[CONTROL_HOST_OBJ_MGR="/org/open_power/control"])
AC_DEFINE_UNQUOTED([CONTROL_HOST_OBJ_MGR], ["$CONTROL_HOST_OBJ_MGR"], [The Control Host D-Bus Object Manager])
+AS_IF([test "x$INVSENSOR_YAML_GEN" == "x"], [INVSENSOR_YAML_GEN="inventory-sensor-example.yaml"])
+INVSENSORGEN="$PYTHON ${srcdir}/scripts/inventory-sensor.py -i $INVSENSOR_YAML_GEN"
+AC_SUBST(INVSENSORGEN)
+
AC_DEFINE(MAPPER_BUS_NAME, "xyz.openbmc_project.ObjectMapper",
[The object mapper bus name])