blob: e7df37d14c84d899f0fbbb755154f793a4516b51 [file] [log] [blame]
Max1ac277d2018-01-18 19:15:40 +01001#!/bin/sh
2
3. $(dirname "$0")/jenkins_common.sh
4
Harald Welte61650d52018-08-01 17:41:38 +02005
6# from ../configure.ac
7WERROR_FLAGS="-Werror -Wno-error=deprecated -Wno-error=deprecated-declarations -Wno-error=cpp"
8
Max1ac277d2018-01-18 19:15:40 +01009src_dir="$PWD"
10build() {
11 build_dir="$1"
12
13 prep_build "$src_dir" "$build_dir"
14
15 "$src_dir"/configure --enable-static \
16 --prefix=/usr/local/arm-none-eabi \
17 --host=arm-none-eabi \
18 --enable-embedded \
19 --disable-doxygen \
20 --disable-shared \
Pau Espin Pedrolea2afb22019-10-24 15:41:32 +020021 --disable-libsctp \
Harald Welteda432cd2019-12-15 19:13:26 +010022 --disable-libusb \
Harald Welte53a2fde2020-12-01 22:21:14 +010023 --disable-libmnl \
Neels Hofmeyrd79f01e2018-09-12 02:53:54 +020024 --enable-external-tests \
Harald Welte61650d52018-08-01 17:41:38 +020025 CFLAGS="-Os -ffunction-sections -fdata-sections -nostartfiles -nodefaultlibs $WERROR_FLAGS"
Max1ac277d2018-01-18 19:15:40 +010026
Harald Welte1e783132018-06-28 10:51:12 +020027 $MAKE $PARALLEL_MAKE
Max1ac277d2018-01-18 19:15:40 +010028}
29
30# verify build in dir other than source tree
31build builddir
32# verify build in source tree
33build .
34
35osmo-clean-workspace.sh