2017-05-24 14:09:45 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2017-10-20 14:07:06 +00:00
|
|
|
. $(dirname "$0")/jenkins_common.sh
|
2017-05-24 14:09:45 +00:00
|
|
|
|
2017-10-20 14:07:06 +00:00
|
|
|
build() {
|
|
|
|
$1 --enable-static \
|
2017-05-24 14:09:45 +00:00
|
|
|
--prefix=/usr/local/arm-none-eabi \
|
|
|
|
--host=arm-none-eabi \
|
|
|
|
--enable-embedded \
|
2017-10-20 14:08:29 +00:00
|
|
|
--disable-doxygen \
|
2017-05-24 14:09:45 +00:00
|
|
|
--disable-shared \
|
2017-06-18 09:02:37 +00:00
|
|
|
CFLAGS="-Os -ffunction-sections -fdata-sections -nostartfiles -nodefaultlibs -Werror"
|
2017-05-24 14:09:45 +00:00
|
|
|
|
|
|
|
$MAKE $PARALLEL_MAKE \
|
|
|
|
|| cat-testlogs.sh
|
2017-10-20 14:07:06 +00:00
|
|
|
}
|
2017-05-24 14:09:45 +00:00
|
|
|
|
|
|
|
# verify build in dir other than source tree
|
2017-10-20 14:07:06 +00:00
|
|
|
mkdir -p builddir
|
2017-05-24 14:09:45 +00:00
|
|
|
cd builddir
|
2017-10-20 14:07:06 +00:00
|
|
|
build ../configure
|
2017-05-24 14:09:45 +00:00
|
|
|
|
2017-10-20 14:07:06 +00:00
|
|
|
cd ..
|
|
|
|
build ./configure
|
2017-05-24 14:09:45 +00:00
|
|
|
|