Travis: added navio target

This commit is contained in:
Staroselskii Georgii 2015-04-23 14:47:58 +03:00 committed by Andrew Tridgell
parent 3812773485
commit 9517bb3049
2 changed files with 17 additions and 0 deletions

View File

@ -31,6 +31,8 @@ for d in ArduCopter APMrover2 ArduPlane AntennaTracker; do
make clean make clean
make px4-cleandep make px4-cleandep
make px4-v2 make px4-v2
make clean
make navio -j4
popd popd
done done

View File

@ -23,6 +23,10 @@ ARM_ROOT="gcc-arm-none-eabi-4_7-2014q2"
ARM_TARBALL="$ARM_ROOT-20140408-linux.tar.bz2" ARM_TARBALL="$ARM_ROOT-20140408-linux.tar.bz2"
ARM_TARBALL_URL="http://firmware.diydrones.com/Tools/PX4-tools/$ARM_TARBALL" ARM_TARBALL_URL="http://firmware.diydrones.com/Tools/PX4-tools/$ARM_TARBALL"
RPI_ROOT="master"
RPI_TARBALL="$RPI_ROOT.tar.gz"
RPI_TARBALL_URL="http://firmware.diydrones.com/Tools/Travis/NavIO/$RPI_TARBALL"
# Ardupilot Tools # Ardupilot Tools
ARDUPILOT_TOOLS="ardupilot/Tools/autotest" ARDUPILOT_TOOLS="ardupilot/Tools/autotest"
@ -77,13 +81,24 @@ wget $ARM_TARBALL_URL
tar xjf ${ARM_TARBALL} tar xjf ${ARM_TARBALL}
rm -f ${ARM_TARBALL} rm -f ${ARM_TARBALL}
cd $OPT
wget $RPI_TARBALL_URL
tar xzf ${RPI_TARBALL}
rm -f ${RPI_TARBALL}
exportline="export PATH=$OPT/$ARM_ROOT/bin:\$PATH"; exportline="export PATH=$OPT/$ARM_ROOT/bin:\$PATH";
echo $exportline >> ~/.profile echo $exportline >> ~/.profile
exportline2="export PATH=$CWD/$ARDUPILOT_TOOLS:\$PATH"; exportline2="export PATH=$CWD/$ARDUPILOT_TOOLS:\$PATH";
echo $exportline2 >> ~/.profile echo $exportline2 >> ~/.profile
exportline3="export PATH=$OPT/tools-master/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin:\$PATH";
echo $exportline3 >> ~/.profile
. ~/.profile . ~/.profile
echo $PATH echo $PATH
ls -l $OPT/$ARM_ROOT/bin ls -l $OPT/$ARM_ROOT/bin
$OPT/$ARM_ROOT/bin/arm-none-eabi-gcc --version $OPT/$ARM_ROOT/bin/arm-none-eabi-gcc --version
echo "Compiler for NavIO"
arm-linux-gnueabihf-gcc --version