mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-24 01:28:29 -04:00
Tools: fixed build_binaries for new build names
This commit is contained in:
parent
978d32ff12
commit
746b0dd376
@ -129,7 +129,7 @@ skip_frame() {
|
|||||||
sboard=$1
|
sboard=$1
|
||||||
sframe=$2
|
sframe=$2
|
||||||
if [ "$sboard" = "bebop" ]; then
|
if [ "$sboard" = "bebop" ]; then
|
||||||
if [ "$sframe" != "quad" ]; then
|
if [ "$sframe" != "quad" -a "$sframe" != "none" ]; then
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
@ -296,7 +296,7 @@ build_arducopter() {
|
|||||||
# work out what frames to build by looking for FRAME_CLASS parameter
|
# work out what frames to build by looking for FRAME_CLASS parameter
|
||||||
checkout ArduCopter $tag "" ""
|
checkout ArduCopter $tag "" ""
|
||||||
if grep -q FRAME_CLASS ArduCopter/Parameters.cpp; then
|
if grep -q FRAME_CLASS ArduCopter/Parameters.cpp; then
|
||||||
frames="quad heli"
|
frames="none heli"
|
||||||
else
|
else
|
||||||
frames="quad tri hexa y6 octa octa-quad heli"
|
frames="quad tri hexa y6 octa octa-quad heli"
|
||||||
fi
|
fi
|
||||||
@ -308,6 +308,11 @@ build_arducopter() {
|
|||||||
for b in erlebrain2 navio navio2 pxf pxfmini bebop; do
|
for b in erlebrain2 navio navio2 pxf pxfmini bebop; do
|
||||||
echo "Building board: $b"
|
echo "Building board: $b"
|
||||||
for f in $frames; do
|
for f in $frames; do
|
||||||
|
if [ "$f" = "none" ]; then
|
||||||
|
framesuffix=""
|
||||||
|
else
|
||||||
|
framesuffix="-$f"
|
||||||
|
fi
|
||||||
echo "Building frame $f for board $b"
|
echo "Building frame $f for board $b"
|
||||||
checkout ArduCopter $tag $b $f || {
|
checkout ArduCopter $tag $b $f || {
|
||||||
echo "Failed checkout of ArduCopter $b $tag $f"
|
echo "Failed checkout of ArduCopter $b $tag $f"
|
||||||
@ -316,23 +321,28 @@ build_arducopter() {
|
|||||||
}
|
}
|
||||||
skip_board_waf $b && continue
|
skip_board_waf $b && continue
|
||||||
echo "Building ArduCopter $tag $b binaries $f"
|
echo "Building ArduCopter $tag $b binaries $f"
|
||||||
ddir=$binaries/Copter/$hdate/$b-$f
|
ddir=$binaries/Copter/$hdate/$b$framesuffix
|
||||||
skip_build $tag $ddir && continue
|
skip_build $tag $ddir && continue
|
||||||
skip_frame $b $f && continue
|
skip_frame $b $f && continue
|
||||||
options=$(board_options $b)
|
options=$(board_options $b)
|
||||||
waf configure --board $b $options --out $BUILDROOT clean \
|
waf configure --board $b $options --out $BUILDROOT clean \
|
||||||
build --targets bin/arducopter-$f || {
|
build --targets bin/arducopter$framesuffix || {
|
||||||
echo "Failed build of ArduCopter $b-$f $tag"
|
echo "Failed build of ArduCopter $b$framesuffix $tag"
|
||||||
error_count=$((error_count+1))
|
error_count=$((error_count+1))
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
copyit $BUILDROOT/$b/bin/arducopter-$f $ddir $tag "ArduCopter"
|
copyit $BUILDROOT/$b/bin/arducopter$framesuffix $ddir $tag "ArduCopter"
|
||||||
touch $binaries/Copter/$tag
|
touch $binaries/Copter/$tag
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
pushd ArduCopter
|
pushd ArduCopter
|
||||||
for f in $frames; do
|
for f in $frames; do
|
||||||
echo "Building frame $f for board PX4"
|
echo "Building frame $f for board PX4"
|
||||||
|
if [ "$f" = "none" ]; then
|
||||||
|
framesuffix=""
|
||||||
|
else
|
||||||
|
framesuffix="-$f"
|
||||||
|
fi
|
||||||
checkout ArduCopter $tag PX4 $f || {
|
checkout ArduCopter $tag PX4 $f || {
|
||||||
echo "Failed checkout of ArduCopter PX4 $tag $f"
|
echo "Failed checkout of ArduCopter PX4 $tag $f"
|
||||||
error_count=$((error_count+1))
|
error_count=$((error_count+1))
|
||||||
@ -340,12 +350,12 @@ build_arducopter() {
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
rm -rf ../Build.ArduCopter
|
rm -rf ../Build.ArduCopter
|
||||||
echo "Building ArduCopter $tag PX4-$f binaries"
|
echo "Building ArduCopter $tag PX4$framesuffix binaries"
|
||||||
ddir="$binaries/Copter/$hdate/PX4-$f"
|
ddir="$binaries/Copter/$hdate/PX4$framesuffix"
|
||||||
skip_build $tag $ddir && continue
|
skip_build $tag $ddir && continue
|
||||||
for v in v1 v2 v3 v4; do
|
for v in v1 v2 v3 v4; do
|
||||||
make px4-clean
|
make px4-clean
|
||||||
make px4-$v-$f -j2 || {
|
make px4-$v$framesuffix -j2 || {
|
||||||
echo "Failed build of ArduCopter PX4 $tag for $v"
|
echo "Failed build of ArduCopter PX4 $tag for $v"
|
||||||
error_count=$((error_count+1))
|
error_count=$((error_count+1))
|
||||||
continue
|
continue
|
||||||
|
Loading…
Reference in New Issue
Block a user