Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make: test SERIAL for sam0 boards only if required #10840

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions makefiles/boards/sam0.inc.mk
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# set default port depending on operating system
PORT_LINUX ?= /dev/ttyACM0
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbmodem*)))

# check and set flash and debug parameters if required, only
FLASH_DEBUG_GOALS := flash flash-only debug debug-server
ifneq (, $(filter $(FLASH_DEBUG_GOALS), $(MAKECMDGOALS)))

# Use DEBUG_ADAPTER_ID to specify the programmer serial number to use:
# export DEBUG_ADAPTER_ID="ATML..."

Expand Down Expand Up @@ -39,3 +44,5 @@ endif

# this board uses openocd for debug and possibly flashing
include $(RIOTMAKE)/tools/openocd.inc.mk

endif # FLASH_DEBUG_GOALS