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/meson.build b/meson.build
index bb9c5e9..c338266 100644
--- a/meson.build
+++ b/meson.build
@@ -71,7 +71,6 @@
     ]
     extra_dependencies += [
         dependency('libdt-api'),
-        dependency('fmt'),
         cxx.find_library('ekb'),
         cxx.find_library('ipl'),
     ]
@@ -96,6 +95,7 @@
         'procedures/common/cfam_reset.cpp',
         'procedures/common/enter_mpreboot.cpp',
         'procedures/common/collect_sbe_hb_data.cpp',
+        'util.cpp',
     ] + extra_sources,
     dependencies: [
         dependency('libgpiodcxx'),
@@ -104,6 +104,7 @@
         dependency('phosphor-logging'),
         dependency('sdbusplus'),
         dependency('threads'),
+        dependency('fmt'),
     ] + extra_dependencies,
     install: true
 )