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
643 B
Makefile
21 lines
643 B
Makefile
# define the cpu used by the HiFive1 board
|
|
export CPU = fe310
|
|
export CPU_MODEL = fe310
|
|
|
|
# Uses UART0 for stdio input/output (comment out to disable)
|
|
USEMODULE += stdio_uart
|
|
|
|
# set default port depending on operating system
|
|
PORT_LINUX ?= /dev/ttyUSB1
|
|
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbmodem*)))
|
|
|
|
# setup serial terminal
|
|
include $(RIOTMAKE)/tools/serial.inc.mk
|
|
|
|
# this board uses openocd with a custom reset command
|
|
export OPENOCD_CMD_RESET_RUN=-c _reset
|
|
include $(RIOTMAKE)/tools/openocd.inc.mk
|
|
|
|
# use our own openocd script to flash since HiFive1 has reset problems.
|
|
FLASHER = $(RIOTBASE)/boards/hifive1/dist/flasher.sh
|