#!/bin/bash if ! [ -x "$(command -v osmo-deps.sh)" ]; then echo "Error: We need to have scripts/osmo-deps.sh from http://git.osmocom.org/osmo-ci/ in PATH !" exit 2 fi set -ex if [ -z "$MAKE" ]; then set +x echo "Error: you need to set \$MAKE before invoking, e.g. MAKE=make" exit 1 fi TOPDIR=`pwd` publish="$1" osmo-clean-workspace.sh verify_value_string_arrays_are_terminated.py $(find . -name "*.[hc]") cd gcc $MAKE mrproper # build for EVK $MAKE $PARALLEL_MAKE $MAKE clean # build for sysmoOCTSIM $MAKE $PARALLEL_MAKE BOARD=SYSMOOCTSIM if [ "x$publish" = "x--publish" ]; then echo echo "=============== UPLOAD BUILD ==============" cat > "/build/known_hosts" <