Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Path: blob/master/Tools/scripts/cygwin_build.sh
Views: 1798
#!/usr/bin/env bash12# script to build cygwin binaries for using in MissionPlanner3# the contents of artifacts directory is uploaded to:4# https://firmware.ardupilot.org/Tools/MissionPlanner/sitl/56# the script assumes you start in the root of the ardupilot git tree78set -x9set -e1011# TOOLCHAIN=i686-pc-cygwin12TOOLCHAIN=x86_64-pc-cygwin13GPP_COMPILER="${TOOLCHAIN}-g++"1415$GPP_COMPILER -print-sysroot1617SYS_ROOT=$($GPP_COMPILER -print-sysroot)18echo "SYS_ROOT=$SYS_ROOT"1920rm -rf artifacts21mkdir artifacts2223# cygwin doesn't work out the parallelism properly24WAF_OPTIONS="-j8"2526(27python ./waf --color yes --toolchain $TOOLCHAIN --board sitl configure 2>&128python ./waf plane $WAF_OPTIONS 2>&129python ./waf copter $WAF_OPTIONS 2>&130python ./waf heli $WAF_OPTIONS 2>&131python ./waf rover $WAF_OPTIONS 2>&132python ./waf sub $WAF_OPTIONS 2>&133) | tee artifacts/build.txt3435# artifacts are expected to have .exe as they are executable36cp -v build/sitl/bin/arduplane artifacts/ArduPlane.elf.exe37cp -v build/sitl/bin/arducopter artifacts/ArduCopter.elf.exe38cp -v build/sitl/bin/arducopter-heli artifacts/ArduHeli.elf.exe39cp -v build/sitl/bin/ardurover artifacts/ArduRover.elf.exe40cp -v build/sitl/bin/ardusub artifacts/ArduSub.elf.exe4142# Find all cyg*.dll files returned by cygcheck for each exe in artifacts43# and copy them over44for exe in artifacts/*.exe; do45echo $exe46cygcheck $exe | grep -oP 'cyg[^\s\\/]+\.dll' | while read -r line; do47cp -v /usr/bin/$line artifacts/48done49done5051git log -1 > artifacts/git.txt52ls -l artifacts/535455