Move service file into its own repo

Move the service file for phosphor-time-manager from the bitbake recipe to
the source repository.

There is no need of making the root object path and
the busname as configurable variable,Hence this commit
also removes those configure variables.

Tested: Service file were getting installed where expected.

Signed-off-by: Ratan Gupta <ratagupt@linux.vnet.ibm.com>
Change-Id: Ib297b4a1b35400ce34962b1bdaa59c6441f24b19
diff --git a/meson.build b/meson.build
index af453fe..528b1d5 100644
--- a/meson.build
+++ b/meson.build
@@ -45,8 +45,6 @@
 # Get the config data and enable options
 
 conf_data = configuration_data()
-conf_data.set_quoted('BUSNAME', get_option('busname'))
-conf_data.set_quoted('OBJPATH_BMC', get_option('obj_path_bmc'))
 conf_data.set('DEFAULT_TIME_MODE', get_option('default_time_mode'))
 
 configure_file(output: 'config.h', configuration: conf_data)
@@ -69,6 +67,20 @@
                                  dependencies : deps)
 ############################################################################
 
+# Install the files into the build directory
+
+systemd = dependency ('systemd')
+systemd_system_unit_dir = systemd.get_pkgconfig_variable('systemdsystemunitdir',
+                                                         define_variable: ['prefix',
+                                                                           get_option('prefix')
+                                                                          ])
+configure_file(input : 'xyz.openbmc_project.Time.Manager.service',
+               output : 'xyz.openbmc_project.Time.Manager.service',
+               copy : true,
+               install_dir : systemd_system_unit_dir)
+
+#############################################################################
+
 # Build binaries
 
 executable('phosphor-time-manager',