2018-02-02 16:35:18 -04:00
|
|
|
#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
|
|
|
|
|
|
|
|
|
2018-04-16 07:00:15 -03:00
|
|
|
make_copter(){
|
|
|
|
local BOARD=$1
|
|
|
|
|
2018-02-02 16:35:18 -04:00
|
|
|
cd $ROOT/ArduCopter
|
|
|
|
make f4light-clean
|
2018-04-16 07:00:15 -03:00
|
|
|
make f4light BOARD=$BOARD && (
|
2018-02-02 16:35:18 -04:00
|
|
|
|
2018-04-16 07:00:15 -03:00
|
|
|
cp $ROOT/ArduCopter/$BOARD.bin $ROOT/Release/Copter
|
|
|
|
cp $ROOT/ArduCopter/$BOARD.hex $ROOT/Release/Copter
|
|
|
|
cp $ROOT/ArduCopter/$BOARD.dfu $ROOT/Release/Copter
|
|
|
|
cp $ROOT/ArduCopter/${BOARD}_bl.bin $ROOT/Release/Copter
|
|
|
|
cp $ROOT/ArduCopter/${BOARD}_bl.dfu $ROOT/Release/Copter
|
2018-02-02 16:35:18 -04:00
|
|
|
)
|
2018-04-16 07:00:15 -03:00
|
|
|
}
|
2018-02-02 16:35:18 -04:00
|
|
|
|
2018-04-16 07:00:15 -03:00
|
|
|
make_plane(){
|
|
|
|
local BOARD=$1
|
2018-02-02 16:35:18 -04:00
|
|
|
|
|
|
|
cd $ROOT/ArduPlane
|
|
|
|
make f4light-clean
|
2018-04-16 07:00:15 -03:00
|
|
|
make f4light VERBOSE=1 BOARD=$BOARD && (
|
2018-02-02 16:35:18 -04:00
|
|
|
|
2018-04-16 07:00:15 -03:00
|
|
|
cp $ROOT/ArduPlane/$BOARD.bin $ROOT/Release/Plane
|
|
|
|
cp $ROOT/ArduPlane/$BOARD.hex $ROOT/Release/Plane
|
|
|
|
cp $ROOT/ArduPlane/$BOARD.dfu $ROOT/Release/Plane
|
|
|
|
cp $ROOT/ArduPlane/${BOARD}_bl.bin $ROOT/Release/Plane
|
|
|
|
cp $ROOT/ArduPlane/${BOARD}_bl.dfu $ROOT/Release/Plane
|
2018-02-02 16:35:18 -04:00
|
|
|
)
|
|
|
|
|
2018-04-16 07:00:15 -03:00
|
|
|
}
|
2018-02-02 16:35:18 -04:00
|
|
|
|
2018-04-16 07:00:15 -03:00
|
|
|
( # RevoMini board
|
|
|
|
make_copter "f4light_Revolution" && \
|
|
|
|
make_plane "f4light_Revolution"
|
2018-02-02 16:35:18 -04:00
|
|
|
) && ( # AirBotF4 board
|
2018-04-16 07:00:15 -03:00
|
|
|
make_copter "f4light_Airbot" && \
|
|
|
|
make_plane "f4light_Airbot"
|
|
|
|
) && ( # Cl_Racing F4 board
|
|
|
|
make_copter "f4light_cl_racing" && \
|
|
|
|
make_plane "f4light_cl_racing"
|
|
|
|
) && ( # AirBotV2 board
|
|
|
|
make_copter "f4light_AirbotV2" && \
|
|
|
|
make_plane "f4light_AirbotV2"
|
2018-05-13 11:51:19 -03:00
|
|
|
) && ( # OmnibusV3 board
|
|
|
|
make_copter "f4light_OmnibusV3" && \
|
|
|
|
make_plane "f4light_OmnibusV3"
|
2018-03-22 00:32:18 -03:00
|
|
|
) && ( # RevoMini board with SD card
|
2018-04-16 07:00:15 -03:00
|
|
|
make_copter "f4light_Revolution_SD" && \
|
|
|
|
make_plane "f4light_Revolution_SD"
|
|
|
|
) && ( # MatekF405_CTR board
|
|
|
|
make_copter "f4light_MatekF405_CTR" && \
|
|
|
|
make_plane "f4light_MatekF405_CTR"
|
2018-02-02 16:35:18 -04:00
|
|
|
) && (
|
|
|
|
cd $ROOT
|
|
|
|
|
|
|
|
zip -r latest.zip Release
|
2018-05-04 05:56:34 -03:00
|
|
|
# git add latest.zip
|
2018-02-02 16:35:18 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|