scripts: avoid building redundent binaries for copter

hexa, octa, y6 and octa-quad are no longer needed if we have FRAME_CLASS
This commit is contained in:
Andrew Tridgell 2017-01-01 16:48:59 +11:00
parent 063f517424
commit 7df30ffe4d
1 changed files with 5 additions and 1 deletions

View File

@ -292,7 +292,11 @@ build_arduplane() {
build_arducopter() {
tag="$1"
echo "Building ArduCopter $tag binaries from $(pwd)"
frames="quad tri hexa y6 octa octa-quad heli"
if grep -q FRAME_CLASS ArduCopter/Parameters.cpp; then
frames="quad tri heli"
else
frames="quad tri hexa y6 octa octa-quad heli"
fi
for b in erlebrain2 navio navio2 pxf pxfmini bebop; do
for f in $frames; do
checkout ArduCopter $tag $b $f || {