From 06123ef85b0718262da4e2ebc0a07b1f37b83409 Mon Sep 17 00:00:00 2001 From: Alexandre Abadie Date: Fri, 27 Sep 2019 17:08:03 +0200 Subject: [PATCH] Makefile.include: set default PROGRAMMER value when flahsing on IoT-LAB This will avoid to load edbg logic and especially adds it to the list of FLASHDEPS: it won't be unnecessarily built when flashing a samr21-xpro/arduino-zero board on IoT-LAB --- Makefile.include | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Makefile.include b/Makefile.include index 058b3466cc..a26aaa0943 100644 --- a/Makefile.include +++ b/Makefile.include @@ -272,6 +272,13 @@ export TOOLCHAIN # will most likely not need to touch this. export PREFIX ?= $(if $(TARGET_ARCH),$(TARGET_ARCH)-) +# set default PROGRAMMER value if flashing a board on IoT-LAB +# This must be done before parsing the Makefile.include of the board and cannot +# be done in makefile.iotlab.single.inc.mk which is included after. +ifneq (,$(IOTLAB_NODE)) + PROGRAMMER ?= iotlab +endif + # Add standard include directories INCLUDES += -I$(RIOTBASE)/core/include -I$(RIOTBASE)/drivers/include -I$(RIOTBASE)/sys/include