From patchwork Tue May 12 13:28:55 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 48373 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f200.google.com (mail-lb0-f200.google.com [209.85.217.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id D62352121F for ; Tue, 12 May 2015 13:29:09 +0000 (UTC) Received: by lbbqq2 with SMTP id qq2sf1918101lbb.0 for ; Tue, 12 May 2015 06:29:08 -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=ed54LCAdD04GFIEFBY2UbstX0XGPFAIgeoX4F9TMTyc=; b=F4RcfHgjiHIUjPqsXR/g4AMnHu3vPZuEbEylX2NuK4y5Qr0IOP90ALyVEqQ/yRcBwb o29rTo8HVTg3OdndePGAZhs08z/SR4il2h3dw+bEd1IS3Euf6e1bHn21DqKfHsNhd/ay lozDzufyslmXBU2lA8OBDSymbLyl+Jvw2ENLYPPCFP4grjGwH5c8W4kIbGxotxnVrLmx Q/fgTCe+Ez8GU05nup+MUOKjl7W3Gn7TBck/YTWVgKDNc5in/MOu7innr4EDe5h/P1GF 9of7hOvRkCWQcHPLezk0CtvtL43Mgx1JhCZYvxabopAsiofL/MogJRU6fCqyBGryCZtr /XTg== X-Gm-Message-State: ALoCoQndEY4VAsDxNZeZfmnOEdD0tk7TKCMZEXPCeO6YgAo4mKVNKLQfnC39Ksf0ChVNneIOthF0 X-Received: by 10.180.105.67 with SMTP id gk3mr2359021wib.4.1431437348404; Tue, 12 May 2015 06:29:08 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.207.65 with SMTP id lu1ls30096lac.104.gmail; Tue, 12 May 2015 06:29:08 -0700 (PDT) X-Received: by 10.152.3.161 with SMTP id d1mr3196217lad.70.1431437348244; Tue, 12 May 2015 06:29:08 -0700 (PDT) Received: from mail-la0-f52.google.com (mail-la0-f52.google.com. [209.85.215.52]) by mx.google.com with ESMTPS id ay16si10383651lab.32.2015.05.12.06.29.08 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 May 2015 06:29:08 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.52 as permitted sender) client-ip=209.85.215.52; Received: by labbd9 with SMTP id bd9so5786958lab.2 for ; Tue, 12 May 2015 06:29:08 -0700 (PDT) X-Received: by 10.112.204.104 with SMTP id kx8mr11885160lbc.72.1431437347834; Tue, 12 May 2015 06:29:07 -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 hn6csp2093239lbb; Tue, 12 May 2015 06:29:07 -0700 (PDT) X-Received: by 10.55.43.213 with SMTP id r82mr32501661qkr.76.1431437346366; Tue, 12 May 2015 06:29:06 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id 194si10551271qhs.8.2015.05.12.06.29.05; Tue, 12 May 2015 06:29:06 -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 6DC3461DF5; Tue, 12 May 2015 13:29:05 +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 A9EE161DB3; Tue, 12 May 2015 13:29:03 +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 3103861DD2; Tue, 12 May 2015 13:29:02 +0000 (UTC) Received: from mail-lb0-f181.google.com (mail-lb0-f181.google.com [209.85.217.181]) by lists.linaro.org (Postfix) with ESMTPS id 3E85361DB3 for ; Tue, 12 May 2015 13:29:01 +0000 (UTC) Received: by lbbuc2 with SMTP id uc2so5807748lbb.2 for ; Tue, 12 May 2015 06:29:00 -0700 (PDT) X-Received: by 10.152.27.98 with SMTP id s2mr12176775lag.106.1431437340042; Tue, 12 May 2015 06:29:00 -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 vs8sm3852065lbb.39.2015.05.12.06.28.58 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 12 May 2015 06:28:59 -0700 (PDT) From: Maxim Uvarov To: lng-odp@lists.linaro.org Date: Tue, 12 May 2015 16:28:55 +0300 Message-Id: <1431437335-27175-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.215.52 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 --- 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)