mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
boards: conditionally include samd21-arduino-bootloader
samd21-arduino-bootloader and its dependencies will only be included if no other stdio_% (other than stdio_cdc_acm) is included.
This commit is contained in:
parent
ad0abd3322
commit
1387b736b7
@ -1,3 +1,8 @@
|
|||||||
MODULE = boards_common_arduino-mkr
|
MODULE = boards_common_arduino-mkr
|
||||||
|
|
||||||
|
ifneq (,$(filter boards_common_samd21-arduino-bootloader,$(USEMODULE)))
|
||||||
|
# Add the samd21-arduino-bootloader directory to the build
|
||||||
|
DIRS += $(RIOTBOARD)/common/samd21-arduino-bootloader
|
||||||
|
endif
|
||||||
|
|
||||||
include $(RIOTBASE)/Makefile.base
|
include $(RIOTBASE)/Makefile.base
|
||||||
|
@ -2,5 +2,13 @@ ifneq (,$(filter saul_default,$(USEMODULE)))
|
|||||||
USEMODULE += saul_gpio
|
USEMODULE += saul_gpio
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# setup the samd21 arduino bootloader related dependencies
|
# use arduino-bootloader only if no other stdio_% other than stdio_cdc_acm
|
||||||
include $(RIOTBOARD)/common/samd21-arduino-bootloader/Makefile.dep
|
# is requested
|
||||||
|
ifeq (,$(filter-out stdio_cdc_acm,$(filter stdio_%,$(USEMODULE))))
|
||||||
|
USEMODULE += boards_common_samd21-arduino-bootloader
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifneq (,$(filter boards_common_samd21-arduino-bootloader,$(USEMODULE)))
|
||||||
|
# setup the samd21 arduino bootloader related dependencies
|
||||||
|
include $(RIOTBOARD)/common/samd21-arduino-bootloader/Makefile.dep
|
||||||
|
endif
|
||||||
|
@ -1,10 +1,5 @@
|
|||||||
# Provide stdio over USB by default
|
|
||||||
# This is a temporary solution until management of stdio is correctly
|
|
||||||
# handled by the build system
|
|
||||||
DEFAULT_MODULE += stdio_cdc_acm
|
|
||||||
|
|
||||||
# This boards requires support for Arduino bootloader.
|
# This boards requires support for Arduino bootloader.
|
||||||
USEMODULE += usb_board_reset
|
USEMODULE += usb_board_reset
|
||||||
USEMODULE += boards_common_samd21-arduino-bootloader
|
USEMODULE += stdio_cdc_acm
|
||||||
|
|
||||||
FEATURES_REQUIRED += bootloader_arduino
|
FEATURES_REQUIRED += bootloader_arduino
|
||||||
|
@ -26,6 +26,3 @@ term-delay:
|
|||||||
|
|
||||||
TESTRUNNER_CONNECT_DELAY ?= $(TERM_DELAY)
|
TESTRUNNER_CONNECT_DELAY ?= $(TERM_DELAY)
|
||||||
$(call target-export-variables,test,TESTRUNNER_CONNECT_DELAY)
|
$(call target-export-variables,test,TESTRUNNER_CONNECT_DELAY)
|
||||||
|
|
||||||
# Add the samd21-arduino-bootloader directory to the build
|
|
||||||
DIRS += $(RIOTBOARD)/common/samd21-arduino-bootloader
|
|
||||||
|
@ -19,6 +19,8 @@
|
|||||||
* @}
|
* @}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifdef MODULE_BOARDS_COMMON_SAMD21_ARDUINO_BOOTLOADER
|
||||||
|
|
||||||
#define USB_H_USER_IS_RIOT_INTERNAL
|
#define USB_H_USER_IS_RIOT_INTERNAL
|
||||||
|
|
||||||
#include "usb_board_reset.h"
|
#include "usb_board_reset.h"
|
||||||
@ -41,3 +43,6 @@ void usb_board_reset_in_bootloader(void)
|
|||||||
|
|
||||||
usb_board_reset_in_application();
|
usb_board_reset_in_application();
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
typedef int dont_be_pedantic;
|
||||||
|
#endif /* MODULE_BOARDS_COMMON_SAMD21_ARDUINO_BOOTLOADER */
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
MODULE = boards_common_sodaq
|
MODULE = boards_common_sodaq
|
||||||
|
|
||||||
|
ifneq (,$(filter boards_common_samd21-arduino-bootloader,$(USEMODULE)))
|
||||||
|
# Add the samd21-arduino-bootloader directory to the build
|
||||||
|
DIRS += $(RIOTBOARD)/common/samd21-arduino-bootloader
|
||||||
|
endif
|
||||||
|
|
||||||
include $(RIOTBASE)/Makefile.base
|
include $(RIOTBASE)/Makefile.base
|
||||||
|
@ -2,5 +2,13 @@ ifneq (,$(filter saul_default,$(USEMODULE)))
|
|||||||
USEMODULE += saul_gpio
|
USEMODULE += saul_gpio
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# setup the samd21 arduino bootloader related dependencies
|
# use arduino-bootloader only if no other stdio_% other than stdio_cdc_acm
|
||||||
include $(RIOTBOARD)/common/samd21-arduino-bootloader/Makefile.dep
|
# is requested
|
||||||
|
ifeq (,$(filter-out stdio_cdc_acm,$(filter stdio_%,$(USEMODULE))))
|
||||||
|
USEMODULE += boards_common_samd21-arduino-bootloader
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifneq (,$(filter boards_common_samd21-arduino-bootloader,$(USEMODULE)))
|
||||||
|
# setup the samd21 arduino bootloader related dependencies
|
||||||
|
include $(RIOTBOARD)/common/samd21-arduino-bootloader/Makefile.dep
|
||||||
|
endif
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
MODULE = board
|
MODULE = board
|
||||||
|
|
||||||
|
ifneq (,$(filter boards_common_samd21-arduino-bootloader,$(USEMODULE)))
|
||||||
|
# Add the samd21-arduino-bootloader directory to the build
|
||||||
|
DIRS += $(RIOTBOARD)/common/samd21-arduino-bootloader
|
||||||
|
endif
|
||||||
|
|
||||||
include $(RIOTBASE)/Makefile.base
|
include $(RIOTBASE)/Makefile.base
|
||||||
|
@ -2,5 +2,13 @@ ifneq (,$(filter saul_default,$(USEMODULE)))
|
|||||||
USEMODULE += saul_gpio
|
USEMODULE += saul_gpio
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# setup the samd21 arduino bootloader related dependencies
|
# use arduino-bootloader only if no other stdio_% other than stdio_cdc_acm
|
||||||
include $(RIOTBOARD)/common/samd21-arduino-bootloader/Makefile.dep
|
# is requested
|
||||||
|
ifeq (,$(filter-out stdio_cdc_acm,$(filter stdio_%,$(USEMODULE))))
|
||||||
|
USEMODULE += boards_common_samd21-arduino-bootloader
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifneq (,$(filter boards_common_samd21-arduino-bootloader,$(USEMODULE)))
|
||||||
|
# setup the samd21 arduino bootloader related dependencies
|
||||||
|
include $(RIOTBOARD)/common/samd21-arduino-bootloader/Makefile.dep
|
||||||
|
endif
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
MODULE = board
|
MODULE = board
|
||||||
|
|
||||||
|
ifneq (,$(filter boards_common_samd21-arduino-bootloader,$(USEMODULE)))
|
||||||
|
# Add the samd21-arduino-bootloader directory to the build
|
||||||
|
DIRS += $(RIOTBOARD)/common/samd21-arduino-bootloader
|
||||||
|
endif
|
||||||
|
|
||||||
include $(RIOTBASE)/Makefile.base
|
include $(RIOTBASE)/Makefile.base
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
MODULE = board
|
MODULE = board
|
||||||
|
|
||||||
|
ifneq (,$(filter boards_common_samd21-arduino-bootloader,$(USEMODULE)))
|
||||||
|
# Add the samd21-arduino-bootloader directory to the build
|
||||||
|
DIRS += $(RIOTBOARD)/common/samd21-arduino-bootloader
|
||||||
|
endif
|
||||||
|
|
||||||
include $(RIOTBASE)/Makefile.base
|
include $(RIOTBASE)/Makefile.base
|
||||||
|
Loading…
Reference in New Issue
Block a user