Skip to content

Commit 5a828ff

Browse files
committed
Update library
Use the now standard $(PREFIX)gcc form instead of with the -. more consistent with other projects.
1 parent be1d296 commit 5a828ff

3 files changed

Lines changed: 12 additions & 13 deletions

File tree

Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@
1717
## along with this library. If not, see <http://www.gnu.org/licenses/>.
1818
##
1919

20-
PREFIX ?= arm-none-eabi
21-
#PREFIX ?= arm-elf
20+
PREFIX ?= arm-none-eabi-
2221

2322
TARGETS := stm32/f0 stm32/f1 stm32/f2 stm32/f3 stm32/f4
2423
TARGETS += stm32/l0 stm32/l1 stm32/l4

examples/rules.mk

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,16 @@ endif
2828
###############################################################################
2929
# Executables
3030

31-
PREFIX ?= arm-none-eabi
32-
33-
CC := $(PREFIX)-gcc
34-
CXX := $(PREFIX)-g++
35-
LD := $(PREFIX)-gcc
36-
AR := $(PREFIX)-ar
37-
AS := $(PREFIX)-as
38-
OBJCOPY := $(PREFIX)-objcopy
39-
OBJDUMP := $(PREFIX)-objdump
40-
GDB := $(PREFIX)-gdb
31+
PREFIX ?= arm-none-eabi-
32+
33+
CC := $(PREFIX)gcc
34+
CXX := $(PREFIX)g++
35+
LD := $(PREFIX)gcc
36+
AR := $(PREFIX)ar
37+
AS := $(PREFIX)as
38+
OBJCOPY := $(PREFIX)objcopy
39+
OBJDUMP := $(PREFIX)objdump
40+
GDB := $(PREFIX)gdb
4141
STFLASH = $(shell which st-flash)
4242
STYLECHECK := /checkpatch.pl
4343
STYLECHECKFLAGS := --no-tree -f --terse --mailback

libopencm3

Submodule libopencm3 updated 57 files

0 commit comments

Comments
 (0)