2023-12-04 05:55:08 -04:00
|
|
|
#!/usr/bin/env bash
|
2018-12-25 18:24:22 -04:00
|
|
|
# script to build 32 bit cygwin binaries for SITL
|
|
|
|
|
|
|
|
export PATH="/usr/local/bin:/usr/bin:/bin"
|
|
|
|
export PATH
|
|
|
|
|
|
|
|
set -x
|
|
|
|
|
|
|
|
cd /cygdrive/c/work
|
|
|
|
|
|
|
|
(
|
|
|
|
date
|
|
|
|
git submodule update --init --recursive -f
|
2018-12-26 18:28:28 -04:00
|
|
|
|
|
|
|
# build for 32 bit target
|
|
|
|
export CXX=i686-pc-cygwin-g++.exe
|
|
|
|
export CC=i686-pc-cygwin-gcc
|
|
|
|
|
|
|
|
./waf configure --board sitl
|
|
|
|
|
2024-09-09 23:59:20 -03:00
|
|
|
python3 waf -j4 copter plane rover heli sub
|
2018-12-25 18:24:22 -04:00
|
|
|
|
|
|
|
# map to the names that MissionPlanner expects
|
2020-03-26 21:51:16 -03:00
|
|
|
cp /cygdrive/c/work/build/sitl/bin/ardurover.exe /cygdrive/c/work/sitl/Rover.elf
|
2018-12-25 18:24:22 -04:00
|
|
|
cp /cygdrive/c/work/build/sitl/bin/arduplane.exe /cygdrive/c/work/sitl/ArduPlane.elf
|
|
|
|
cp /cygdrive/c/work/build/sitl/bin/arducopter.exe /cygdrive/c/work/sitl/ArduCopter.elf
|
|
|
|
cp /cygdrive/c/work/build/sitl/bin/arducopter-heli.exe /cygdrive/c/work/sitl/ArduHeli.elf
|
|
|
|
cp /cygdrive/c/work/build/sitl/bin/ardusub.exe /cygdrive/c/work/sitl/ArduSub.elf
|
|
|
|
|
|
|
|
cp /usr/i686-pc-cygwin/sys-root/usr/bin/*.dll /cygdrive/c/work/sitl/
|
|
|
|
|
|
|
|
cd /cygdrive/c/work/sitl/
|
|
|
|
git log -1 > git.txt
|
|
|
|
ls
|
2018-12-26 18:28:28 -04:00
|
|
|
) | tee /cygdrive/c/work/sitl/build.txt 2>&1
|
2018-12-25 18:24:22 -04:00
|
|
|
|
|
|
|
|