meta-g220a: Add me-time-sync
g220a BMC needs to get time from ME on start.
Add me-time-sync package that fetches time from ME via ipmb, and set the
time to BMC via `date` command.
Tested: Verify the time is set on BMC boots
(From meta-bytedance rev: c8640d007d25676261acc04317e5612269bd3ed5)
Signed-off-by: Lei YU <yulei.sh@bytedance.com>
Change-Id: I0e7f1d249cf743e3477843a67a6d2e6250c43aa6
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
diff --git a/meta-bytedance/meta-g220a/recipes-phosphor/datetime/me-time-sync/me-time-sync.service b/meta-bytedance/meta-g220a/recipes-phosphor/datetime/me-time-sync/me-time-sync.service
new file mode 100644
index 0000000..e0ee717
--- /dev/null
+++ b/meta-bytedance/meta-g220a/recipes-phosphor/datetime/me-time-sync/me-time-sync.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Sync time from ME
+Wants=ipmb.service
+After=ipmb.service
+
+[Service]
+Type=oneshot
+ExecStart=/usr/bin/me-time-sync.sh
+
+[Install]
+WantedBy=multi-user.target