Added openpower util file support
Created common file to keep all the common util functions.
In this commit
- added getService function to get d-bus service for given
interface.
- updated create_pel.cpp to start using common util interface.
- Moved formatting library to common build dependency for
both meson and automake.
Tested: Manually verified.
Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
Change-Id: I39a642710c0476e81fae020eb3b4216ca8ce9ad5
diff --git a/configure.ac b/configure.ac
index a9b6c53..95b057c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -77,9 +77,6 @@
LIBS="$LIBS $LIBDT_API_LIBS"
CFLAGS="$CFLAGS $LIBDT_API_CFLAGS"
- PKG_CHECK_MODULES([FMT], [fmt])
- LIBS="$LIBS $FMT_LIBS"
-
CHIPS+=" phal common"
AC_CONFIG_FILES([set-spi-mux.service])
AC_CONFIG_FILES([phal-reinit-devtree.service])
@@ -99,6 +96,8 @@
PKG_CHECK_MODULES([SYSTEMD], [libsystemd >= 221])
PKG_CHECK_MODULES([PHOSPHOR_LOGGING], [phosphor-logging])
PKG_CHECK_MODULES([PHOSPHOR_DBUS_INTERFACES], [phosphor-dbus-interfaces])
+PKG_CHECK_MODULES([FMT], [fmt])
+LIBS="$LIBS $FMT_LIBS"
PKG_PROG_PKG_CONFIG
AC_ARG_WITH([systemdsystemunitdir],