Move services into repo
Add the services from meta-witherspoon into this repo.
Signed-off-by: Lei YU <mine260309@gmail.com>
Change-Id: I3e652b56d5635d3b31ac0ba32f9be2ebfb950ab7
diff --git a/meson.build b/meson.build
index 9cc02ad..45212d5 100644
--- a/meson.build
+++ b/meson.build
@@ -23,6 +23,22 @@
sdbuspp = find_program('sdbus++')
sdeventplus = dependency('sdeventplus')
+systemd = dependency('systemd')
+servicedir = systemd.get_pkgconfig_variable('systemdsystemunitdir')
+
+services = [
+ 'power-supply-monitor@.service',
+ 'pseq-monitor-pgood.service',
+ 'pseq-monitor.service'
+]
+
+foreach service : services
+ configure_file(input: 'services/' + service,
+ output: service,
+ copy: true,
+ install_dir: servicedir)
+endforeach
+
conf = configuration_data()
conf.set_quoted(
'INPUT_HISTORY_BUSNAME_ROOT', get_option('input-history-busname-root'))