From patchwork Mon Mar 3 22:10:21 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yann E. MORIN" X-Patchwork-Id: 326071 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id 219D32C00C3 for ; Tue, 4 Mar 2014 09:10:39 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id E2F99964DD; Mon, 3 Mar 2014 22:10:36 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WTthHEXUy7cc; Mon, 3 Mar 2014 22:10:36 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id E042C964ED; Mon, 3 Mar 2014 22:10:35 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 4EB471BF9D8 for ; Mon, 3 Mar 2014 22:10:33 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 438D9200B7 for ; Mon, 3 Mar 2014 22:10:33 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0P-1DWiaanUs for ; Mon, 3 Mar 2014 22:10:32 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-we0-f171.google.com (mail-we0-f171.google.com [74.125.82.171]) by silver.osuosl.org (Postfix) with ESMTPS id 522AA333CE for ; Mon, 3 Mar 2014 22:10:32 +0000 (UTC) Received: by mail-we0-f171.google.com with SMTP id t61so1471316wes.2 for ; Mon, 03 Mar 2014 14:10:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=sxXCWJ4sMavLmpopZtmPTeUuPlfIv9Z+zUjZ99v4geo=; b=ltlAsojwy8a2XJV4+/RSwRQU05+AYAB8GC51SRTOynT4LcqJ100TnLCeumU41t2eLj UvlTaMaj+mikWdf58gZP1CJ+F4yVEmXH0wGUOFhtLsS/U6qTqvFP50zgfSgIFKHPDzAL EaEVjOw55pK8Px2RAAttaSNGcSsX7wBE9p6QWvuOTBHEmhtzePxyU1qfzzEywcgx0O2D 9PI4fErPT+mYUFPvC/sWgccBTPFqcayjvwmG/dVkPYTlMM3GYcplKuWwhUDdk3Q9Rl84 rg9Y8sy+fYgd5zIM1RyOQPsAomS/V4GmQIhPhm1pVRRaY+pIfa3wxwiS+aD4OXx1ZNkw dhPA== X-Received: by 10.194.110.135 with SMTP id ia7mr21911065wjb.5.1393884630907; Mon, 03 Mar 2014 14:10:30 -0800 (PST) Received: from gourin.bzh.lan (ks3095497.kimsufi.com. [94.23.60.27]) by mx.google.com with ESMTPSA id f7sm41763976wjb.7.2014.03.03.14.10.29 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 03 Mar 2014 14:10:30 -0800 (PST) From: "Yann E. MORIN" To: buildroot@buildroot.org Date: Mon, 3 Mar 2014 23:10:21 +0100 Message-Id: X-Mailer: git-send-email 1.8.3.2 In-Reply-To: References: Cc: "Yann E. MORIN" Subject: [Buildroot] [PATCH 2/7] system: add selection of a default localtime X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net From: "Yann E. MORIN" Signed-off-by: "Yann E. MORIN" [alexandre.belloni: move from "tzdata" to "system configuration"] Signed-off-by: Alexandre Belloni [yann.morin.1998@free.fr: move into the BR2_TARGET_TZ_INFO conditionnal block] Signed-off-by: "Yann E. MORIN" --- package/tzdata/tzdata.mk | 7 ++++++- system/Config.in | 14 ++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/package/tzdata/tzdata.mk b/package/tzdata/tzdata.mk index b6f07e2..c23b3df 100644 --- a/package/tzdata/tzdata.mk +++ b/package/tzdata/tzdata.mk @@ -39,8 +39,13 @@ define TZDATA_INSTALL_TARGET_CMDS cp -a $(@D)/_output/* $(TARGET_DIR)/usr/share/zoneinfo cd $(TARGET_DIR)/usr/share/zoneinfo; \ for zone in posix/*; do \ - ln -sfn "$${zone}" "$${zone##*/}"; \ + ln -sfn "$${zone}" "$${zone##*/}"; \ done + if [ -n "$(BR2_TARGET_LOCALTIME)" ]; then \ + cd $(TARGET_DIR)/etc; \ + ln -sf ../usr/share/zoneinfo/$(BR2_TARGET_LOCALTIME) localtime; \ + echo "$(BR2_TARGET_LOCALTIME)" >timezone; \ + fi endef $(eval $(generic-package)) diff --git a/system/Config.in b/system/Config.in index 7ea0208..008369f 100644 --- a/system/Config.in +++ b/system/Config.in @@ -285,6 +285,20 @@ config BR2_TARGET_TZ_ZONELIST The full list is the list of files in the time zone database source, not including the build and .tab files. +config BR2_TARGET_LOCALTIME + string "default local time" + help + The time zone to install as the default local time, expressed as a + tzdata location, such as: + GMT + Europe/Paris + America/New_York + Pacific/Wallis + ... + + If empty, no local time will be set, and the dates will be + expressed in UTC. + endif # BR2_TARGET_TZ_INFO config BR2_TARGET_GENERIC_REMOUNT_ROOTFS_RW