summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2022-10-06 01:18:11 +0200
committerChristian Pointner <equinox@spreadspace.org>2022-10-06 01:18:11 +0200
commit166e2335a3133ce2c44d86da5daecca75f99a00e (patch)
tree6102543ead1a03472069044275183a08a910c306
parentcosmetic change (diff)
fix toolchain paths
-rw-r--r--chibios-blink/Makefile2
-rw-r--r--debug.mk2
-rw-r--r--defines.mk2
3 files changed, 3 insertions, 3 deletions
diff --git a/chibios-blink/Makefile b/chibios-blink/Makefile
index 53c5b2a..ac29532 100644
--- a/chibios-blink/Makefile
+++ b/chibios-blink/Makefile
@@ -4,7 +4,7 @@
#
include ../defines.mk
-export PATH := $(TOOLCHAIN_PATH):$(PATH)
+export PATH := $(TOOLCHAIN_PATH)/bin:$(PATH)
# Compiler options here.
diff --git a/debug.mk b/debug.mk
index 96745eb..6037f21 100644
--- a/debug.mk
+++ b/debug.mk
@@ -25,4 +25,4 @@ gdb-server:
# $(OPENOCD)/src/openocd -s $(OPENOCD)/tcl -f interface/picoprobe.cfg -f target/rp2040.cfg -c "tcl_port disabled; telnet_port disabled; gdb_port 4242; rp2040.core0 configure -rtos chibios; rp2040.core1 configure -rtos chibios;"
gdb:
- arm-none-eabi-gdb -se "build/$(PROJECT).elf" -ex "target extended-remote localhost:4242"
+ $(TOOLCHAIN_PATH)/bin/arm-none-eabi-gdb -se "build/$(PROJECT).elf" -ex "target extended-remote localhost:4242"
diff --git a/defines.mk b/defines.mk
index 08dd1b5..ca5b7ec 100644
--- a/defines.mk
+++ b/defines.mk
@@ -24,7 +24,7 @@ ifndef SPREADRPPICO_PATH
SPREADRPPICO_PATH := ..
endif
-TOOLCHAIN_PATH := $(SPREADRPPICO_PATH)/contrib/gcc-arm-none-eabi-9-2020-q2-update/bin
+TOOLCHAIN_PATH := $(SPREADRPPICO_PATH)/contrib/gcc-arm-none-eabi-9-2020-q2-update
CHIBIOS := $(SPREADRPPICO_PATH)/contrib/ChibiOS_21.11.2
CHIBIOS_CONTRIB := $(CHIBIOS)/community
OPENOCD := $(SPREADRPPICO_PATH)/contrib/openocd