From f5a17a90fbf9cc8573759040fb88c500a11a716f Mon Sep 17 00:00:00 2001 From: Alexandre Abadie Date: Tue, 22 Oct 2019 19:01:53 +0200 Subject: [PATCH] boards/sodaq-*: use bootloader_arduino feature --- boards/common/sodaq/Makefile.dep | 3 +++ boards/common/sodaq/Makefile.features | 1 + boards/common/sodaq/Makefile.include | 7 ++----- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/boards/common/sodaq/Makefile.dep b/boards/common/sodaq/Makefile.dep index 5472bf8b8d..c15f2eaf26 100644 --- a/boards/common/sodaq/Makefile.dep +++ b/boards/common/sodaq/Makefile.dep @@ -1,3 +1,6 @@ ifneq (,$(filter saul_default,$(USEMODULE))) USEMODULE += saul_gpio endif + +# setup the samd21 arduino bootloader related dependencies +include $(RIOTBOARD)/common/samd21-arduino-bootloader/Makefile.dep diff --git a/boards/common/sodaq/Makefile.features b/boards/common/sodaq/Makefile.features index c9ffe71f92..4cc1f1a620 100644 --- a/boards/common/sodaq/Makefile.features +++ b/boards/common/sodaq/Makefile.features @@ -12,3 +12,4 @@ FEATURES_PROVIDED += periph_usbdev # Various other features (if any) FEATURES_PROVIDED += arduino +FEATURES_PROVIDED += bootloader_arduino diff --git a/boards/common/sodaq/Makefile.include b/boards/common/sodaq/Makefile.include index 8db3929a94..116cd8b3e4 100644 --- a/boards/common/sodaq/Makefile.include +++ b/boards/common/sodaq/Makefile.include @@ -7,8 +7,5 @@ include $(RIOTMAKE)/tools/serial.inc.mk # Add board common includes INCLUDES += -I$(RIOTBOARD)/common/sodaq/include -# setup the flash tool used -# we use BOSSA to flash this board since there's an Arduino bootloader -# preflashed on it. ROM_OFFSET skips the space taken by such bootloader. -ROM_OFFSET ?= 0x2000 -include $(RIOTMAKE)/tools/bossa.inc.mk +# Include all definitions for flashing with bossa over USB +include $(RIOTBOARD)/common/samd21-arduino-bootloader/Makefile.include