blob: 8793415859c2eabee61ed0acaf9388466478c9a4 [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 \
Harald Welte61650d52018-08-01 17:41:38 +020024 CFLAGS="-Os -ffunction-sections -fdata-sections -nostartfiles -nodefaultlibs $WERROR_FLAGS"
Max1ac277d2018-01-18 19:15:40 +010025
Harald Welte1e783132018-06-28 10:51:12 +020026 $MAKE $PARALLEL_MAKE
Max1ac277d2018-01-18 19:15:40 +010027}
28
29# verify build in dir other than source tree
30build builddir
31# verify build in source tree
32build .
33
34osmo-clean-workspace.sh