diff options
author | Tom Joseph <tomjoseph@in.ibm.com> | 2017-02-21 16:22:33 +0530 |
---|---|---|
committer | Tom Joseph <tomjoseph@in.ibm.com> | 2017-02-21 16:24:52 +0530 |
commit | 51cb8eef48ffc2bbe165cb276a38c391b4185704 (patch) | |
tree | f7096bc2689c656dbea67c6642cfc6a1f8f2a583 | |
parent | 513d68e11cf6d392e847d39c743ce54ccaa0ebf7 (diff) | |
download | phosphor-host-ipmid-51cb8eef48ffc2bbe165cb276a38c391b4185704.tar.gz phosphor-host-ipmid-51cb8eef48ffc2bbe165cb276a38c391b4185704.zip |
Add environment variable for WHITELIST_CONF
Change-Id: Ib9bb50332c4203ccbbe72e3e5b9e641a51bdacbb
Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
-rw-r--r-- | Makefile.am | 1 | ||||
-rw-r--r-- | configure.ac | 5 |
2 files changed, 5 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am index 45860de..6c934ef 100644 --- a/Makefile.am +++ b/Makefile.am @@ -15,7 +15,6 @@ ipmid_LDFLAGS = $(SYSTEMD_LIBS) $(libmapper_LIBS) $(LIBADD_DLOPEN) -export-dynam # TODO: Rather than use -export-dynamic, we should use -export-symbol to have a # selective list of symbols. -WHITELIST_CONF ?= ${srcdir}/host-ipmid-whitelist.conf ipmiwhitelist.cpp: ${srcdir}/generate_whitelist.sh $(WHITELIST_CONF) $(SHELL) $^ > $@ diff --git a/configure.ac b/configure.ac index daba2c5..f9acc0f 100644 --- a/configure.ac +++ b/configure.ac @@ -51,6 +51,11 @@ AS_IF([test "x$enable_oe_sdk" == "xyes"], AC_SUBST([OESDK_TESTCASE_FLAGS], [$testcase_flags]) ) +AC_ARG_VAR(WHITELIST_CONF, [Paths to IPMI whitelisted commands conf files. (default = ${srcdir}/host-ipmid-whitelist.conf)]) +if test -z "$WHITELIST_CONF"; then + WHITELIST_CONF=${srcdir}/host-ipmid-whitelist.conf +fi + # Create configured output AC_CONFIG_FILES([Makefile test/Makefile]) AC_OUTPUT |