Skip to content

Commit

Permalink
Align PREFIX usage with locm3
Browse files Browse the repository at this point in the history
Existing uses of PREFIX should now manually append the final hyphen
  • Loading branch information
devanlai committed Mar 11, 2023
1 parent a54e98b commit 66773ca
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ dfuse-flash: $(BINARY).dfuse-flash
dfu-flash: $(BINARY).dfu-flash

size: $(OBJS) $(BINARY).elf
@$(PREFIX)-size $(OBJS) $(BINARY).elf
@$(PREFIX)size $(OBJS) $(BINARY).elf

debug: $(BINARY).elf
-$(GDB) --tui --eval "target remote | $(OOCD) -f $(OOCD_INTERFACE) -f $(OOCD_BOARD) -f ../openocd/debug.cfg" $(BINARY).elf
Expand Down
20 changes: 10 additions & 10 deletions src/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -73,16 +73,16 @@ OOCD_BOARD ?= target/stm32f0x.cfg
####################################################################
# Executables

PREFIX ?= arm-none-eabi

CC := $(PREFIX)-gcc
CXX := $(PREFIX)-g++
LD := $(PREFIX)-gcc
AR := $(PREFIX)-ar
AS := $(PREFIX)-as
OBJCOPY := $(PREFIX)-objcopy
OBJDUMP := $(PREFIX)-objdump
GDB := $(PREFIX)-gdb
PREFIX ?= arm-none-eabi-

CC := $(PREFIX)gcc
CXX := $(PREFIX)g++
LD := $(PREFIX)gcc
AR := $(PREFIX)ar
AS := $(PREFIX)as
OBJCOPY := $(PREFIX)objcopy
OBJDUMP := $(PREFIX)objdump
GDB := $(PREFIX)gdb
STFLASH = $(shell which st-flash)

####################################################################
Expand Down

0 comments on commit 66773ca

Please sign in to comment.