From patchwork Tue May 12 13:23:40 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 48366 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f70.google.com (mail-wg0-f70.google.com [74.125.82.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 841112121F for ; Tue, 12 May 2015 13:24:26 +0000 (UTC) Received: by wgin8 with SMTP id n8sf1906798wgi.0 for ; Tue, 12 May 2015 06:24:25 -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=NvO4XE12Gyh/CJIkvza9pUIJSXaUB3P+8KuW7QC4rPU=; b=izy1VzNvW47C4liLBHxyhPBazOGiEMFIZ36tzyT3L0ubbuFj0k/5IOeArwI2HFZPOv sVFoQOC3Gajq0jM3aLgB2FQhTcj54Tr4b+2ZjYgFEmNFaj56D7YuuWNqwRv0WWdoRDe8 NdTLVeMjMNTFSxTRqHnHl/AzOj19ovxKThMNxa+e3pO0jPh8V9BUhkYEJ/ccttXsgl0p RtoznrvssVjm5eYkKK8d+yGIQqlrwGu7jTOIrW3YfK4JMkF5fmSoDiyR3H4mzLePyjCK G9BGnzNNNyRTLN00tseeNCC3uU+SxI2v52sk3aYJtHqKTiQw02pj0Z6VzlMqcU6tJy9V L/xQ== X-Gm-Message-State: ALoCoQnLlckNU4XG15kQTzHzvbKk/RfmJlCt8s79C31Q16qbA+6GmHiv6wW/JhAu9q4GvBk62eus X-Received: by 10.194.179.42 with SMTP id dd10mr10661101wjc.7.1431437065854; Tue, 12 May 2015 06:24:25 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.5.196 with SMTP id u4ls34277lau.6.gmail; Tue, 12 May 2015 06:24:25 -0700 (PDT) X-Received: by 10.153.8.167 with SMTP id dl7mr12107699lad.86.1431437065695; Tue, 12 May 2015 06:24:25 -0700 (PDT) Received: from mail-lb0-f176.google.com (mail-lb0-f176.google.com. [209.85.217.176]) by mx.google.com with ESMTPS id an10si10349181lac.169.2015.05.12.06.24.25 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 May 2015 06:24:25 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.176 as permitted sender) client-ip=209.85.217.176; Received: by lbbzk7 with SMTP id zk7so5782296lbb.0 for ; Tue, 12 May 2015 06:24:25 -0700 (PDT) X-Received: by 10.112.222.133 with SMTP id qm5mr12103434lbc.86.1431437065599; Tue, 12 May 2015 06:24:25 -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 hn6csp2090692lbb; Tue, 12 May 2015 06:24:25 -0700 (PDT) X-Received: by 10.140.151.15 with SMTP id 15mr19969320qhx.104.1431437064375; Tue, 12 May 2015 06:24:24 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id 144si16079634qhb.33.2015.05.12.06.23.54; Tue, 12 May 2015 06:24:24 -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 2DA8861DF6; Tue, 12 May 2015 13:23:54 +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_H2, 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 6865D61844; Tue, 12 May 2015 13:23:52 +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 BCE2561DF3; Tue, 12 May 2015 13:23:47 +0000 (UTC) Received: from mail-lb0-f172.google.com (mail-lb0-f172.google.com [209.85.217.172]) by lists.linaro.org (Postfix) with ESMTPS id D689F61844 for ; Tue, 12 May 2015 13:23:46 +0000 (UTC) Received: by lbcga7 with SMTP id ga7so5724561lbc.1 for ; Tue, 12 May 2015 06:23:45 -0700 (PDT) X-Received: by 10.112.40.9 with SMTP id t9mr12295563lbk.55.1431437025693; Tue, 12 May 2015 06:23:45 -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 ap8sm1588159lac.30.2015.05.12.06.23.43 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 12 May 2015 06:23:44 -0700 (PDT) From: Maxim Uvarov To: lng-odp@lists.linaro.org Date: Tue, 12 May 2015 16:23:40 +0300 Message-Id: <1431437020-24595-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.176 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 | 4 ++++ platform/linux-generic/odp_impl.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/platform/Makefile.inc b/platform/Makefile.inc index f232daa..ae20a80 100644 --- a/platform/Makefile.inc +++ b/platform/Makefile.inc @@ -14,4 +14,8 @@ 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) | 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)