X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=ci%2Fbuild.sh;h=9ae43f30f43be1abb4020ee6fce01a3c4668c9fd;hb=6be5639d8ce2f6e282db6f3d19699a341b9b491c;hp=334c72d789783a5c1541538b7df3f7f6fd95822e;hpb=22d60409b3f3a38f1800a4f996ddecbdb25ab5c4;p=armband.git diff --git a/ci/build.sh b/ci/build.sh index 334c72d7..9ae43f30 100755 --- a/ci/build.sh +++ b/ci/build.sh @@ -1,9 +1,19 @@ #!/bin/bash +# Copyright (c) 2016 Enea Software AB +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 -if [ $# -gt 1 ]; then - OUTPUT_DIR=shift -else - OUTPUT_DIR="" -fi +set -e -echo "Building armband, output dir: $OUTPUT_DIR" +SCRIPT_DIR=$(readlink -f $(dirname ${BASH_SOURCE[0]})) +BUILD_BASE=$(readlink -e ${SCRIPT_DIR}/../upstream/fuel/build) + +export ARMBAND_BASE=$(readlink -e ${SCRIPT_DIR}/..) +export OPNFV_GIT_SHA=$(git rev-parse HEAD) +export LOCAL_CACHE_ARCH_NAME="armband-cache" + +# Initialize Armband git submodules & apply patches first +make -C ${ARMBAND_BASE} submodules-clean patches-import +cd ${ARMBAND_BASE}/upstream/fuel/ci && ./build.sh $*