Move Jsons, services and rules to VPD repo
This commit moves Jsons, service files and rules to the VPD repo,
and installing it by meson.
Test: Tested the image on simics and a rainier system , booted to
standby succesfully.
Also, I verified all the jsons, rules and service files are in the
appropriate location.
Signed-off-by: Alpana Kumari <alpankum@in.ibm.com>
Change-Id: I538b7159e5226134c3e0d16bbb1686166cd17441
diff --git a/meson.build b/meson.build
index 73e472d..e809776 100644
--- a/meson.build
+++ b/meson.build
@@ -157,6 +157,40 @@
subdir('vpd-manager')
endif
+systemd_system_unit_dir = dependency('systemd').get_variable(
+ pkgconfig: 'systemdsystemunitdir')
+
+udev_dir = dependency('udev').get_variable(
+ pkgconfig: 'udev_dir')
+
+install_data(
+ 'ibm_vpd/system-vpd.service',
+ install_dir: systemd_system_unit_dir)
+
+install_data(
+ 'ibm_vpd/ibm-vpd-parser@.service',
+ install_dir: systemd_system_unit_dir)
+
+install_data(
+ 'ibm_vpd/com.ibm.VPD.Manager.service',
+ install_dir: systemd_system_unit_dir)
+
+install_data(
+ 'ibm_vpd/wait-vpd-parsers.service',
+ install_dir: systemd_system_unit_dir)
+
+install_data(
+ 'ibm_vpd/wait-vpd-parsers.sh',
+ install_mode: 'rwxr-xr-x',
+ install_dir: get_option('bindir'))
+
+install_data(
+ ['ibm_vpd/70-ibm-vpd-parser.rules'],
+ install_dir: udev_dir / 'rules.d')
+
+package_datadir = join_paths('share', 'vpd')
+install_subdir('ibm_vpd/fru/', install_dir: package_datadir, strip_directory: true)
+
else
FRUGEN = '$srcdir/extra-properties.py -e' + get_option('FRU_YAML')
PROPGEN = '$srcdir/extra-properties.py -e' + get_option('PROP_YAML')