meta-google: systemd: Enable timesyncd by default

This enables timesync support for the gbmc distro.

Change-Id: Idb653e6b98a347b5d8c3a0b3a16c6a4abbe268ac
Signed-off-by: William A. Kennington III <wak@google.com>
diff --git a/meta-google/recipes-google/systemd/files/40-gbmc-time.conf b/meta-google/recipes-google/systemd/files/40-gbmc-time.conf
new file mode 100644
index 0000000..ca30e45
--- /dev/null
+++ b/meta-google/recipes-google/systemd/files/40-gbmc-time.conf
@@ -0,0 +1,10 @@
+[Time]
+ConnectionRetrySec=30
+PollIntervalMinSec=30
+PollIntervalMaxSec=60
+SaveIntervalSec=15
+# time.google.com addresses are stable, no need for DNS
+NTP=2001:4860:4806::
+NTP=2001:4860:4806:4::
+NTP=2001:4860:4806:8::
+NTP=2001:4860:4806:c::
diff --git a/meta-google/recipes-google/systemd/gbmc-systemd-config.bb b/meta-google/recipes-google/systemd/gbmc-systemd-config.bb
index 843053b..feb023b 100644
--- a/meta-google/recipes-google/systemd/gbmc-systemd-config.bb
+++ b/meta-google/recipes-google/systemd/gbmc-systemd-config.bb
@@ -12,12 +12,14 @@
   file://firmware-updates-pre.target \
   file://40-gbmc-forward.conf \
   file://40-system.conf \
+  file://40-gbmc-time.conf \
   "
 
 FILES:${PN}:append = " \
   ${systemd_unitdir}/coredump.conf.d/40-gbmc-coredump.conf \
   ${systemd_unitdir}/resolved.conf.d/40-gbmc-nomdns.conf \
   ${systemd_unitdir}/system.conf.d/40-system.conf \
+  ${systemd_unitdir}/timesyncd.conf.d/40-gbmc-time.conf \
   ${libdir}/sysctl.d/40-gbmc-forward.conf \
   "
 
@@ -49,6 +51,9 @@
 
   install -d -m 0755 ${D}${systemd_unitdir}/system.conf.d/
   install -D -m0644 ${WORKDIR}/40-system.conf ${D}${systemd_unitdir}/system.conf.d/
+
+  install -d -m 0755 ${D}${systemd_unitdir}/timesyncd.conf.d/
+  install -D -m0644 ${WORKDIR}/40-gbmc-time.conf ${D}${systemd_unitdir}/timesyncd.conf.d/
 }
 
 do_install:append:dev() {