mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Makefile.include: include iotlab.single.inc.mk before checking FLASHFILE
This way FLASHFILE is either already defined by the board and, if not, the default one for iotlab can be used.
This commit is contained in:
parent
22a3f4d5b7
commit
41a2249ec6
@ -283,6 +283,10 @@ export PREFIX ?= $(if $(TARGET_ARCH),$(TARGET_ARCH)-)
|
||||
# be done in makefile.iotlab.single.inc.mk which is included after.
|
||||
ifneq (,$(IOTLAB_NODE))
|
||||
PROGRAMMER ?= iotlab
|
||||
# iotlab uses ELFFILE by default for flashing boards, except for WSN430.
|
||||
ifeq (,$(filter wsn430-%,$(BOARD)))
|
||||
FLASHFILE ?= $(ELFFILE)
|
||||
endif
|
||||
endif
|
||||
|
||||
# Add standard include directories
|
||||
@ -442,6 +446,11 @@ include $(RIOTMAKE)/modules.inc.mk
|
||||
# https://www.gnu.org/software/make/manual/html_node/Force-Targets.html
|
||||
.PHONY: FORCE
|
||||
|
||||
ifneq (,$(IOTLAB_NODE))
|
||||
# iot-lab serial and flasher
|
||||
include $(RIOTBASE)/dist/testbed-support/makefile.iotlab.single.inc.mk
|
||||
endif
|
||||
|
||||
ELFFILE ?= $(BINDIR)/$(APPLICATION).elf
|
||||
HEXFILE ?= $(ELFFILE:.elf=.hex)
|
||||
BINFILE ?= $(ELFFILE:.elf=.bin)
|
||||
@ -807,10 +816,6 @@ ifneq (,$(filter iotlab-m3 wsn430-v1_3b wsn430-v1_4,$(BOARD)))
|
||||
include $(RIOTBASE)/dist/testbed-support/Makefile.iotlab
|
||||
endif
|
||||
endif
|
||||
ifneq (,$(IOTLAB_NODE))
|
||||
# iot-lab serial and flasher
|
||||
include $(RIOTBASE)/dist/testbed-support/makefile.iotlab.single.inc.mk
|
||||
endif
|
||||
|
||||
# Include desvirt Makefile
|
||||
include $(RIOTTOOLS)/desvirt/Makefile.desvirt
|
||||
|
Loading…
Reference in New Issue
Block a user