Include zone conditions when generating fan defs
Change-Id: I1eb063a584e935d48bd5d314dea777a53417c83b
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
diff --git a/configure.ac b/configure.ac
index 4ee8717..fd22106 100644
--- a/configure.ac
+++ b/configure.ac
@@ -104,6 +104,12 @@
AC_SUBST([ZONE_EVENTS_ARG], ["-e ${ZONE_EVENTS_YAML_FILE}"])
])
+ AC_ARG_VAR(ZONE_CONDITIONS_YAML_FILE,
+ [The zone conditions definition file to use])
+ AS_IF([test "x$ZONE_CONDITIONS_YAML_FILE" != "x"], [
+ AC_SUBST([ZONE_CONDITIONS_ARG], ["-c ${ZONE_CONDITIONS_YAML_FILE}"])
+ ])
+
AC_ARG_VAR(FAN_ZONE_OUTPUT_DIR,
[The output directory for the generated fan zone data file])
AS_IF([test "x$FAN_ZONE_OUTPUT_DIR" == "x"],
@@ -116,6 +122,7 @@
-f $FAN_DEF_YAML_FILE \
-z $FAN_ZONE_YAML_FILE \
$ZONE_EVENTS_ARG \
+ $ZONE_CONDITIONS_ARG \
-o $FAN_ZONE_OUTPUT_DIR])
AC_CONFIG_FILES([control/Makefile])
])