Files
Upsilon/build/toolchain.arm-gcc.mak
Romain Goyet babfe50763 Organize the build system
Change-Id: Ib331bae99041b998eb721b44c3b0b44426270b38
2017-02-15 19:10:23 +01:00

14 lines
367 B
Makefile

CC = arm-none-eabi-gcc
CXX = arm-none-eabi-g++
LD = arm-none-eabi-ld.bfd
GDB = arm-none-eabi-gdb
OBJCOPY = arm-none-eabi-objcopy
SIZE = arm-none-eabi-size
ifeq ($(DEBUG),1)
OPTIM_SFLAGS += -ggdb3
else
OPTIM_SFLAGS += -fdata-sections -ffunction-sections
LDFLAGS = --gc-sections
endif
SFLAGS = -mthumb -march=armv7e-m -mfloat-abi=hard -mcpu=cortex-m4 -mfpu=fpv4-sp-d16