Max | 1ac277d | 2018-01-18 19:15:40 +0100 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | |
| 3 | . $(dirname "$0")/jenkins_common.sh |
| 4 | |
Harald Welte | 61650d5 | 2018-08-01 17:41:38 +0200 | [diff] [blame] | 5 | |
| 6 | # from ../configure.ac |
| 7 | WERROR_FLAGS="-Werror -Wno-error=deprecated -Wno-error=deprecated-declarations -Wno-error=cpp" |
| 8 | |
Max | 1ac277d | 2018-01-18 19:15:40 +0100 | [diff] [blame] | 9 | src_dir="$PWD" |
| 10 | build() { |
| 11 | build_dir="$1" |
| 12 | |
| 13 | prep_build "$src_dir" "$build_dir" |
| 14 | |
| 15 | "$src_dir"/configure --enable-static \ |
| 16 | --prefix=/usr/local/arm-none-eabi \ |
| 17 | --host=arm-none-eabi \ |
| 18 | --enable-embedded \ |
| 19 | --disable-doxygen \ |
| 20 | --disable-shared \ |
Pau Espin Pedrol | ea2afb2 | 2019-10-24 15:41:32 +0200 | [diff] [blame] | 21 | --disable-libsctp \ |
Harald Welte | da432cd | 2019-12-15 19:13:26 +0100 | [diff] [blame] | 22 | --disable-libusb \ |
Harald Welte | 53a2fde | 2020-12-01 22:21:14 +0100 | [diff] [blame] | 23 | --disable-libmnl \ |
Harald Welte | 61650d5 | 2018-08-01 17:41:38 +0200 | [diff] [blame] | 24 | CFLAGS="-Os -ffunction-sections -fdata-sections -nostartfiles -nodefaultlibs $WERROR_FLAGS" |
Max | 1ac277d | 2018-01-18 19:15:40 +0100 | [diff] [blame] | 25 | |
Harald Welte | 1e78313 | 2018-06-28 10:51:12 +0200 | [diff] [blame] | 26 | $MAKE $PARALLEL_MAKE |
Max | 1ac277d | 2018-01-18 19:15:40 +0100 | [diff] [blame] | 27 | } |
| 28 | |
| 29 | # verify build in dir other than source tree |
| 30 | build builddir |
| 31 | # verify build in source tree |
| 32 | build . |
| 33 | |
| 34 | osmo-clean-workspace.sh |