diff options
author | Christian Pointner <equinox@spreadspace.org> | 2022-10-05 23:42:41 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2022-10-05 23:42:41 +0200 |
commit | 74488a57a062a0cc28e0aea03dec45974b0f7c1c (patch) | |
tree | 36cf1064f04f6c2baf1c69d86418072eb11caba1 | |
parent | add sdk based blink example (diff) |
make toolchain path config a little bit less invasive
-rw-r--r-- | chibios-blink/Makefile | 1 | ||||
-rw-r--r-- | defines.mk | 2 | ||||
-rw-r--r-- | sdk-blink/Makefile | 5 |
3 files changed, 6 insertions, 2 deletions
diff --git a/chibios-blink/Makefile b/chibios-blink/Makefile index 4c08d58..9180851 100644 --- a/chibios-blink/Makefile +++ b/chibios-blink/Makefile @@ -4,6 +4,7 @@ #
include ../defines.mk
+export PATH := $(TOOLCHAIN_PATH):$(PATH)
# Compiler options here.
@@ -24,7 +24,7 @@ ifndef SPREADRPPICO_PATH SPREADRPPICO_PATH := .. endif -export PATH := $(SPREADRPPICO_PATH)/contrib/gcc-arm-none-eabi-10.3-2021.10/bin:$(PATH) +TOOLCHAIN_PATH := $(SPREADRPPICO_PATH)/contrib/gcc-arm-none-eabi-10.3-2021.10/bin CHIBIOS := ../contrib/ChibiOS_21.11.2 CHIBIOS_CONTRIB := $(CHIBIOS)/community OPENOCD := $(SPREADRPPICO_PATH)/contrib/openocd diff --git a/sdk-blink/Makefile b/sdk-blink/Makefile index 4a6a8f4..ca7776e 100644 --- a/sdk-blink/Makefile +++ b/sdk-blink/Makefile @@ -24,7 +24,7 @@ PROJECT := blink include ../defines.mk all: build -.PHONY: build clean +.PHONY: build clean distclean build/Makefile: mkdir -p build @@ -34,6 +34,9 @@ build: build/Makefile make -C build clean: + make -C build clean + +distclean: rm -rf build include ../rules.mk |