From patchwork Mon Jul 28 08:27:53 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: christian.braunersorensen@prevas.dk X-Patchwork-Id: 374131 X-Patchwork-Delegate: kiho@prevas.dk Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hugin.dotsrc.org (hugin.dotsrc.org [IPv6:2001:878:346::102]) by ozlabs.org (Postfix) with ESMTP id DE1B11400FA for ; Mon, 28 Jul 2014 18:25:35 +1000 (EST) Received: from hugin.dotsrc.org (localhost [127.0.0.1]) by hugin.dotsrc.org (Postfix) with ESMTP id 7BF7B3FB64 for ; Mon, 28 Jul 2014 10:25:34 +0200 (CEST) X-Original-To: dev@oe-lite.org Delivered-To: dev@oe-lite.org Received: from mail01.prevas.se (mail01.prevas.se [62.95.78.3]) by hugin.dotsrc.org (Postfix) with ESMTPS id 47DF63FB64 for ; Mon, 28 Jul 2014 10:25:33 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=prevas.dk; i=@prevas.dk; l=1414; q=dns/txt; s=ironport1; t=1406535933; x=1438071933; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=hx5lZdGu++pRdWcPbPEPQHi5syNsSfQtEAsmVqTtl5w=; b=xiaBCMrnvM0b7pFvnO4UKd0Ji+lbH42rUFCKN4klh/ecNEptb+6k/XO3 ILZ/n45mqped702x+snms5QIw1vKTOojs+ppROZKth1q4VgXBZQ4Ziw4a 3Ilk2LA7p4JFSgcpgpx0jklzhd/slVkgz/RAwyPKW4OLqdCtnD8xTqG5H w=; X-IronPort-AV: E=Sophos;i="5.01,747,1400018400"; d="scan'208";a="4932950" Received: from vmprevas3.prevas.se (HELO smtp.prevas.se) ([172.16.8.103]) by ironport1.prevas.se with ESMTP/TLS/AES128-SHA; 28 Jul 2014 10:25:32 +0200 Received: from cbs-Latitude-E6540.prevas.se (172.16.11.11) by smtp.prevas.se (172.16.8.105) with Microsoft SMTP Server (TLS) id 14.2.347.0; Mon, 28 Jul 2014 10:25:32 +0200 From: To: Subject: [PATCH 5/5] busybox: Add use flag for using utc in busybox-hwclock Date: Mon, 28 Jul 2014 10:27:53 +0200 Message-ID: <307d8fcc95978830a664756dd62bacffdbd7e776.1406533543.git.christian.braunersorensen@prevas.dk> X-Mailer: git-send-email 2.0.2 In-Reply-To: References: MIME-Version: 1.0 X-Originating-IP: [172.16.11.11] X-BeenThere: dev@oe-lite.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: OE-lite development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dev-bounces@oe-lite.org Errors-To: dev-bounces@oe-lite.org From: Christian Sørensen Use flag added: busybox_hwclock_utc Is not set by default, meaning UTC is by default not used. If set, enables use of UTC in busybox-hwclock Signed-off-by: Christian Sørensen --- recipes/busybox/busybox-configure.inc | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/recipes/busybox/busybox-configure.inc b/recipes/busybox/busybox-configure.inc index 9e545fb..92e616a 100644 --- a/recipes/busybox/busybox-configure.inc +++ b/recipes/busybox/busybox-configure.inc @@ -215,6 +215,17 @@ DEFAULT_USE_busybox_hwclock_sysvinit_stop = "15" RECIPE_FLAGS += "busybox_hwclock_splashutils_progress busybox_hwclock_splashutils_msg" SPLASHUTILS_INITSCRIPTS:>USE_busybox_hwclock += " busybox_hwclock" DEFAULT_USE_busybox_hwclock_splashutils_msg = "\"Starting Busybox HWclock\"" +RECIPE_FLAGS += "busybox_hwclock_utc" +DO_CONFIGURE_PREFUNCS += " do_configure_busybox_hwclock_use_utc" +do_configure_busybox_hwclock_use_utc () { + if [ -n "$USE_busybox_hwclock" ]; then + if [ -z "$USE_busybox_hwclock_utc" ]; then + sed -i -e 's/HWCLOCK_UTC//' ${SRCDIR}/busybox-hwclock + else + sed -i -e 's/HWCLOCK_UTC/\-\-utc/' ${SRCDIR}/busybox-hwclock + fi + fi +} RECIPE_FLAGS += "busybox_hwclock_crontab" # USE flag: synchronize to rtc every hour using crond