Skip to content
Snippets Groups Projects
Unverified Commit ea4aa1e1 authored by Alexandre Abadie's avatar Alexandre Abadie Committed by GitHub
Browse files

Merge pull request #9134 from aabadie/pr/makefiles/riottools

makefiles/tools: use RIOTTOOLS variable
parents 5897cf09 f04f954a
No related branches found
No related tags found
No related merge requests found
export FLASHER ?= $(RIOTBASE)/dist/tools/bossa/bossac export FLASHER ?= $(RIOTTOOLS)/bossa/bossac
export FFLAGS ?= -p $(PORT) -e -i -w -v -b -R $(HEXFILE) export FFLAGS ?= -p $(PORT) -e -i -w -v -b -R $(HEXFILE)
HEXFILE = $(BINFILE) HEXFILE = $(BINFILE)
...@@ -20,6 +20,6 @@ endif ...@@ -20,6 +20,6 @@ endif
# if we go with the default (BOSSA shipped with RIOT), we download and build # if we go with the default (BOSSA shipped with RIOT), we download and build
# the tool if not already done # the tool if not already done
ifeq ($(RIOTBASE)/dist/tools/bossa/bossac,$(FLASHER)) ifeq ($(RIOTTOOLS)/bossa/bossac,$(FLASHER))
FLASHDEPS += $(RIOTBASE)/dist/tools/bossa/bossac FLASHDEPS += $(RIOTTOOLS)/bossa/bossac
endif endif
RIOT_EDBG = $(RIOTBASE)/dist/tools/edbg/edbg RIOT_EDBG = $(RIOTTOOLS)/edbg/edbg
EDBG ?= $(RIOT_EDBG) EDBG ?= $(RIOT_EDBG)
FLASHER ?= $(EDBG) FLASHER ?= $(EDBG)
HEXFILE = $(BINFILE) HEXFILE = $(BINFILE)
......
export FLASHER = $(RIOTBASE)/dist/tools/jlink/jlink.sh export FLASHER = $(RIOTTOOLS)/jlink/jlink.sh
export DEBUGGER = $(RIOTBASE)/dist/tools/jlink/jlink.sh export DEBUGGER = $(RIOTTOOLS)/jlink/jlink.sh
export DEBUGSERVER = $(RIOTBASE)/dist/tools/jlink/jlink.sh export DEBUGSERVER = $(RIOTTOOLS)/jlink/jlink.sh
export RESET = $(RIOTBASE)/dist/tools/jlink/jlink.sh export RESET = $(RIOTTOOLS)/jlink/jlink.sh
HEXFILE = $(BINFILE) HEXFILE = $(BINFILE)
......
export FLASHER ?= $(RIOTBASE)/dist/tools/openocd/openocd.sh export FLASHER ?= $(RIOTTOOLS)/openocd/openocd.sh
export DEBUGGER = $(RIOTBASE)/dist/tools/openocd/openocd.sh export DEBUGGER = $(RIOTTOOLS)/openocd/openocd.sh
export DEBUGSERVER = $(RIOTBASE)/dist/tools/openocd/openocd.sh export DEBUGSERVER = $(RIOTTOOLS)/openocd/openocd.sh
export RESET ?= $(RIOTBASE)/dist/tools/openocd/openocd.sh export RESET ?= $(RIOTTOOLS)/openocd/openocd.sh
export FFLAGS ?= flash export FFLAGS ?= flash
export DEBUGGER_FLAGS ?= debug export DEBUGGER_FLAGS ?= debug
......
export EMULATOR ?= $(RIOTBASE)/dist/tools/renode/run-renode.sh export EMULATOR ?= $(RIOTTOOLS)/renode/run-renode.sh
export EMULATOR_FLAGS ?= start export EMULATOR_FLAGS ?= start
...@@ -14,7 +14,7 @@ export BAUD ?= 115200 ...@@ -14,7 +14,7 @@ export BAUD ?= 115200
RIOT_TERMINAL ?= pyterm RIOT_TERMINAL ?= pyterm
ifeq ($(RIOT_TERMINAL),pyterm) ifeq ($(RIOT_TERMINAL),pyterm)
export TERMPROG ?= $(RIOTBASE)/dist/tools/pyterm/pyterm export TERMPROG ?= $(RIOTTOOLS)/pyterm/pyterm
export TERMFLAGS ?= -p "$(PORT)" -b "$(BAUD)" export TERMFLAGS ?= -p "$(PORT)" -b "$(BAUD)"
else ifeq ($(RIOT_TERMINAL),picocom) else ifeq ($(RIOT_TERMINAL),picocom)
export TERMPROG ?= picocom export TERMPROG ?= picocom
......
...@@ -5,12 +5,12 @@ ...@@ -5,12 +5,12 @@
# default target when `make` is called without any further argument. # default target when `make` is called without any further argument.
# target for building the bossac binary # target for building the bossac binary
$(RIOTBASE)/dist/tools/bossa/bossac: $(RIOTTOOLS)/bossa/bossac:
@echo "[INFO] bossac binary not found - building it from source" @echo "[INFO] bossac binary not found - building it from source"
@make -C $(RIOTBASE)/dist/tools/bossa @make -C $(RIOTTOOLS)/bossa
@echo "[INFO] bossac binary successfully build!" @echo "[INFO] bossac binary successfully build!"
$(RIOTBASE)/dist/tools/edbg/edbg: $(RIOTTOOLS)/edbg/edbg:
@echo "[INFO] edbg binary not found - building it from source now" @echo "[INFO] edbg binary not found - building it from source now"
CC= CFLAGS= make -C $(RIOTBASE)/dist/tools/edbg CC= CFLAGS= make -C $(RIOTTOOLS)/edbg
@echo "[INFO] edbg binary successfully build!" @echo "[INFO] edbg binary successfully build!"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment