upload .uf2 for nrf52840 boards

This commit is contained in:
Dan Halbert 2018-08-29 15:38:33 -04:00
parent 93100a7517
commit de9f9e8504

View File

@ -2,7 +2,7 @@ rm -rf ports/atmel-samd/build*
rm -rf ports/esp8266/build* rm -rf ports/esp8266/build*
rm -rf ports/nrf/build* rm -rf ports/nrf/build*
ATMEL_BOARDS="\ HW_BOARDS="\
arduino_zero \ arduino_zero \
circuitplayground_express \ circuitplayground_express \
circuitplayground_express_crickit \ circuitplayground_express_crickit \
@ -15,7 +15,8 @@ feather_m0_rfm69 \
feather_m0_rfm9x \ feather_m0_rfm9x \
feather_m4_express \ feather_m4_express \
feather_nrf52832 \ feather_nrf52832 \
feather_nrf52840 \ feather_nrf52840_express \
pca10056 \
feather_radiofruit_zigbee \ feather_radiofruit_zigbee \
gemma_m0 \ gemma_m0 \
hallowing_m0_express \ hallowing_m0_express \
@ -34,7 +35,7 @@ if [ "$TRAVIS" == "true" ]; then
fi fi
if [ -z "$TRAVIS_BOARD" ]; then if [ -z "$TRAVIS_BOARD" ]; then
boards=$ATMEL_BOARDS boards=$HW_BOARDS
else else
boards=$TRAVIS_BOARD boards=$TRAVIS_BOARD
fi fi
@ -72,13 +73,13 @@ for board in $boards; do
elif [ $board == "feather_nrf52840_express" ]; then elif [ $board == "feather_nrf52840_express" ]; then
make $PARALLEL -C ports/nrf TRANSLATION=$language BOARD=feather_nrf52840_express SD=s140 make $PARALLEL -C ports/nrf TRANSLATION=$language BOARD=feather_nrf52840_express SD=s140
(( exit_status = exit_status || $? )) (( exit_status = exit_status || $? ))
temp_filename=ports/nrf/build-$board-s140/firmware.bin temp_filename=ports/nrf/build-$board-s140/firmware.uf2
extension=bin extension=uf2
elif [ $board == "pca10056" ]; then elif [ $board == "pca10056" ]; then
make $PARALLEL -C ports/nrf TRANSLATION=$language BOARD=pca10056 SD=s140 make $PARALLEL -C ports/nrf TRANSLATION=$language BOARD=pca10056 SD=s140
(( exit_status = exit_status || $? )) (( exit_status = exit_status || $? ))
temp_filename=ports/nrf/build-$board-s140/firmware.bin temp_filename=ports/nrf/build-$board-s140/firmware.uf2
extension=bin extension=uf2
else else
time make $PARALLEL -C ports/atmel-samd TRANSLATION=$language BOARD=$board time make $PARALLEL -C ports/atmel-samd TRANSLATION=$language BOARD=$board
(( exit_status = exit_status || $? )) (( exit_status = exit_status || $? ))