mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
ac113ca2f8
FLASHER and FFLAGS are evaluated by the main Makefile.include or by file included by it. Their value does not need to be exported. This will also prevent evaluating 'PORT' for FFLAGS when not needed. Testing ------- `git diff --word-diff` only reports `export` being removed. `git show --stat` reports `84 insertions(+), 84 deletions(-)` Which is the same amount as lines that where matching `export[[:blank::]]\+VARIABLE`.
21 lines
580 B
Makefile
21 lines
580 B
Makefile
# select the used CPU
|
|
export CPU = msp430fxyz
|
|
export CPU_MODEL = msp430f1611
|
|
|
|
# include this module in the build
|
|
USEMODULE += boards_common_wsn430
|
|
# use common wsn430 includes
|
|
export INCLUDES += -I$(RIOTBOARD)/common/wsn430/include
|
|
|
|
# configure the serial interface
|
|
PORT_LINUX ?= /dev/ttyUSB0
|
|
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.SLAB_USBtoUART*)))
|
|
include $(RIOTMAKE)/tools/serial.inc.mk
|
|
|
|
# configure the flash tool
|
|
FLASHER = mspdebug
|
|
FFLAGS = -d $(PORT) -j uif "prog $(HEXFILE)"
|
|
|
|
# Use the HEXFILE when using iot-lab.single.inc.mk
|
|
IOTLAB_FLASHFILE = $(HEXFILE)
|