summaryrefslogtreecommitdiffstats
path: root/contrib/jenkins_arm.sh
blob: c9cd922ed54fd40ba25754df29ea5d554436fb4a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/sh

. $(dirname "$0")/jenkins_common.sh


# from ../configure.ac
WERROR_FLAGS="-Werror -Wno-error=deprecated -Wno-error=deprecated-declarations -Wno-error=cpp"

src_dir="$PWD"
build() {
    build_dir="$1"

    prep_build "$src_dir" "$build_dir"

    "$src_dir"/configure --enable-static \
	--prefix=/usr/local/arm-none-eabi \
	--host=arm-none-eabi \
	--enable-embedded \
	--disable-doxygen \
	--disable-shared \
	--disable-libsctp \
	--disable-libusb \
	--enable-external-tests \
	CFLAGS="-Os -ffunction-sections -fdata-sections -nostartfiles -nodefaultlibs $WERROR_FLAGS"

    $MAKE $PARALLEL_MAKE
}

# verify build in dir other than source tree
build builddir
# verify build in source tree
build .

osmo-clean-workspace.sh