blob: e0c75fa6c9150b91ec0469789a15ccefda417d7c [file] [log] [blame]
blobbcd8e7a42017-05-24 16:09:45 +02001#!/bin/sh
2
Max15b05fe2017-10-20 16:07:06 +02003. $(dirname "$0")/jenkins_common.sh
blobbcd8e7a42017-05-24 16:09:45 +02004
Max15b05fe2017-10-20 16:07:06 +02005build() {
6 $1 --enable-static \
blobbcd8e7a42017-05-24 16:09:45 +02007 --prefix=/usr/local/arm-none-eabi \
8 --host=arm-none-eabi \
9 --enable-embedded \
Maxd7ee5752017-10-20 16:08:29 +020010 --disable-doxygen \
blobbcd8e7a42017-05-24 16:09:45 +020011 --disable-shared \
Pau Espin Pedrol0d119ef2017-06-18 11:02:37 +020012 CFLAGS="-Os -ffunction-sections -fdata-sections -nostartfiles -nodefaultlibs -Werror"
blobbcd8e7a42017-05-24 16:09:45 +020013
14$MAKE $PARALLEL_MAKE \
15 || cat-testlogs.sh
Max15b05fe2017-10-20 16:07:06 +020016}
blobbcd8e7a42017-05-24 16:09:45 +020017
18# verify build in dir other than source tree
Max15b05fe2017-10-20 16:07:06 +020019mkdir -p builddir
blobbcd8e7a42017-05-24 16:09:45 +020020cd builddir
Max15b05fe2017-10-20 16:07:06 +020021build ../configure
blobbcd8e7a42017-05-24 16:09:45 +020022
Max15b05fe2017-10-20 16:07:06 +020023cd ..
24build ./configure
blobbcd8e7a42017-05-24 16:09:45 +020025