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/ibm_vpd/system-vpd.service b/ibm_vpd/system-vpd.service
new file mode 100644
index 0000000..7ad0123
--- /dev/null
+++ b/ibm_vpd/system-vpd.service
@@ -0,0 +1,19 @@
+[Unit]
+Description=System VPD Collection
+Wants=mapper-wait@-xyz-openbmc_project-inventory.service
+After=mapper-wait@-xyz-openbmc_project-inventory.service
+Wants=obmc-power-reset-on@0.target
+After=obmc-power-reset-on@0.target
+Wants=mapper-wait@-xyz-openbmc_project-state-chassis0.service
+After=mapper-wait@-xyz-openbmc_project-state-chassis0.service
+After=set-spi-mux.service
+Before=phosphor-discover-system-state@0.service
+
+[Service]
+ExecStart=/usr/bin/env ibm-read-vpd --file /sys/bus/i2c/drivers/at24/8-0050/eeprom
+SyslogIdentifier=ibm-vpd-parser
+Type=oneshot
+RemainAfterExit=yes
+
+[Install]
+RequiredBy=multi-user.target