blob: 99ce5c1acf982f4e1c6d258ecef804bdaa30c9db [file] [log] [blame]
Max1ac277d2018-01-18 19:15:40 +01001#!/bin/sh
2# this is a dispatcher script which will call the arch-specific
3# script based on the arch specified as command line argument
4
5arch="$1"
6
Daniel Willmannf4cd2282018-02-15 15:28:41 +01007if [ "x$arch" = "x" ]; then
Max1ac277d2018-01-18 19:15:40 +01008 echo "Error: You have to specify the architecture as first argument, e.g. $0 amd64"
9 exit 2
10fi
11
12if [ ! -d "./contrib" ]; then
13 echo "Run ./contrib/jenkins_arch.sh from the root of the libosmocore tree"
14 exit 1
15fi
16
17set -x -e
18
19case "$arch" in
20
21 amd64)
22 ./contrib/jenkins_amd64.sh
23 ;;
24
Harald Weltecae93e52018-06-28 08:32:17 +020025 arm|arm-none-eabi)
Daniel Willmannf4cd2282018-02-15 15:28:41 +010026 ./contrib/jenkins_arm.sh
Max1ac277d2018-01-18 19:15:40 +010027 ;;
28
29 *)
30 set +x
31 echo "Unexpected architecture '$arch'"
Harald Welte79d49af2018-06-28 08:28:27 +020032 exit 1
Max1ac277d2018-01-18 19:15:40 +010033 ;;
34esac