From: Yann E. MORIN <yann.morin.1998@free.fr>
To: buildroot@busybox.net
Subject: [Buildroot] How to use the TZ selection ?
Date: Thu, 22 May 2014 21:22:46 +0200 [thread overview]
Message-ID: <20140522192245.GA9460@free.fr> (raw)
In-Reply-To: <F979DDABBA2E48ADB211714423219F77@JohanW7>
Sagaert, All,
On 2014-05-22 21:01 +0200, Sagaert Johan spake thusly:
> How is the TZ menu option intended to be used ?
> In my older builds I had a file /etc/TZ, but using the TZ menu
> options creates a symlink to a directory so /etc/TZ is a directory
> Containing al timezone definitions.
> This does not seem to work since uClibc expects a file /etc/TZ
> Am I missing something ?
I've just tried it here with:
BR2_TARGET_TZ_INFO=y
BR2_TARGET_TZ_ZONELIST="default"
BR2_TARGET_LOCALTIME="Europe/Paris"
And it gives me:
$ stat -c '%N' target/etc/TZ
'target/etc/TZ' -> '../usr/share/zoneinfo/uclibc/Europe/Paris'
$ file target/etc/../usr/share/zoneinfo/uclibc/Europe/Paris
target/etc/../usr/share/zoneinfo/uclibc/Europe/Paris: ASCII text
$ cat target/etc/../usr/share/zoneinfo/uclibc/Europe/Paris
# Europe/Paris
CET-1CEST,M3.5.0,M10.5.0/3
So, this is indeed a symlink, but it points to a file, which contains a
valid uClibc timezone spec.
What is your BR2_TARGET_LOCALTIME set to? This should be set to a valid
location, usually a big city in an area.
The valid list is somewhere in the tzdata source tree (I'll leave as an
exercise to you to find where! ;-) )
Regards,
Yann E. MORIN.
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
next prev parent reply other threads:[~2014-05-22 19:22 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-22 19:01 [Buildroot] How to use the TZ selection ? Sagaert Johan
2014-05-22 19:22 ` Yann E. MORIN [this message]
2014-05-22 19:52 ` Sagaert Johan
2014-05-22 20:02 ` Yann E. MORIN
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140522192245.GA9460@free.fr \
--to=yann.morin.1998@free.fr \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox