Browse Source

Change default prefix in Makefiles to arm-none-eabi for compatability with summon toolchain out the box.

pull/2/head
Fergus Noble 13 years ago
parent
commit
551d069ed3
  1. 2
      examples/stm32f2/Makefile.include
  2. 4
      lib/lm3s/Makefile
  3. 4
      lib/lpc13xx/Makefile
  4. 4
      lib/stm32f1/Makefile
  5. 6
      lib/stm32f2/Makefile

2
examples/stm32f2/Makefile.include

@ -20,7 +20,7 @@
##
PREFIX ?= arm-none-eabi
#PREFIX ?= arm-elf
# PREFIX ?= arm-elf
CC = $(PREFIX)-gcc
LD = $(PREFIX)-gcc
OBJCOPY = $(PREFIX)-objcopy

4
lib/lm3s/Makefile

@ -19,8 +19,8 @@
LIBNAME = libopencm3_lm3s
# PREFIX ?= arm-none-eabi
PREFIX ?= arm-elf
PREFIX ?= arm-none-eabi
# PREFIX ?= arm-elf
CC = $(PREFIX)-gcc
AR = $(PREFIX)-ar
CFLAGS = -Os -g -Wall -Wextra -I../../include -fno-common \

4
lib/lpc13xx/Makefile

@ -19,8 +19,8 @@
LIBNAME = libopencm3_lpc13xx
# PREFIX ?= arm-none-eabi
PREFIX ?= arm-elf
PREFIX ?= arm-none-eabi
# PREFIX ?= arm-elf
CC = $(PREFIX)-gcc
AR = $(PREFIX)-ar
CFLAGS = -Os -g -Wall -Wextra -I../../include -fno-common \

4
lib/stm32f1/Makefile

@ -19,8 +19,8 @@
LIBNAME = libopencm3_stm32f1
# PREFIX ?= arm-none-eabi
PREFIX ?= arm-elf
PREFIX ?= arm-none-eabi
# PREFIX ?= arm-elf
CC = $(PREFIX)-gcc
AR = $(PREFIX)-ar
CFLAGS = -Os -g -Wall -Wextra -I../../include -fno-common \

6
lib/stm32f2/Makefile

@ -19,8 +19,8 @@
LIBNAME = libopencm3_stm32f2
# PREFIX ?= arm-none-eabi
PREFIX ?= arm-elf
PREFIX ?= arm-none-eabi
# PREFIX ?= arm-elf
CC = $(PREFIX)-gcc
AR = $(PREFIX)-ar
CFLAGS = -Os -g -Wall -Wextra -I../../include -fno-common \
@ -28,7 +28,7 @@ CFLAGS = -Os -g -Wall -Wextra -I../../include -fno-common \
-ffunction-sections -fdata-sections -MD -DSTM32F2
# ARFLAGS = rcsv
ARFLAGS = rcs
OBJS = vector.o gpio.o systick.o i2c.o spi.o nvic.o
OBJS = vector.o gpio.o systick.o i2c.o spi.o nvic.o usart.o
#VPATH += ../usb
VPATH += ../stm32_common

Loading…
Cancel
Save