mirror of
https://git.yoctoproject.org/poky
synced 2026-05-08 17:19:20 +00:00
tzdata: Allow controlling zoneinfo binary format
tzcode 2020b changed the default format from "-b fat" to "-b slim". Allow external control for the binary format. (From OE-Core rev: c9e8b716eb71d4526517825eacefb91ab2c1781c) Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
e10425cc7b
commit
0c2abb3d24
@@ -19,13 +19,17 @@ TZONES= "africa antarctica asia australasia europe northamerica southamerica \
|
||||
"
|
||||
# pacificnew
|
||||
|
||||
# "slim" is the default since 2020b
|
||||
# "fat" is needed by e.g. MariaDB's mysql_tzinfo_to_sql
|
||||
ZIC_FMT ?= "slim"
|
||||
|
||||
do_compile () {
|
||||
for zone in ${TZONES}; do \
|
||||
${STAGING_BINDIR_NATIVE}/zic -d ${WORKDIR}${datadir}/zoneinfo -L /dev/null \
|
||||
${STAGING_BINDIR_NATIVE}/zic -b ${ZIC_FMT} -d ${WORKDIR}${datadir}/zoneinfo -L /dev/null \
|
||||
${S}/${zone} ; \
|
||||
${STAGING_BINDIR_NATIVE}/zic -d ${WORKDIR}${datadir}/zoneinfo/posix -L /dev/null \
|
||||
${STAGING_BINDIR_NATIVE}/zic -b ${ZIC_FMT} -d ${WORKDIR}${datadir}/zoneinfo/posix -L /dev/null \
|
||||
${S}/${zone} ; \
|
||||
${STAGING_BINDIR_NATIVE}/zic -d ${WORKDIR}${datadir}/zoneinfo/right -L ${S}/leapseconds \
|
||||
${STAGING_BINDIR_NATIVE}/zic -b ${ZIC_FMT} -d ${WORKDIR}${datadir}/zoneinfo/right -L ${S}/leapseconds \
|
||||
${S}/${zone} ; \
|
||||
done
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user