2018-01-18 18:15:40 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
. $(dirname "$0")/jenkins_common.sh
|
|
|
|
|
2018-08-01 15:41:38 +00:00
|
|
|
|
|
|
|
# from ../configure.ac
|
|
|
|
WERROR_FLAGS="-Werror -Wno-error=deprecated -Wno-error=deprecated-declarations -Wno-error=cpp"
|
|
|
|
|
2018-01-18 18:15:40 +00:00
|
|
|
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 \
|
2019-10-24 13:41:32 +00:00
|
|
|
--disable-libsctp \
|
2019-12-15 18:13:26 +00:00
|
|
|
--disable-libusb \
|
2020-12-01 21:21:14 +00:00
|
|
|
--disable-libmnl \
|
2018-09-12 00:53:54 +00:00
|
|
|
--enable-external-tests \
|
2018-08-01 15:41:38 +00:00
|
|
|
CFLAGS="-Os -ffunction-sections -fdata-sections -nostartfiles -nodefaultlibs $WERROR_FLAGS"
|
2018-01-18 18:15:40 +00:00
|
|
|
|
2018-06-28 08:51:12 +00:00
|
|
|
$MAKE $PARALLEL_MAKE
|
2018-01-18 18:15:40 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
# verify build in dir other than source tree
|
|
|
|
build builddir
|
|
|
|
# verify build in source tree
|
|
|
|
build .
|
|
|
|
|
|
|
|
osmo-clean-workspace.sh
|