tools: remove phosphor-ipmi-blobs dependency
The host tool depended on the BMC header: firmware_handler.hpp because
it defined the flags. This header depends on phosphor-ipmi-blobs,
therefore the host-tool depends on this. Move the flags into a separate
common header file and snip this dependency.
Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: Id2ad33a1611c02605a1ed5c695429d0451eb98d4
diff --git a/configure.ac b/configure.ac
index 929413a..756c89b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -64,6 +64,12 @@
)
PKG_CHECK_MODULES([PHOSPHOR_LOGGING], [phosphor-logging])
+
+ AC_CHECK_HEADER(
+ [blobs-ipmid/blobs.hpp],
+ [],
+ [AC_MSG_ERROR(["phosphor-ipmi-blobs required and not found."])]
+ )
])
# These packages are required for both the BMC and the host-tool.
@@ -81,11 +87,6 @@
[],
[AC_MSG_ERROR([Could not find libpci... pciutils package required])]
)
-AC_CHECK_HEADER(
- [blobs-ipmid/blobs.hpp],
- [],
- [AC_MSG_ERROR(["phosphor-ipmi-blobs required and not found."])]
-)
AX_PTHREAD([], [AC_MSG_ERROR(["pthread required and not found"])])
# Configurability