From 7df30ffe4dd4763851109835f73add2ce88a5c65 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 1 Jan 2017 16:48:59 +1100 Subject: [PATCH] scripts: avoid building redundent binaries for copter hexa, octa, y6 and octa-quad are no longer needed if we have FRAME_CLASS --- Tools/scripts/build_binaries.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Tools/scripts/build_binaries.sh b/Tools/scripts/build_binaries.sh index e2ea1e8805..bb97673d4a 100755 --- a/Tools/scripts/build_binaries.sh +++ b/Tools/scripts/build_binaries.sh @@ -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 || {