From patchwork Thu Apr 30 00:38:23 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Packham X-Patchwork-Id: 466335 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id C3B7114030C for ; Thu, 30 Apr 2015 10:38:56 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="verification failed; unprotected key" header.d=gmail.com header.i=@gmail.com header.b=JqW8BfCm; dkim-adsp=none (unprotected policy); dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id C1D4B4B933; Thu, 30 Apr 2015 02:38:54 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yHcC5Z5KEXDu; Thu, 30 Apr 2015 02:38:54 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 535B94B92C; Thu, 30 Apr 2015 02:38:54 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id B38664B9A7 for ; Thu, 30 Apr 2015 02:38:52 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FkZ-9DrMERNI for ; Thu, 30 Apr 2015 02:38:52 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-pd0-f178.google.com (mail-pd0-f178.google.com [209.85.192.178]) by theia.denx.de (Postfix) with ESMTPS id 432BF4B999 for ; Thu, 30 Apr 2015 02:38:46 +0200 (CEST) Received: by pdea3 with SMTP id a3so43490679pde.3 for ; Wed, 29 Apr 2015 17:38:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=L9ZI1rPeSpZnB5F5T9iSq+vn7azKbX01Kg5QnY2eKwA=; b=JqW8BfCmcx9RcD9Z4hJecJBdAcAuE/d0JGXoZIZHuI1BF9N57qAwWJp5HiiOgy7fqm BQEYFX0vTHkYSes1B7W+Tyn6EHe5YRXPhsuuuTfTZbDSTyVMuE52FfzW0L0UyazsrfHN hRpG1+ApuHkY6iAy9lrtifGNlRJ6CAga6PzB538eJrH7yyLPw8sD4WEggMb9QupKZ6iZ EddhO5ZNW/G3Rhvb6UpnTcwVN5l4rX0p0maxZyZmGEapLPK/tNFfM2wSuYV4hVFcIFJU 8gUEjgOMdDCr0ZCRdbVyb8IiXEvsS0q5nGmGhopAF/WX8fVYuH+svZvtgNYezsGzATrt 4LwQ== X-Received: by 10.68.242.41 with SMTP id wn9mr2969113pbc.117.1430354325032; Wed, 29 Apr 2015 17:38:45 -0700 (PDT) Received: from chrisp-dl.ws.atlnz.lc (2-163-36-202-static.alliedtelesis.co.nz. [202.36.163.2]) by mx.google.com with ESMTPSA id td3sm338803pab.46.2015.04.29.17.38.40 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 29 Apr 2015 17:38:44 -0700 (PDT) From: Chris Packham To: u-boot@lists.denx.de Date: Thu, 30 Apr 2015 12:38:23 +1200 Message-Id: <1430354303-30200-2-git-send-email-judge.packham@gmail.com> X-Mailer: git-send-email 2.3.5 In-Reply-To: <1430354303-30200-1-git-send-email-judge.packham@gmail.com> References: <1430354303-30200-1-git-send-email-judge.packham@gmail.com> Cc: Marek Vasut , Tom Rini , Jeroen Hofstee , Stefan Roese , Chris Packham Subject: [U-Boot] [RFC PATCH v1] Makefile: Add U_BOOT_TZ and include in version X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Define U_BOOT_TZ alongside U_BOOT_TIME and U_BOOT_DATE and use it to include the timezone in the version output. Signed-off-by: Chris Packham Acked-by: Simon Glass Tested-by: Simon Glass --- Makefile | 3 ++- include/version.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 1e52008..c6b8d3f 100644 --- a/Makefile +++ b/Makefile @@ -1230,7 +1230,8 @@ endef define filechk_timestamp.h (LC_ALL=C date +'#define U_BOOT_DATE "%b %d %C%y"'; \ - LC_ALL=C date +'#define U_BOOT_TIME "%T"') + LC_ALL=C date +'#define U_BOOT_TIME "%T"'; \ + LC_ALL=C date +'#define U_BOOT_TZ "%Z"') endef $(version_h): include/config/uboot.release FORCE diff --git a/include/version.h b/include/version.h index d6c7cf2..777e9f6 100644 --- a/include/version.h +++ b/include/version.h @@ -19,7 +19,7 @@ #endif #define U_BOOT_VERSION_STRING U_BOOT_VERSION " (" U_BOOT_DATE " - " \ - U_BOOT_TIME ")" CONFIG_IDENT_STRING + U_BOOT_TIME " " U_BOOT_TZ ")" CONFIG_IDENT_STRING #ifndef __ASSEMBLY__ extern const char version_string[];