Skip to content

Commit

Permalink
Tools: make build_all.sh use waf
Browse files Browse the repository at this point in the history
  • Loading branch information
tridge committed May 9, 2017
1 parent 0c186de commit cd52c5a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 70 deletions.
53 changes: 8 additions & 45 deletions Tools/scripts/build_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,59 +11,22 @@ 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
BOARDS="sitl linux"

echo "Testing ArduCopter build"
pushd ArduCopter
for b in sitl linux; do
pwd
make clean
make $b -j4
for b in $BOARDS; do
echo "Testing $b build"
./waf configure --board $b
./waf clean
./waf
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

echo "Testing ArduSub build"
pushd ArduSub
for b in sitl linux; do
pwd
make clean
make $b -j4
done
popd

echo "Building Replay"
pushd Tools/Replay
make clean
make
popd

test -n "$PX4_ROOT" && test -d "$PX4_ROOT" && {
./Tools/scripts/build_all_px4.sh
}
./Tools/scripts/build_all_px4.sh

test -n "$VRBRAIN_ROOT" && test -d "$VRBRAIN_ROOT" && {
./Tools/scripts/build_all_vrbrain.sh
Expand Down
33 changes: 8 additions & 25 deletions Tools/scripts/build_all_px4.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,32 +9,15 @@ set -e
set -x

git submodule init
git submodule update
git submodule update --recursive

for d in ArduPlane ArduCopter APMrover2 ArduSub; do
pushd $d
make px4-clean
popd
done

echo "Testing ArduPlane build"
pushd ArduPlane
make px4
popd

echo "Testing ArduCopter build"
pushd ArduCopter
make px4
popd
builds="px4-v1 px4-v2 px4-v3 px4-v4"

echo "Testing APMrover2 build"
pushd APMrover2
make px4
popd

echo "Testing ArduSub build"
pushd ArduSub
make px4
popd
for b in $builds; do
echo "Testing $b build"
./waf clean
./waf configure --board $b
./waf
done

exit 0

0 comments on commit cd52c5a

Please sign in to comment.