From 28c2e7350a7d22a8314598101085b04f2b1ba274 Mon Sep 17 00:00:00 2001 From: Ratan Gupta Date: Sat, 4 Mar 2017 08:53:52 +0530 Subject: 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 --- configure.ac | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'configure.ac') 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 -- cgit v1.2.1