Prevent segfault on extended trim (#3907)
[opentx.git] / tools / build-companion.sh
blobeb0fc5468f8d9e020ab53b9e7675789459b72e18
1 #!/bin/bash
3 # Stops on first error, echo on
4 set -e
5 set -x
7 SRCDIR=$1
8 OUTDIR=$2
10 COMMON_OPTIONS="-DALLOW_NIGHTLY_BUILDS=YES -DVERSION_SUFFIX=$3 -DGVARS=YES -DHELI=YES"
11 STM32_OPTIONS="${COMMON_OPTIONS} -DLUA=YES"
13 rm -rf build
14 mkdir build
15 cd build
17 cmake ${COMMON_OPTIONS} -DPCB=9X ${SRCDIR}
18 make -j2 libsimulator
20 cmake ${COMMON_OPTIONS} -DPCB=GRUVIN9X ${SRCDIR}
21 make -j2 libsimulator
23 cmake ${COMMON_OPTIONS} -DPCB=MEGA2560 ${SRCDIR}
24 make -j2 libsimulator
26 cmake ${COMMON_OPTIONS} -DPCB=SKY9X ${SRCDIR}
27 make -j2 libsimulator
29 cmake ${COMMON_OPTIONS} -DPCB=9XRPRO ${SRCDIR}
30 make -j2 libsimulator
32 cmake -DALLOW_NIGHTLY_BUILDS=YES -DVERSION_SUFFIX=$3 -DGVARS=NO -DHELI=YES -DPCB=X7D ${SRCDIR}
33 make -j2 libsimulator
35 cmake ${STM32_OPTIONS} -DPCB=X9D ${SRCDIR}
36 make -j2 libsimulator
38 cmake ${STM32_OPTIONS} -DPCB=X9D+ ${SRCDIR}
39 make -j2 libsimulator
41 cmake ${STM32_OPTIONS} -DPCB=X9E ${SRCDIR}
42 make -j2 libsimulator
44 cmake ${STM32_OPTIONS} -DPCB=HORUS ${SRCDIR}
45 make -j2 libsimulator
47 make -j2 package
49 cp *.deb ${OUTDIR}