From patchwork Mon May 11 16:40:06 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zoltan Kiss X-Patchwork-Id: 48307 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f197.google.com (mail-wi0-f197.google.com [209.85.212.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 916792121F for ; Mon, 11 May 2015 16:42:30 +0000 (UTC) Received: by wiz9 with SMTP id 9sf11863738wiz.3 for ; Mon, 11 May 2015 09:42:29 -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=LrX2u4OXTl2BLdcn8bzWn/Ioe3qlT1kQXR+E28PHqPQ=; b=cA9d+H/6SKR5mReaXF/j3jixD+09omp0TBrI3pqtyObrRy7XQQfxcC+7QIgiylrzde 58DfdszLF18UWVcxwJ6cKhRI1fPbP+q/kRpjL2mWT9hRQMmVvrxOd9WC7nZz+9S1tOPU OrGqkNRJbgOcbfLRRA4LwagPnP5AB2U6h/r8bKof+VxUTB2NEUqISJk527lUR2PRVi9J PywVSKKzTaRn4wo4n4x+pDonE+rUZDU2SstIvwIpKzj/n/1JLxgfSIaXoHq6cEesdIDA vR9fccvSy9DkArnpefGLtmccfBAH8qVchS6+J07hg4xu9F4/kxADp6LoAKo1ECpxUd+V lqKQ== X-Gm-Message-State: ALoCoQn1lOW/UgcZVCXatk8+Lo5j773KpMLsid08VN6YyMxHTdbWGEWRwzC8+/16x+85ap9Qcx2A X-Received: by 10.180.83.72 with SMTP id o8mr8407837wiy.3.1431362549842; Mon, 11 May 2015 09:42:29 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.87.42 with SMTP id u10ls613926laz.64.gmail; Mon, 11 May 2015 09:42:29 -0700 (PDT) X-Received: by 10.112.204.104 with SMTP id kx8mr8561785lbc.72.1431362549680; Mon, 11 May 2015 09:42:29 -0700 (PDT) Received: from mail-la0-f51.google.com (mail-la0-f51.google.com. [209.85.215.51]) by mx.google.com with ESMTPS id pr4si8637222lbb.133.2015.05.11.09.42.29 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 May 2015 09:42:29 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.51 as permitted sender) client-ip=209.85.215.51; Received: by labbd9 with SMTP id bd9so97552841lab.2 for ; Mon, 11 May 2015 09:42:29 -0700 (PDT) X-Received: by 10.152.4.137 with SMTP id k9mr8586732lak.29.1431362549547; Mon, 11 May 2015 09:42:29 -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 hn6csp1607493lbb; Mon, 11 May 2015 09:42:28 -0700 (PDT) X-Received: by 10.140.98.3 with SMTP id n3mr14415476qge.62.1431362548303; Mon, 11 May 2015 09:42:28 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id c63si5442293qgd.5.2015.05.11.09.42.25; Mon, 11 May 2015 09:42:28 -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 9DD3061D75; Mon, 11 May 2015 16:42:25 +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 2470B61D89; Mon, 11 May 2015 16:41:49 +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 9542061D75; Mon, 11 May 2015 16:41:37 +0000 (UTC) Received: from mail-wi0-f177.google.com (mail-wi0-f177.google.com [209.85.212.177]) by lists.linaro.org (Postfix) with ESMTPS id 2113261D83 for ; Mon, 11 May 2015 16:40:32 +0000 (UTC) Received: by wizk4 with SMTP id k4so113162125wiz.1 for ; Mon, 11 May 2015 09:40:31 -0700 (PDT) X-Received: by 10.180.187.170 with SMTP id ft10mr20981043wic.75.1431362431291; Mon, 11 May 2015 09:40:31 -0700 (PDT) Received: from localhost.localdomain ([90.152.119.35]) by mx.google.com with ESMTPSA id jq3sm23621168wjc.22.2015.05.11.09.40.30 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 11 May 2015 09:40:30 -0700 (PDT) From: Zoltan Kiss To: lng-odp@lists.linaro.org Date: Mon, 11 May 2015 17:40:06 +0100 Message-Id: <1431362411-8686-2-git-send-email-zoltan.kiss@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1431362411-8686-1-git-send-email-zoltan.kiss@linaro.org> References: <1431362411-8686-1-git-send-email-zoltan.kiss@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCH 1/6] build.sh: enable build the dependencies only 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: zoltan.kiss@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.51 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 Signed-off-by: Zoltan Kiss --- build.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 83b12a1..cbef61b 100755 --- a/build.sh +++ b/build.sh @@ -28,6 +28,7 @@ export EXIT_ON_ERROR="${EXIT_ON_ERROR:-1}" export CPP_TEST="${CPP_TEST:-0}" export DISTCHECK="${DISTCHECK:-0}" export DRYRUN="${DRYRUN:-0}" +export BUILD_DEPS="${BUILD_DEPS:-1}" E_VALGRIND="${E_VALGRIND:-0}" if [[ ! -z ${TEST_LIST} ]]; then export TESTS="${TEST_LIST}" @@ -84,6 +85,7 @@ usage() { echo -e "\tTEST_LIST:\t Overides the test list for 'make check' TEST_LIST=\"\"" echo -e "\tNUM_CPUS:\t add parallel make, default: _NPROCESSORS_ONLN" echo -e "\tCLEANUP:\t to save workspace set CLEANUP=0, default: ${CLEANUP}" + echo -e "\tBUILD_DEPS:\t build dependencies, 0: no, 1: yes, 2: yes and exit afterwards, default: ${BUILD_DEPS}" echo -e "\tM32_ON_64:\t enable 32 bit builds on a 64 bit host, default: 0" echo -e "\tDOXYGEN_HTML:\t build doxygen-html, default: 0" echo -e "\tCLANG:\t\t build with clang, default: 0" @@ -149,7 +151,13 @@ fi if [[ ${E_VALGRIND} -eq 1 ]]; then EXTRA_FLAGS="${EXTRA_FLAGS} --enable-valgrind" fi -build_deps + +if [[ ${BUILD_DEPS} -ge 1 ]]; then + build_deps + if [[ ${BUILD_DEPS} -eq 2 ]]; then + exit 0 + fi +fi echo "Pulling from ${GIT_ODP}, branch ${GIT_BRANCH}" remote_name="$(remote_name ${GIT_ODP})"