blob: 457959666a24432a617055739c9eb99383bcbb91 [file] [log] [blame]
Max1ac277d2018-01-18 19:15:40 +01001#!/bin/sh
2
3. $(dirname "$0")/jenkins_common.sh
4
5src_dir="$PWD"
6build() {
7 build_dir="$1"
8
9 prep_build "$src_dir" "$build_dir"
10
11 "$src_dir"/configure --enable-static \
12 --prefix=/usr/local/arm-none-eabi \
13 --host=arm-none-eabi \
14 --enable-embedded \
15 --disable-doxygen \
16 --disable-shared \
17 CFLAGS="-Os -ffunction-sections -fdata-sections -nostartfiles -nodefaultlibs -Werror"
18
Maxe41ad4d2018-01-18 17:37:18 +010019 run_make
Max1ac277d2018-01-18 19:15:40 +010020}
21
22# verify build in dir other than source tree
23build builddir
24# verify build in source tree
25build .
26
27osmo-clean-workspace.sh