mirror of https://github.com/ArduPilot/ardupilot
154 lines
4.6 KiB
Bash
Executable File
154 lines
4.6 KiB
Bash
Executable File
#git submodule init && git submodule update
|
|
export TOOLCHAIN
|
|
|
|
ROOT=`cd ../../..; pwd`
|
|
|
|
export PATH=/usr/local/bin:$PATH
|
|
|
|
echo $ROOT
|
|
|
|
mkdir -p $ROOT/Release/Copter
|
|
mkdir -p $ROOT/Release/Plane
|
|
|
|
|
|
( # RevoMini board
|
|
cd $ROOT/ArduCopter
|
|
make f4light-clean
|
|
make f4light VERBOSE=1 BOARD=f4light_Revolution && (
|
|
|
|
cp $ROOT/ArduCopter/f4light_Revolution.bin $ROOT/Release/Copter
|
|
cp $ROOT/ArduCopter/f4light_Revolution.hex $ROOT/Release/Copter
|
|
cp $ROOT/ArduCopter/f4light_Revolution.dfu $ROOT/Release/Copter
|
|
cp $ROOT/ArduCopter/f4light_Revolution_bl.bin $ROOT/Release/Copter
|
|
cp $ROOT/ArduCopter/f4light_Revolution_bl.dfu $ROOT/Release/Copter
|
|
)
|
|
) && (
|
|
cd $ROOT/ArduPlane
|
|
make f4light-clean
|
|
make f4light VERBOSE=1 BOARD=f4light_Revolution && (
|
|
|
|
cp $ROOT/ArduPlane/f4light_Revolution.bin $ROOT/Release/Plane
|
|
cp $ROOT/ArduPlane/f4light_Revolution.hex $ROOT/Release/Plane
|
|
cp $ROOT/ArduPlane/f4light_Revolution.dfu $ROOT/Release/Plane
|
|
cp $ROOT/ArduPlane/f4light_Revolution_bl.bin $ROOT/Release/Plane
|
|
cp $ROOT/ArduPlane/f4light_Revolution_bl.dfu $ROOT/Release/Plane
|
|
)
|
|
) && ( # AirBotF4 board
|
|
cd $ROOT/ArduCopter
|
|
make f4light-clean
|
|
make f4light VERBOSE=1 BOARD=f4light_Airbot && (
|
|
|
|
cp $ROOT/ArduCopter/f4light_Airbot.bin $ROOT/Release/Copter
|
|
cp $ROOT/ArduCopter/f4light_Airbot.hex $ROOT/Release/Copter
|
|
cp $ROOT/ArduCopter/f4light_Airbot.dfu $ROOT/Release/Copter
|
|
cp $ROOT/ArduCopter/f4light_Airbot_bl.bin $ROOT/Release/Copter
|
|
cp $ROOT/ArduCopter/f4light_Airbot_bl.dfu $ROOT/Release/Copter
|
|
|
|
make f4light-clean
|
|
|
|
)
|
|
) && (
|
|
cd $ROOT/ArduPlane
|
|
make f4light-clean
|
|
make f4light VERBOSE=1 BOARD=f4light_Airbot && (
|
|
|
|
cp $ROOT/ArduPlane/f4light_Airbot.bin $ROOT/Release/Plane
|
|
cp $ROOT/ArduPlane/f4light_Airbot.hex $ROOT/Release/Plane
|
|
cp $ROOT/ArduPlane/f4light_Airbot.dfu $ROOT/Release/Plane
|
|
cp $ROOT/ArduPlane/f4light_Airbot_bl.bin $ROOT/Release/Plane
|
|
cp $ROOT/ArduPlane/f4light_Airbot_bl.dfu $ROOT/Release/Plane
|
|
|
|
make f4light-clean
|
|
|
|
)
|
|
) && ( # Cl_Racing F4 board
|
|
cd $ROOT/ArduCopter
|
|
make f4light-clean
|
|
make f4light VERBOSE=1 BOARD=f4light_cl_racing && (
|
|
|
|
cp $ROOT/ArduCopter/f4light_cl_racing.bin $ROOT/Release/Copter
|
|
cp $ROOT/ArduCopter/f4light_cl_racing.hex $ROOT/Release/Copter
|
|
cp $ROOT/ArduCopter/f4light_cl_racing.dfu $ROOT/Release/Copter
|
|
cp $ROOT/ArduCopter/f4light_cl_racing_bl.bin $ROOT/Release/Copter
|
|
cp $ROOT/ArduCopter/f4light_cl_racing_bl.dfu $ROOT/Release/Copter
|
|
|
|
make f4light-clean
|
|
|
|
)
|
|
) && (
|
|
cd $ROOT/ArduPlane
|
|
make f4light-clean
|
|
make f4light VERBOSE=1 BOARD=f4light_Airbot && (
|
|
|
|
cp $ROOT/ArduPlane/f4light_cl_racing.bin $ROOT/Release/Plane
|
|
cp $ROOT/ArduPlane/f4light_cl_racing.hex $ROOT/Release/Plane
|
|
cp $ROOT/ArduPlane/f4light_cl_racing.dfu $ROOT/Release/Plane
|
|
cp $ROOT/ArduPlane/f4light_cl_racing_bl.bin $ROOT/Release/Plane
|
|
cp $ROOT/ArduPlane/f4light_cl_racing_bl.dfu $ROOT/Release/Plane
|
|
|
|
)
|
|
) && ( # AirBotF4 board
|
|
cd $ROOT/ArduCopter
|
|
make f4light-clean
|
|
make f4light VERBOSE=1 BOARD=f4light_AirbotV2 && (
|
|
|
|
cp $ROOT/ArduCopter/f4light_AirbotV2.bin $ROOT/Release/Copter
|
|
cp $ROOT/ArduCopter/f4light_AirbotV2.hex $ROOT/Release/Copter
|
|
cp $ROOT/ArduCopter/f4light_AirbotV2.dfu $ROOT/Release/Copter
|
|
cp $ROOT/ArduCopter/f4light_AirbotV2_bl.bin $ROOT/Release/Copter
|
|
cp $ROOT/ArduCopter/f4light_AirbotV2_bl.dfu $ROOT/Release/Copter
|
|
|
|
|
|
)
|
|
) && (
|
|
cd $ROOT/ArduPlane
|
|
make f4light-clean
|
|
make f4light VERBOSE=1 BOARD=f4light_AirbotV2 && (
|
|
|
|
cp $ROOT/ArduPlane/f4light_AirbotV2.bin $ROOT/Release/Plane
|
|
cp $ROOT/ArduPlane/f4light_AirbotV2.hex $ROOT/Release/Plane
|
|
cp $ROOT/ArduPlane/f4light_AirbotV2.dfu $ROOT/Release/Plane
|
|
cp $ROOT/ArduPlane/f4light_AirbotV2_bl.bin $ROOT/Release/Plane
|
|
cp $ROOT/ArduPlane/f4light_AirbotV2_bl.dfu $ROOT/Release/Plane
|
|
)
|
|
|
|
) && ( # RevoMini board with SD card
|
|
cd $ROOT/ArduCopter
|
|
make f4light-clean
|
|
make f4light VERBOSE=1 BOARD=f4light_Revolution_SD && (
|
|
|
|
cp $ROOT/ArduCopter/f4light_Revolution_SD.bin $ROOT/Release/Copter
|
|
cp $ROOT/ArduCopter/f4light_Revolution_SD.hex $ROOT/Release/Copter
|
|
cp $ROOT/ArduCopter/f4light_Revolution_SD.dfu $ROOT/Release/Copter
|
|
cp $ROOT/ArduCopter/f4light_Revolution_SD_bl.bin $ROOT/Release/Copter
|
|
cp $ROOT/ArduCopter/f4light_Revolution_SD_bl.dfu $ROOT/Release/Copter
|
|
)
|
|
) && (
|
|
cd $ROOT/ArduPlane
|
|
make f4light-clean
|
|
make f4light VERBOSE=1 BOARD=f4light_Revolution_SD && (
|
|
|
|
cp $ROOT/ArduPlane/f4light_Revolution_SD.bin $ROOT/Release/Plane
|
|
cp $ROOT/ArduPlane/f4light_Revolution_SD.hex $ROOT/Release/Plane
|
|
cp $ROOT/ArduPlane/f4light_Revolution_SD.dfu $ROOT/Release/Plane
|
|
cp $ROOT/ArduPlane/f4light_Revolution_SD_bl.bin $ROOT/Release/Plane
|
|
cp $ROOT/ArduPlane/f4light_Revolution_SD_bl.dfu $ROOT/Release/Plane
|
|
)
|
|
) && (
|
|
cd $ROOT
|
|
|
|
zip -r latest.zip Release
|
|
git add latest.zip
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|