summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorRatan Gupta <ratagupt@in.ibm.com>2017-03-04 08:53:52 +0530
committerRatan Gupta <ratagupt@in.ibm.com>2017-03-15 09:45:34 +0530
commit28c2e7350a7d22a8314598101085b04f2b1ba274 (patch)
treec5d26725f11d79df6c3c8148bd2a15a438aaaa6a /configure.ac
parent47bf3edd55ad9d416626f7bd59885558420efc9f (diff)
downloadphosphor-host-ipmid-28c2e7350a7d22a8314598101085b04f2b1ba274.tar.gz
phosphor-host-ipmid-28c2e7350a7d22a8314598101085b04f2b1ba274.zip
build : provide sensor yaml as config
Make it possible for the phosphor-host-ipmid recipe to be able to supply the sensor YAML as configurable input. Use sensor-example.yaml as input. Change-Id: Iefbfeeff5561e6e90543fc7a69c04aeee5e76dd1 Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 4ffc554..b43adaf 100644
--- a/configure.ac
+++ b/configure.ac
@@ -57,6 +57,10 @@ if test -z "$WHITELIST_CONF"; then
WHITELIST_CONF=${srcdir}/host-ipmid-whitelist.conf
fi
+AS_IF([test "x$SENSOR_YAML_GEN" == "x"], [SENSOR_YAML_GEN="sensor-example.yaml"])
+SENSORGEN="$PYTHON ${srcdir}/scripts/sensor_gen.py -i $SENSOR_YAML_GEN"
+AC_SUBST(SENSORGEN)
+
# Create configured output
AC_CONFIG_FILES([Makefile test/Makefile])
AC_OUTPUT
OpenPOWER on IntegriCloud