Allow JSON use on all apps except fan control
Added a `--disable-json-control` configure flag that can be added to the
use of `--enable-json` to disable the use of JSON for fan control in
favor of using a YAML based config. This only disables the use of JSON
for fan control while still enabling the use of JSON on the other fan
applications that support it.
Tested:
Configured with `--enable-json` enables all fan apps to use JSON
Configured with `--enable-json --disable-json-control` enables all
fan apps except fan control to use JSON
Using `--enable-json --disable-json-control` fan control uses YAML
based configs.
The use of only `--disable-json-control` has no affect and all fan
apps use YAML based configs
Change-Id: Id48310d1fea558e4957c8dbc58aaee7512b004f1
Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
diff --git a/control/Makefile.am b/control/Makefile.am
index da67ee5..27a5c83 100644
--- a/control/Makefile.am
+++ b/control/Makefile.am
@@ -30,7 +30,7 @@
${PHOSPHOR_DBUS_INTERFACES_CFLAGS} \
-flto
-if WANT_JSON
+if WANT_JSON_CONTROL
SUBDIRS = json .
phosphor_fan_control_LDADD += ${builddir}/json/libfan-control-json.la
phosphor_fan_control_SOURCES += json_parser.cpp