From patchwork Tue May 12 13:30:26 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 48374 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f199.google.com (mail-lb0-f199.google.com [209.85.217.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id E74172121F for ; Tue, 12 May 2015 13:30:45 +0000 (UTC) Received: by lbbqq2 with SMTP id qq2sf1929269lbb.0 for ; Tue, 12 May 2015 06:30:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:delivered-to:from:to:date :message-id:subject:precedence:list-id:list-unsubscribe:list-archive :list-post:list-help:list-subscribe:mime-version:content-type :content-transfer-encoding:errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=Eq5HsoWaslhdNlDrwlwJPhcEMU6JN+VyVHplA0ZUz+g=; b=G78iDRK64XjjI1w48BvfqmzKkjs23b86lQgWwaFHZ7qmArOIGaxZAr7bO580NShqm9 7VeK1CY4HYYBsarTRNhHCqJpK+TPtoJYQZZ3z66gbFEQo2dfGzxiLpo7m5EqPICrpHkB zSh8gGMTgtOil3hO0ED6HE8LTCaIHYasxTcFnhA4gYFjB2IXnN8ffrnBo1HzdWoVVcFw JJZy83oO2ZAYK0xt7mCSDYQ1B7IckobjNZzdTadCAa96ZgGmubfAlhXjnuWvziRzjgwa EGFeNguPDP1AmlxrrPpTW/bbOjqQIJKI+GiEB1bbViah3YcGheywAUO38FEYzPAW9e4D Vp/g== X-Gm-Message-State: ALoCoQlVyXd48oGv6lilSmb/Ja3TujcUQ9uH6cqpKTbKlYDWnVxB4e6HA4CpiM1tEqQm9YI0piSx X-Received: by 10.194.240.164 with SMTP id wb4mr10690842wjc.1.1431437444841; Tue, 12 May 2015 06:30:44 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.6.100 with SMTP id z4ls28499laz.57.gmail; Tue, 12 May 2015 06:30:44 -0700 (PDT) X-Received: by 10.112.161.226 with SMTP id xv2mr12189898lbb.106.1431437444681; Tue, 12 May 2015 06:30:44 -0700 (PDT) Received: from mail-lb0-f170.google.com (mail-lb0-f170.google.com. [209.85.217.170]) by mx.google.com with ESMTPS id i4si10381964laf.44.2015.05.12.06.30.44 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 May 2015 06:30:44 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.170 as permitted sender) client-ip=209.85.217.170; Received: by lbbzk7 with SMTP id zk7so5933481lbb.0 for ; Tue, 12 May 2015 06:30:44 -0700 (PDT) X-Received: by 10.112.140.231 with SMTP id rj7mr11796844lbb.76.1431437444516; Tue, 12 May 2015 06:30:44 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.108.230 with SMTP id hn6csp2094126lbb; Tue, 12 May 2015 06:30:43 -0700 (PDT) X-Received: by 10.140.107.97 with SMTP id g88mr20151364qgf.54.1431437443120; Tue, 12 May 2015 06:30:43 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id e35si16068337qgd.116.2015.05.12.06.30.42; Tue, 12 May 2015 06:30:43 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Received: by lists.linaro.org (Postfix, from userid 109) id 416F561DF6; Tue, 12 May 2015 13:30:42 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, RCVD_IN_SORBS_WEB, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from ip-10-142-244-252.ec2.internal (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id BCF8561DCC; Tue, 12 May 2015 13:30:40 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id DB32A61DD2; Tue, 12 May 2015 13:30:33 +0000 (UTC) Received: from mail-lb0-f177.google.com (mail-lb0-f177.google.com [209.85.217.177]) by lists.linaro.org (Postfix) with ESMTPS id CA39961DB3 for ; Tue, 12 May 2015 13:30:32 +0000 (UTC) Received: by lbbzk7 with SMTP id zk7so5928008lbb.0 for ; Tue, 12 May 2015 06:30:31 -0700 (PDT) X-Received: by 10.152.43.225 with SMTP id z1mr11465594lal.53.1431437431705; Tue, 12 May 2015 06:30:31 -0700 (PDT) Received: from localhost.localdomain (ppp91-76-165-85.pppoe.mtu-net.ru. [91.76.165.85]) by mx.google.com with ESMTPSA id ba4sm3851992lab.31.2015.05.12.06.30.30 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 12 May 2015 06:30:30 -0700 (PDT) From: Maxim Uvarov To: lng-odp@lists.linaro.org Date: Tue, 12 May 2015 16:30:26 +0300 Message-Id: <1431437426-27325-1-git-send-email-maxim.uvarov@linaro.org> X-Mailer: git-send-email 1.9.1 X-Topics: patch Subject: [lng-odp] [PATCH] linux-generic: fix date for linux-generic X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: maxim.uvarov@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.170 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 take date as date of the latest commit in ./platform/linux-generic, not as current compilation date. Signed-off-by: Maxim Uvarov --- v2: somehow latest change did not amend to v1, use v2. platform/Makefile.inc | 5 +++++ platform/linux-generic/odp_impl.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/platform/Makefile.inc b/platform/Makefile.inc index f232daa..5985559 100644 --- a/platform/Makefile.inc +++ b/platform/Makefile.inc @@ -14,4 +14,9 @@ AM_LDFLAGS += -version-number '$(ODP_LIBSO_VERSION)' GIT_DESC !=$(top_srcdir)/scripts/git_hash.sh AM_CFLAGS += "-DGIT_HASH=$(GIT_DESC)" + +TIMESTAMP =`git log -1 --pretty="%cD" $(top_srcdir)/platform/linux-generic/ | tr -d "\n"` +AM_CFLAGS += "-DIMPL_TIMESTAMP=\"$(TIMESTAMP)\"" + AM_CFLAGS += -DPLATFORM=${with_platform} + diff --git a/platform/linux-generic/odp_impl.c b/platform/linux-generic/odp_impl.c index 46d0e40..29a1539 100644 --- a/platform/linux-generic/odp_impl.c +++ b/platform/linux-generic/odp_impl.c @@ -30,7 +30,7 @@ extern "C" { ODP_VERSION_TO_STR(ODP_VERSION_API_GENERATION) "." \ ODP_VERSION_TO_STR(ODP_VERSION_API_MAJOR) "." \ ODP_VERSION_TO_STR(ODP_VERSION_API_MINOR) ") " \ - __DATE__ " " __TIME__ " " \ + IMPL_TIMESTAMP \ ODP_VERSION_TO_STR(GIT_HASH) const char *odp_version_impl_str(void)