mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
705f96dd3e
The only example being built in build_all.sh was CPUInfo and that is really an APM tool. It will get built further down in when autotest.py calls build.Examples so we don't need to build it here. And changing the Replay build to just call make which really means it will invoke waf as that's what the makefile does.
64 lines
960 B
Bash
Executable File
64 lines
960 B
Bash
Executable File
#!/bin/bash
|
|
# useful script to test all the different build types that we support.
|
|
# This helps when doing large merges
|
|
# Andrew Tridgell, November 2011
|
|
|
|
. config.mk
|
|
|
|
set -e
|
|
set -x
|
|
|
|
export BUILDROOT="/tmp/all.build"
|
|
rm -rf $BUILDROOT
|
|
|
|
echo "Testing ArduPlane build"
|
|
pushd ArduPlane
|
|
for b in sitl linux; do
|
|
pwd
|
|
make clean
|
|
make $b -j4
|
|
done
|
|
popd
|
|
|
|
echo "Testing ArduCopter build"
|
|
pushd ArduCopter
|
|
for b in sitl linux; do
|
|
pwd
|
|
make clean
|
|
make $b -j4
|
|
done
|
|
popd
|
|
|
|
echo "Testing APMRover build"
|
|
pushd APMrover2
|
|
for b in sitl linux; do
|
|
pwd
|
|
make clean
|
|
make $b -j4
|
|
done
|
|
popd
|
|
|
|
echo "Testing AntennaTracker build"
|
|
pushd AntennaTracker
|
|
for b in sitl; do
|
|
pwd
|
|
make clean
|
|
make $b -j4
|
|
done
|
|
popd
|
|
|
|
pushd Tools/Replay
|
|
make clean
|
|
make
|
|
popd
|
|
|
|
test -n "$PX4_ROOT" && test -d "$PX4_ROOT" && {
|
|
./Tools/scripts/build_all_px4.sh
|
|
}
|
|
|
|
test -n "$VRBRAIN_ROOT" && test -d "$VRBRAIN_ROOT" && {
|
|
./Tools/scripts/build_all_vrbrain.sh
|
|
}
|
|
|
|
exit 0
|