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

set -ex

./contrib/verify_value_string_arrays_are_terminated.py $(find . -name "*.[hc]")

autoreconf --install --force
./configure --enable-static \
	--prefix=/usr/local/arm-none-eabi \
	--host=arm-none-eabi \
	--enable-embedded \
	--disable-shared \
	CFLAGS="-Os -ffunction-sections -fdata-sections -nostartfiles -nodefaultlibs"

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

# verify build in dir other than source tree
rm -rf *
git checkout .
autoreconf --install --force
mkdir builddir
cd builddir

../configure --enable-static \
	--prefix=/usr/local/arm-none-eabi \
	--host=arm-none-eabi \
	--enable-embedded \
	--disable-shared \
	CFLAGS="-Os -ffunction-sections -fdata-sections -nostartfiles -nodefaultlibs"

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