tools: add configuration to enable PPC host memory access
Tested: Successfully updated on a Zaius (PPC platform) using ipmilpc
Change-Id: Ic744f6e0ca40df7aa3d5f914e2baef58114fa71b
Signed-off-by: Rui Zhang <ruizhan@google.com>
diff --git a/configure.ac b/configure.ac
index da2b0a9..4863dc1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -145,6 +145,15 @@
# Configurability
+# Enable ppc host memory access
+AC_ARG_ENABLE([ppc],
+ AS_HELP_STRING([--enable-ppc],
+ [Enable ppc host memory access.]))
+AM_CONDITIONAL([ENABLE_PPC], [test "x$enable_ppc" = "xyes"])
+AS_IF([test "x$enable_ppc" = "xyes"], [
+ AX_APPEND_COMPILE_FLAGS([-DENABLE_PPC], [CXXFLAGS])
+])
+
# Enable the reboot update mechanism
AC_ARG_ENABLE([reboot-update],
AS_HELP_STRING([--enable-reboot-update],