summaryrefslogtreecommitdiffstats
path: root/contrib/jenkins-arm.sh
blob: e0c75fa6c9150b91ec0469789a15ccefda417d7c (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
#!/bin/sh

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

build() {
    $1 --enable-static \
	--prefix=/usr/local/arm-none-eabi \
	--host=arm-none-eabi \
	--enable-embedded \
	--disable-doxygen \
	--disable-shared \
	CFLAGS="-Os -ffunction-sections -fdata-sections -nostartfiles -nodefaultlibs -Werror"

$MAKE $PARALLEL_MAKE \
	|| cat-testlogs.sh
}

# verify build in dir other than source tree
mkdir -p builddir
cd builddir
build ../configure

cd ..
build ./configure