service_files: Add a simple service file

Tested: Verified that the @BINDIR@ is correctly overwritten

Signed-off-by: Brandon Kim <brandonkim@google.com>
Change-Id: I89feb7a133b3cabd75f8de7ee2b0c86d8003e8a4
diff --git a/service_files/meson.build b/service_files/meson.build
new file mode 100644
index 0000000..6b4dd8c
--- /dev/null
+++ b/service_files/meson.build
@@ -0,0 +1,9 @@
+systemd = dependency('systemd')
+conf_data = configuration_data()
+conf_data.set('BINDIR', get_option('prefix') / get_option('bindir'))
+configure_file(
+  input: 'xyz.openbmc_project.bios_bmc_smm_error_logger.service.in',
+  output: 'xyz.openbmc_project.bios_bmc_smm_error_logger.service',
+  configuration: conf_data,
+  install: true,
+  install_dir: systemd.get_variable(pkgconfig: 'systemdsystemunitdir'))