summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter A. Bigot <pab@pabigot.com>2020-08-29 16:26:31 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-09-02 15:58:05 +0100
commitce8f6f139a82eeb20cc7cb9f7950b42684775ed8 (patch)
treebdff2c3e0f76fffadc34953e4d86c92c9778e703
parent950ee8ebc0cea0cca33573c51808cd170040e506 (diff)
downloadopenembedded-core-contrib-ce8f6f139a82eeb20cc7cb9f7950b42684775ed8.tar.gz
openembedded-core-contrib-ce8f6f139a82eeb20cc7cb9f7950b42684775ed8.tar.bz2
openembedded-core-contrib-ce8f6f139a82eeb20cc7cb9f7950b42684775ed8.zip
timezone: include leap second data in tzdata-core
Conversion between UTC and continuous time scales like TAI requires information about leap seconds. Signed-off-by: Peter A. Bigot <pab@pabigot.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-extended/timezone/tzdata.bb4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/recipes-extended/timezone/tzdata.bb b/meta/recipes-extended/timezone/tzdata.bb
index 1e2b440fb0..6aac516f69 100644
--- a/meta/recipes-extended/timezone/tzdata.bb
+++ b/meta/recipes-extended/timezone/tzdata.bb
@@ -37,6 +37,8 @@ do_install () {
cp -pP "${S}/zone.tab" ${D}${datadir}/zoneinfo
cp -pP "${S}/zone1970.tab" ${D}${datadir}/zoneinfo
cp -pP "${S}/iso3166.tab" ${D}${datadir}/zoneinfo
+ cp -pP "${S}/leapseconds" ${D}${datadir}/zoneinfo
+ cp -pP "${S}/leap-seconds.list" ${D}${datadir}/zoneinfo
# Install default timezone
if [ -e ${D}${datadir}/zoneinfo/${DEFAULT_TIMEZONE} ]; then
@@ -145,6 +147,8 @@ RPROVIDES_tzdata-misc = "tzdata-misc"
FILES_tzdata-core += " \
${sysconfdir}/localtime \
${sysconfdir}/timezone \
+ ${datadir}/zoneinfo/leapseconds \
+ ${datadir}/zoneinfo/leap-seconds.list \
${datadir}/zoneinfo/Pacific/Honolulu \
${datadir}/zoneinfo/America/Anchorage \
${datadir}/zoneinfo/America/Los_Angeles \