From patchwork Fri Aug 14 13:25:06 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 52435 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f198.google.com (mail-wi0-f198.google.com [209.85.212.198]) by patches.linaro.org (Postfix) with ESMTPS id 219A42031F for ; Fri, 14 Aug 2015 13:28:22 +0000 (UTC) Received: by wicul11 with SMTP id ul11sf6444409wic.1 for ; Fri, 14 Aug 2015 06:28:21 -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:in-reply-to:references: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=KTAYHuEvJHS8zC4MVZLcegz88PEtJRjuSLD0unjSGoo=; b=krWcVttT3ZQE2uNNlOOiK7liAqmShWE9Y2SC01SmINRtgGI3NbFm6A/TVSEH7jw4TA 1l/gaRNK6z6b3TdDCk/i3qX5N4njyYm0eAYcdMM1L/kDZ5368ilOv6cDkZeixfW5O5SA r8yO+ysVc4AwdAkxsgkMA+Xi/GKFH3VrcWp27k31iCiJYV/Bg5aGlpnRuOXVNr4N16WI N/ubfglU+RBnkwhhob6A1P69UqPqcU6NBbc+J7pN6iQIBwPzsTmXAlpogTrMUMV5WHFv mMFllp2tWBFOW5+nAfS0/i7514YVUArvYgQcms2jhFgd1evwuglNeY6OEfH51s879eSw T84Q== X-Gm-Message-State: ALoCoQlBkWIwSk1ZLMafDvPrgoMIt7MT4AjPpJTnoBBu6/UwV4b05wqYR1MLSW524LxtwmGdRB/n X-Received: by 10.112.148.101 with SMTP id tr5mr12930197lbb.13.1439558901361; Fri, 14 Aug 2015 06:28:21 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.45.39 with SMTP id j7ls394299lam.10.gmail; Fri, 14 Aug 2015 06:28:21 -0700 (PDT) X-Received: by 10.112.105.104 with SMTP id gl8mr44097814lbb.81.1439558901208; Fri, 14 Aug 2015 06:28:21 -0700 (PDT) Received: from mail-la0-f44.google.com (mail-la0-f44.google.com. [209.85.215.44]) by mx.google.com with ESMTPS id le3si5962669lab.107.2015.08.14.06.28.21 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 14 Aug 2015 06:28:21 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.44 as permitted sender) client-ip=209.85.215.44; Received: by lalv9 with SMTP id v9so43900262lal.0 for ; Fri, 14 Aug 2015 06:28:21 -0700 (PDT) X-Received: by 10.152.22.133 with SMTP id d5mr37645835laf.112.1439558900933; Fri, 14 Aug 2015 06:28:20 -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.7.198 with SMTP id l6csp1621662lba; Fri, 14 Aug 2015 06:28:19 -0700 (PDT) X-Received: by 10.55.209.25 with SMTP id s25mr2558837qki.57.1439558898990; Fri, 14 Aug 2015 06:28:18 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id i109si9482213qgi.49.2015.08.14.06.28.17; Fri, 14 Aug 2015 06:28:18 -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 BC00361F17; Fri, 14 Aug 2015 13:28:17 +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=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, 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 8E54F61EFA; Fri, 14 Aug 2015 13:28:12 +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 D3F6D61EFE; Fri, 14 Aug 2015 13:28:09 +0000 (UTC) Received: from mail-lb0-f169.google.com (mail-lb0-f169.google.com [209.85.217.169]) by lists.linaro.org (Postfix) with ESMTPS id EC92C61EFA for ; Fri, 14 Aug 2015 13:27:46 +0000 (UTC) Received: by lbcbn3 with SMTP id bn3so45216428lbc.2 for ; Fri, 14 Aug 2015 06:27:45 -0700 (PDT) X-Received: by 10.152.8.169 with SMTP id s9mr25470352laa.3.1439558865624; Fri, 14 Aug 2015 06:27:45 -0700 (PDT) Received: from localhost (c-b03670d5.07-21-73746f28.cust.bredbandsbolaget.se. [213.112.54.176]) by smtp.gmail.com with ESMTPSA id nz4sm1460068lbb.38.2015.08.14.06.27.44 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 14 Aug 2015 06:27:44 -0700 (PDT) From: Anders Roxell To: lng-odp@lists.linaro.org Date: Fri, 14 Aug 2015 15:25:06 +0200 Message-Id: <1439558708-31151-3-git-send-email-anders.roxell@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1439558708-31151-1-git-send-email-anders.roxell@linaro.org> References: <1439558708-31151-1-git-send-email-anders.roxell@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCHv2 2/4] scripts/git_hash: change repo to CUSTOM_STR 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: anders.roxell@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.44 as permitted sender) smtp.mailfrom=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 other platforms should export CUSTOM_STR in their platform//Makefile.am Signed-off-by: Anders Roxell --- platform/linux-generic/Makefile.am | 3 +++ scripts/git_hash.sh | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/platform/linux-generic/Makefile.am b/platform/linux-generic/Makefile.am index fb145e7..a6f12a1 100644 --- a/platform/linux-generic/Makefile.am +++ b/platform/linux-generic/Makefile.am @@ -1,3 +1,6 @@ +# Uncomment this in you need to change the CUSTOM_STR string +#export CUSTOM_STR=https://git.linaro.org/lng/odp.git + include $(top_srcdir)/platform/Makefile.inc AM_CFLAGS += -I$(srcdir)/include diff --git a/scripts/git_hash.sh b/scripts/git_hash.sh index 48ae24e..6cfec2f 100755 --- a/scripts/git_hash.sh +++ b/scripts/git_hash.sh @@ -6,14 +6,14 @@ if [ -z ${1} ]; then fi ROOTDIR=${1} -repo=https://git.linaro.org/lng/odp.git +CUSTOM_STR=${CUSTOM_STR:-https://git.linaro.org/lng/odp.git} if [ -d ${ROOTDIR}/.git ]; then hash=$(git describe | tr -d "\n") if git diff-index --name-only HEAD &>/dev/null ; then dirty=-dirty fi - echo -n "'${repo}' (${hash}${dirty})">${ROOTDIR}/.scmversion + echo -n "'${CUSTOM_STR}' (${hash}${dirty})">${ROOTDIR}/.scmversion fi cat ${ROOTDIR}/.scmversion