build: avoid rebuilding PX4 archives for each copter type

this should make build_binaries.sh much faster
This commit is contained in:
Andrew Tridgell 2013-09-06 20:05:12 +10:00
parent 2b726abe0e
commit e43234874a
1 changed files with 2 additions and 1 deletions

View File

@ -130,11 +130,12 @@ build_arducopter() {
done
done
test -n "$PX4_ROOT" && {
make px4-clean || return
for f in quad tri hexa y6 octa octa-quad heli quad-hil heli-hil; do
echo "Building ArduCopter PX4-$f binaries"
ddir="$binaries/Copter/$hdate/PX4-$f"
skip_build $tag $ddir && continue
make px4-clean || continue
rm -rf ../Build.ArduCopter
make px4-$f || continue
copyit ArduCopter-v1.px4 $ddir $tag &&
copyit ArduCopter-v2.px4 $ddir $tag