Skip to content

Commit

Permalink
boards: replace use of $(BOARD) by explicit name
Browse files Browse the repository at this point in the history
With the introduction of BOARDSDIR external boards can re-use common
code of BOARDS present in RIOTBASE. To be able to do this file
references may not use $(BOARD) since BOARD will be set by the
external BOARD.
  • Loading branch information
fjmolinas committed Jan 13, 2020
1 parent 8416974 commit 5a8f996
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion boards/arduino-mkrwan1300/Makefile.include
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ endif
include $(RIOTBOARD)/common/arduino-mkr/Makefile.include

# add arduino-mkrwan1300 include path
INCLUDES += -I$(RIOTBOARD)/$(BOARD)/include
INCLUDES += -I$(RIOTBOARD)/arduino-mkrwan1300/include
6 changes: 3 additions & 3 deletions boards/cc2538dk/Makefile.include
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ include $(RIOTMAKE)/tools/serial.inc.mk
include $(RIOTMAKE)/tools/renode.inc.mk

# debugger config
DEBUGGER = $(RIOTBOARD)/$(BOARD)/dist/debug.sh
DEBUGGER = $(RIOTBOARD)/cc2538dk/dist/debug.sh
DEBUGSERVER = JLinkGDBServer -device CC2538SF53
RESET ?= $(RIOTBOARD)/$(BOARD)/dist/reset.sh
RESET ?= $(RIOTBOARD)/cc2538dk/dist/reset.sh

# Define the flash-tool and default port:
PROGRAMMER ?= cc2538-bsl
Expand All @@ -22,7 +22,7 @@ ifeq ($(PROGRAMMER),cc2538-bsl)
FLASHER = $(RIOTTOOLS)/cc2538-bsl/cc2538-bsl.py
FFLAGS = -p "$(PROG_DEV)" -e -w -v $(FLASHFILE)
else ifeq ($(PROGRAMMER),jlink)
FLASHER = $(RIOTBOARD)/$(BOARD)/dist/flash.sh
FLASHER = $(RIOTBOARD)/cc2538dk/dist/flash.sh
FFLAGS = $(BINDIR) $(FLASHFILE)
endif

Expand Down
2 changes: 1 addition & 1 deletion boards/chronos/Makefile.include
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ FLASHFILE ?= $(HEXFILE)
FLASHER = mspdebug
FFLAGS = rf2500 "prog $(FLASHFILE)"

INCLUDES += -I$(RIOTBOARD)/$(BOARD)/drivers/include
INCLUDES += -I$(RIOTBOARD)/chronos/drivers/include

USEMODULE += chronos-drivers
4 changes: 2 additions & 2 deletions boards/f4vi1/Makefile.include
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ include $(RIOTMAKE)/tools/serial.inc.mk

# st-flash
FLASHER = st-flash
DEBUGGER = $(RIOTBOARD)/$(BOARD)/dist/debug.sh
DEBUGGER = $(RIOTBOARD)/f4vi1/dist/debug.sh
DEBUGSERVER = st-util

# define st-flash parameters
FLASHFILE ?= $(BINFILE)
FFLAGS = write $(FLASHFILE) 0x8000000
DEBUGGER_FLAGS = $(RIOTBOARD)/$(BOARD)/dist/gdb.conf $(ELFFILE)
DEBUGGER_FLAGS = $(RIOTBOARD)/f4vi1/dist/gdb.conf $(ELFFILE)
2 changes: 1 addition & 1 deletion boards/feather-m0/Makefile.include
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ else
endif

# setup the boards dependencies
include $(RIOTBOARD)/$(BOARD)/Makefile.dep
include $(RIOTBOARD)/feather-m0/Makefile.dep
2 changes: 1 addition & 1 deletion boards/mbed_lpc1768/Makefile.include
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FLASHER = $(RIOTBOARD)/$(BOARD)/dist/flash.sh
FLASHER = $(RIOTBOARD)/mbed_lpc1768/dist/flash.sh
DEBUGGER =
DEBUGSERVER =

Expand Down
4 changes: 2 additions & 2 deletions boards/native/Makefile.include
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export NATIVEINCLUDES += -DNATIVE_INCLUDES
export NATIVEINCLUDES += -I$(RIOTBOARD)/$(BOARD)/include/
export NATIVEINCLUDES += -I$(RIOTBOARD)/native/include/
export NATIVEINCLUDES += -I$(RIOTBASE)/core/include/
export NATIVEINCLUDES += -I$(RIOTBASE)/drivers/include/

Expand All @@ -11,7 +11,7 @@ else
DEBUGGER ?= gdb
endif

RESET ?= $(RIOTBOARD)/$(BOARD)/dist/reset.sh
RESET ?= $(RIOTBOARD)/native/dist/reset.sh
FLASHER = true
FLASHFILE ?= $(ELFFILE)

Expand Down
2 changes: 1 addition & 1 deletion boards/opencm904/Makefile.include
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbmodem*)))
include $(RIOTMAKE)/tools/serial.inc.mk

# custom flasher to use with the bootloader
FLASHER = $(RIOTBOARD)/$(BOARD)/dist/robotis-loader.py
FLASHER = $(RIOTBOARD)/opencm904/dist/robotis-loader.py
DEBUGGER =
DEBUGSERVER =

Expand Down
2 changes: 1 addition & 1 deletion boards/openmote-b/Makefile.include
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ else ifeq ($(PROGRAMMER),jlink)
export FLASH_ADDR = 0x200000
export JLINK_DEVICE = CC2538SF53
export JLINK_IF = JTAG
export JLINK_RESET_FILE = $(RIOTBOARD)/$(BOARD)/dist/hw_reset.seg
export JLINK_RESET_FILE = $(RIOTBOARD)/openmote-b/dist/hw_reset.seg
include $(RIOTMAKE)/tools/jlink.inc.mk
endif

Expand Down
2 changes: 1 addition & 1 deletion boards/sensebox_samd21/Makefile.include
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ else
endif

# setup the boards dependencies
include $(RIOTBOARD)/$(BOARD)/Makefile.dep
include $(RIOTBOARD)/sensebox_samd21/Makefile.dep

0 comments on commit 5a8f996

Please sign in to comment.