make: improve prefix support
This commit is contained in:
parent
ebd770b957
commit
a221bf87bf
2 changed files with 4 additions and 4 deletions
6
Makefile
6
Makefile
|
@ -47,9 +47,9 @@ obj = $(addprefix $(BUILD)/, $(obj-y))
|
||||||
-include $(obj:.o=.d)
|
-include $(obj:.o=.d)
|
||||||
|
|
||||||
# Set up the toolchain.
|
# Set up the toolchain.
|
||||||
CC := $(PREFIX)-gcc
|
CC := $(PREFIX)gcc
|
||||||
LD := $(PREFIX)-gcc
|
LD := $(PREFIX)gcc
|
||||||
GDB := $(PREFIX)-gdb
|
GDB := $(PREFIX)gdb
|
||||||
MAKE := make
|
MAKE := make
|
||||||
|
|
||||||
.SECONDARY:
|
.SECONDARY:
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
PREFIX ?= arm-none-eabi
|
PREFIX ?= arm-none-eabi-
|
||||||
|
|
||||||
LDSCRIPT = support/stm32f0-discovery.ld
|
LDSCRIPT = support/stm32f0-discovery.ld
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue