blob: 93dd8bb40250c06334ed1beacca489abca446341 [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
Neels Hofmeyrba2bd2e2018-11-06 21:16:37 +010017set -x
18
19gcc --version
20
21set -e
Max1ac277d2018-01-18 19:15:40 +010022
23case "$arch" in
24
25 amd64)
26 ./contrib/jenkins_amd64.sh
27 ;;
28
Harald Weltecae93e52018-06-28 08:32:17 +020029 arm|arm-none-eabi)
Daniel Willmannf4cd2282018-02-15 15:28:41 +010030 ./contrib/jenkins_arm.sh
Max1ac277d2018-01-18 19:15:40 +010031 ;;
32
33 *)
34 set +x
35 echo "Unexpected architecture '$arch'"
Harald Welte79d49af2018-06-28 08:28:27 +020036 exit 1
Max1ac277d2018-01-18 19:15:40 +010037 ;;
38esac