@@ -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=\"<your 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})"
Signed-off-by: Zoltan Kiss <zoltan.kiss@linaro.org> --- build.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-)