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)
|
||||
|
||||
# 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:
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
PREFIX ?= arm-none-eabi
|
||||
PREFIX ?= arm-none-eabi-
|
||||
|
||||
LDSCRIPT = support/stm32f0-discovery.ld
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue