Merge pull request #10473 from cladmi/pr/make/flash_sh/get_flashfile_from_cli

board/*/flash.sh: get file to flash from command line
This commit is contained in:
Alexandre Abadie 2018-12-03 14:20:35 +01:00 committed by GitHub
commit 8bd839f04d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 10 additions and 4 deletions

View File

@ -10,7 +10,7 @@ PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbmodem*)))
PROGRAMMER ?= fscopy
ifeq (fscopy,$(PROGRAMMER))
export FFLAGS =
export FFLAGS = $(HEXFILE)
export DEBUGGER_FLAGS =
export FLASHER = $(RIOTBOARD)/$(BOARD)/dist/flash.sh

View File

@ -18,6 +18,8 @@ OS=`uname`
DID_MOUNT=false
NAME="MINI"
HEXFILE=$1
# set the mount path depending on the OS
if [ ${OS} = "Linux" ]
then

View File

@ -6,7 +6,7 @@ export DEBUGGER =
export DEBUGSERVER =
HEXFILE = $(BINFILE)
export FFLAGS =
export FFLAGS = $(HEXFILE)
export DEBUGGER_FLAGS =
# define the default port depending on the host OS

View File

@ -21,6 +21,8 @@
OS=`uname`
DID_MOUNT=false
BINFILE=$1
# set the mount path depending on the OS
if [ ${OS} = "Linux" ]
then
@ -55,7 +57,7 @@ fi
# remove old binary
rm -f ${MOUNT}/*.bin
# copy new binary to device
cp ${HEXFILE} ${MOUNT}
cp ${BINFILE} ${MOUNT}
# make sure hexfile was written
sync

View File

@ -10,7 +10,7 @@ PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.SLAB_USBtoUART*)))
PROGRAMMER ?= fscopy
ifeq (fscopy,$(PROGRAMMER))
export FFLAGS =
export FFLAGS = $(HEXFILE)
export DEBUGGER_FLAGS =
export FLASHER = $(RIOTBOARD)/$(BOARD)/dist/flash.sh

View File

@ -18,6 +18,8 @@ OS=`uname`
DID_MOUNT=false
NAME="MICROBIT"
HEXFILE=$1
# set the mount path depending on the OS
if [ ${OS} = "Linux" ]
then