mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
675bd5eec0
PORT_LINUX and PORT_DARWIN are evaluated by `makefiles/tools/serial.inc.mk` and some boards Makefile.include. Their value does not need to be exported. This also globally removes the line saying that the exports are needed for flash rule.
28 lines
806 B
Makefile
28 lines
806 B
Makefile
# define the cpu used by SenseBox board
|
|
export CPU = samd21
|
|
export CPU_MODEL = samd21g18a
|
|
|
|
PORT_LINUX ?= /dev/ttyACM0
|
|
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbmodem*)))
|
|
|
|
# setup serial terminal
|
|
include $(RIOTMAKE)/tools/serial.inc.mk
|
|
|
|
# setup the flash tool used
|
|
ifeq ($(PROGRAMMER),jlink)
|
|
# in case J-Link is attached to SWD pins, use a plain CPU memory model
|
|
export JLINK_DEVICE := atsamd21
|
|
include $(RIOTMAKE)/tools/jlink.inc.mk
|
|
else
|
|
# by default, we use BOSSA to flash this board to take into account the
|
|
# pre-flashed Arduino bootloader. ROM_OFFSET skips the space taken by
|
|
# such bootloader.
|
|
ROM_OFFSET ?= 0x2000
|
|
include $(RIOTMAKE)/tools/bossa.inc.mk
|
|
endif
|
|
|
|
CFLAGS += -DSX127X_USE_DIO_MULTI
|
|
|
|
# setup the boards dependencies
|
|
include $(RIOTBOARD)/$(BOARD)/Makefile.dep
|