summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/timezone/tzdata.bb
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 16:00:46 +0100
commit8633b278ef6168352e3074965a82b14093c783fb (patch)
tree8311be2045d5b67736b53d9832d06195c1e87d45 /meta/recipes-extended/timezone/tzdata.bb
parentcdae8c729b649cf587647b1160bfa677a9b88b80 (diff)
downloadpoky-8633b278ef6168352e3074965a82b14093c783fb.tar.gz
poky-8633b278ef6168352e3074965a82b14093c783fb.tar.bz2
poky-8633b278ef6168352e3074965a82b14093c783fb.zip
timezone: include leap second data in tzdata-core
Conversion between UTC and continuous time scales like TAI requires information about leap seconds. (From OE-Core rev: ce8f6f139a82eeb20cc7cb9f7950b42684775ed8) Signed-off-by: Peter A. Bigot <pab@pabigot.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/timezone/tzdata.bb')
-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 \