From: Alexander Dahl <post@lespocky.de>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH] timezone: introduce option TIMEZONE_INSTALL_LOCALTIME for more flexibility with own rules
Date: Tue, 9 Oct 2012 18:03:38 +0200 [thread overview]
Message-ID: <1349798618-15718-1-git-send-email-post@lespocky.de> (raw)
This patch introduces TIMEZONE_INSTALL_LOCALTIME as variable before
GLIBC_LOCALTIME. You can decide now if you want to install
/etc/localtime and /etc/timezone. I actually used this for a
"depends on !TIMEZONE_INSTALL_LOCALTIME"
in one of my own rules which where I can decide if this is stored in
root filesystem or on a separare data partition with symlinks to it.
Maybe it's handy for the public.
Signed-off-by: Alexander Dahl <post@lespocky.de>
---
rules/timezone.in | 28 ++++++++++++++++++++--------
1 files changed, 20 insertions(+), 8 deletions(-)
diff --git a/rules/timezone.in b/rules/timezone.in
index 09a3d9d..b663d5a 100644
--- a/rules/timezone.in
+++ b/rules/timezone.in
@@ -15,15 +15,27 @@ if TIMEZONE
comment "Timezone support"
-config GLIBC_LOCALTIME
- prompt "Timezone for /etc/localtime and /etc/timezone"
- default "Europe/Berlin"
- string
+menuconfig TIMEZONE_INSTALL_LOCALTIME
+ bool
+ prompt "Install /etc/localtime and /etc/timezone"
+ default y
help
- Where should /etc/localtime point to? (e.g. put in "Europe/Berlin"
- here to let it point to /usr/share/zoneinfo/Europe/Berlin)
- Additionally this value is written to /etc/timezone like on Debian
- or for systemd.
+ Optionally install /etc/localtime as symlink to zoneinfo folder
+ and /etc/timezone for convenient reading of current setting. This
+ determines the system local time.
+
+if TIMEZONE_INSTALL_LOCALTIME
+ config GLIBC_LOCALTIME
+ prompt "Timezone for /etc/localtime and /etc/timezone"
+ default "Europe/Berlin"
+ string
+ help
+ Where should /etc/localtime point to? (e.g. put in
+ "Europe/Berlin" here to let it point to
+ /usr/share/zoneinfo/Europe/Berlin)
+ Additionally this value is written to /etc/timezone like on
+ Debian or for systemd.
+endif
config TIMEZONE_LOCAL_DATABASE
bool
--
1.7.2.5
--
ptxdist mailing list
ptxdist@pengutronix.de
next reply other threads:[~2012-10-09 16:04 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-09 16:03 Alexander Dahl [this message]
2012-10-09 16:30 ` Michael Olbrich
2012-10-09 16:49 ` Alexander Dahl
2012-10-10 8:59 ` [ptxdist] [PATCH] timezone: rename GLIBC_LOCALTIME and targetinstall only if not empty Alexander Dahl
2012-10-12 9:57 ` Michael Olbrich
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=1349798618-15718-1-git-send-email-post@lespocky.de \
--to=post@lespocky.de \
--cc=ptxdist@pengutronix.de \
/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