From a221bf87bf2f1bd2335d228fb88a76ffc2a58182 Mon Sep 17 00:00:00 2001 From: "S.J.R. van Schaik" Date: Tue, 1 Aug 2017 14:39:06 +0200 Subject: [PATCH] make: improve prefix support --- Makefile | 6 +++--- scripts/Makefile.stm32f0 | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 18a4669..9b9b4b2 100644 --- a/Makefile +++ b/Makefile @@ -47,9 +47,9 @@ obj = $(addprefix $(BUILD)/, $(obj-y)) -include $(obj:.o=.d) # Set up the toolchain. -CC := $(PREFIX)-gcc -LD := $(PREFIX)-gcc -GDB := $(PREFIX)-gdb +CC := $(PREFIX)gcc +LD := $(PREFIX)gcc +GDB := $(PREFIX)gdb MAKE := make .SECONDARY: diff --git a/scripts/Makefile.stm32f0 b/scripts/Makefile.stm32f0 index 9070df3..6b33d73 100644 --- a/scripts/Makefile.stm32f0 +++ b/scripts/Makefile.stm32f0 @@ -1,4 +1,4 @@ -PREFIX ?= arm-none-eabi +PREFIX ?= arm-none-eabi- LDSCRIPT = support/stm32f0-discovery.ld