system: zoneinfo usable by musl, too
authorYann E. MORIN <yann.morin.1998@free.fr>
Tue, 9 Aug 2016 20:25:55 +0000 (22:25 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 9 Aug 2016 20:50:21 +0000 (22:50 +0200)
Currently, we limit installing zoneinfo to non-musl toolchain, by lack
of knowledge on how it would work on musl.

Turns out that musl uses the same zoneinfo format as glibc does.

Make it possible to install the TZ info whatever the C library; for
musl, use tzdata as for glibc.

Thanks Rich! ;-)

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Rich Felker <dalias@aerifal.cx>
Cc: Marc Khouri <marc@khouri.ca>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
system/Config.in

index 4c7efac59cdf7b6f005149f3713491f083a65feb..585570713b2ab64e7511039d61ed4fdf2cd98481 100644 (file)
@@ -418,9 +418,8 @@ config BR2_GENERATE_LOCALE
 
 config BR2_TARGET_TZ_INFO
        bool "Install timezone info"
-       # No timezone for musl; only for uClibc or glibc.
-       depends on BR2_TOOLCHAIN_USES_GLIBC || BR2_TOOLCHAIN_USES_UCLIBC
        select BR2_PACKAGE_TZDATA if BR2_TOOLCHAIN_USES_GLIBC
+       select BR2_PACKAGE_TZDATA if BR2_TOOLCHAIN_USES_MUSL
        select BR2_PACKAGE_TZ if BR2_TOOLCHAIN_USES_UCLIBC
        help
          Say 'y' here to install timezone info.