mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
make: cleanup HEXFILE/ELFFILE/BINFILE
* Use the existing variable when possible * Remove duplicate definition * Remove unused BINFILE variable
This commit is contained in:
parent
21a9958323
commit
72ddc72f2b
@ -16,7 +16,6 @@ include $(RIOTMAKE)/tools/serial.inc.mk
|
||||
# (ground) GPIO B1.
|
||||
ifeq ($(PROGRAMMER),dfu-util)
|
||||
export ROM_OFFSET ?= 0x2000 # Skip the space needed by the embedded bootloader
|
||||
export BINFILE = $(patsubst %.elf,%.bin,$(ELFFILE))
|
||||
export FLASHER = dfu-util
|
||||
export DEBUGGER = # no debugger
|
||||
export RESET = # dfu-util has no support for resetting the device
|
||||
|
@ -13,7 +13,6 @@ include $(RIOTMAKE)/tools/serial.inc.mk
|
||||
PROGRAMMER ?= fscopy
|
||||
ifeq (fscopy,$(PROGRAMMER))
|
||||
export OFLAGS = -O ihex
|
||||
export HEXFILE = $(ELFFILE:.elf=.hex)
|
||||
export FFLAGS =
|
||||
export DEBUGGER_FLAGS =
|
||||
|
||||
|
@ -18,4 +18,4 @@ export DEBUGGER = $(DIST_PATH)/debug.sh $(DEBUGSERVER_FLAGS) $(DIST_PATH) $(DEBU
|
||||
export PROGRAMMER_FLAGS = -P $(PORT) -b $(PROGRAMMER_SPEED)
|
||||
|
||||
export OFLAGS += -j .text -j .data -O ihex
|
||||
export FFLAGS += -c $(PROGRAMMER) $(PROGRAMMER_FLAGS) -F -D -U flash:w:bin/$(BOARD)/$(PROJECT)$(APPLICATION).hex
|
||||
export FFLAGS += -c $(PROGRAMMER) $(PROGRAMMER_FLAGS) -F -D -U flash:w:$(HEXFILE)
|
||||
|
@ -16,5 +16,5 @@ export DEBUGSERVER = st-util
|
||||
|
||||
# define st-flash parameters
|
||||
export OFLAGS = -O binary
|
||||
export FFLAGS = write bin/$(BOARD)/$(APPLICATION).hex 0x8000000
|
||||
export DEBUGGER_FLAGS = $(RIOTBOARD)/$(BOARD)/dist/gdb.conf $(BINDIR)/$(APPLICATION).elf
|
||||
export FFLAGS = write $(HEXFILE) 0x8000000
|
||||
export DEBUGGER_FLAGS = $(RIOTBOARD)/$(BOARD)/dist/gdb.conf $(ELFFILE)
|
||||
|
@ -21,4 +21,4 @@ export PROGRAMMER ?= buspirate
|
||||
export PROGRAMMER_FLAGS = -P /dev/ttyUSB0
|
||||
|
||||
export OFLAGS += -j .text -j .data -O ihex
|
||||
export FFLAGS += -p m1284p -c $(PROGRAMMER) $(PROGRAMMER_FLAGS) -F -U flash:w:bin/$(BOARD)/$(PROJECT)$(APPLICATION).hex
|
||||
export FFLAGS += -p m1284p -c $(PROGRAMMER) $(PROGRAMMER_FLAGS) -F -U flash:w:$(HEXFILE)
|
||||
|
@ -13,7 +13,6 @@ include $(RIOTMAKE)/tools/serial.inc.mk
|
||||
PROGRAMMER ?= fscopy
|
||||
ifeq (fscopy,$(PROGRAMMER))
|
||||
export OFLAGS = -O ihex
|
||||
export HEXFILE = $(ELFFILE:.elf=.hex)
|
||||
export FFLAGS =
|
||||
export DEBUGGER_FLAGS =
|
||||
|
||||
|
@ -9,8 +9,6 @@ PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.SLAB_USBtoUART*)))
|
||||
# set the default id
|
||||
export ID ?= 0483:df11
|
||||
|
||||
export BINFILE = $(patsubst %.elf,%.bin,$(ELFFILE))
|
||||
|
||||
export FLASHER = dfu-util
|
||||
export DEBUGGER = # dfu-util has no debugger
|
||||
export RESET = # dfu-util has no support for resetting the device
|
||||
|
@ -7,8 +7,6 @@ PORT_LINUX ?= /dev/ttyUSB0
|
||||
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.SLAB_USBtoUART*)))
|
||||
include $(RIOTMAKE)/tools/serial.inc.mk
|
||||
|
||||
export BINFILE = $(patsubst %.elf,%.bin,$(ELFFILE))
|
||||
|
||||
export FLASHER = dfu-util
|
||||
export DEBUGGER = # spark core has no debugger
|
||||
export RESET = # dfu-util has no support for resetting the device
|
||||
|
@ -7,7 +7,6 @@ TEENSY_LOADER = $(RIOTBASE)/dist/tools/teensy-loader-cli/teensy_loader
|
||||
FLASHER = $(TEENSY_LOADER)
|
||||
|
||||
OFLAGS = -O ihex
|
||||
HEXFILE = $(ELFFILE:.elf=.hex)
|
||||
|
||||
FFLAGS ?= --mcu=mk20dx256 $(HEXFILE)
|
||||
|
||||
|
@ -34,4 +34,4 @@ ifeq ($(PROGRAMMER), stk500v1)
|
||||
endif
|
||||
|
||||
export OFLAGS += -j .text -j .data -O ihex
|
||||
export FFLAGS += -p m1281 -c $(PROGRAMMER) $(PROGRAMMER_FLAGS) -F -U flash:w:bin/$(BOARD)/$(PROJECT)$(APPLICATION).hex
|
||||
export FFLAGS += -p m1281 -c $(PROGRAMMER) $(PROGRAMMER_FLAGS) -F -U flash:w:$(HEXFILE)
|
||||
|
@ -18,7 +18,7 @@ info-objsize:
|
||||
sort -rnk$${SORTROW}
|
||||
|
||||
info-buildsize:
|
||||
@$(SIZE) -d -B $(BINDIR)/$(APPLICATION).elf || echo ''
|
||||
@$(SIZE) -d -B $(ELFFILE) || echo ''
|
||||
|
||||
info-build:
|
||||
@echo 'APPLICATION: $(APPLICATION)'
|
||||
|
Loading…
Reference in New Issue
Block a user