Common library for all Osmocom projects (libosmocore, libosmogsm, libosmovty, libosmogb, libosmosim, libosmousb, ...) https://osmocom.org/projects/libosmocore
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
libosmocore/contrib/jenkins_arm.sh

34 lines
732 B

#!/bin/sh
. $(dirname "$0")/jenkins_common.sh
# from ../configure.ac
WERROR_FLAGS="-Werror -Wno-error=deprecated -Wno-error=deprecated-declarations -Wno-error=cpp"
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 \
--disable-libsctp \
--disable-libusb \
--enable-external-tests \
CFLAGS="-Os -ffunction-sections -fdata-sections -nostartfiles -nodefaultlibs $WERROR_FLAGS"
$MAKE $PARALLEL_MAKE
}
# verify build in dir other than source tree
build builddir
# verify build in source tree
build .
osmo-clean-workspace.sh