build: ISO refactor, use docker, enable cache
[armband.git] / ci / build.sh
1 #!/bin/bash
2 # Copyright (c) 2016 Enea Software AB
3 # All rights reserved. This program and the accompanying materials
4 # are made available under the terms of the Apache License, Version 2.0
5 # which accompanies this distribution, and is available at
6 # http://www.apache.org/licenses/LICENSE-2.0
7
8 SCRIPT_DIR=$(readlink -f $(dirname ${BASH_SOURCE[0]}))
9 BUILD_BASE=$(readlink -e ${SCRIPT_DIR}/../upstream/fuel/build)
10
11 export ARMBAND_BASE=$(readlink -e ${SCRIPT_DIR}/..)
12 export OPNFV_GIT_SHA=$(git rev-parse HEAD)
13 export LOCAL_CACHE_ARCH_NAME="armband-cache"
14
15 # Initialize Armband git submodules & apply patches first
16 make -C ${ARMBAND_BASE} submodules-clean patches-import
17 cd ${ARMBAND_BASE}/upstream/fuel/ci && ./build.sh $*