meta-somdevices: Created tzdata.bbappend to use Madrid as default timezone.
authorAlejandro Benete <abenete@somdevices.com>
Tue, 30 Mar 2021 09:04:55 +0000 (11:04 +0200)
committerAlejandro Benete <abenete@somdevices.com>
Tue, 30 Mar 2021 09:04:55 +0000 (11:04 +0200)
Signed-off-by: Alejandro Benete <abenete@somdevices.com>
recipes-somdevices/tzdata/tzdata.bbappend [new file with mode: 0644]

diff --git a/recipes-somdevices/tzdata/tzdata.bbappend b/recipes-somdevices/tzdata/tzdata.bbappend
new file mode 100644 (file)
index 0000000..07dbd9a
--- /dev/null
@@ -0,0 +1,6 @@
+#RDEPENDS_${PN} += "bash"
+#FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
+
+do_install_append () {
+    ln -s -r -f ${D}${datadir}/zoneinfo/Europe/Madrid ${D}${sysconfdir}/localtime
+}