Build with -Os for swlink.
This commit is contained in:
parent
9a8dbdeff7
commit
588bad34ba
|
@ -2,6 +2,7 @@ CROSS_COMPILE ?= arm-none-eabi-
|
||||||
CC = $(CROSS_COMPILE)gcc
|
CC = $(CROSS_COMPILE)gcc
|
||||||
OBJCOPY = $(CROSS_COMPILE)objcopy
|
OBJCOPY = $(CROSS_COMPILE)objcopy
|
||||||
|
|
||||||
|
OPT_FLAGS = -Os
|
||||||
CFLAGS += -mcpu=cortex-m3 -mthumb \
|
CFLAGS += -mcpu=cortex-m3 -mthumb \
|
||||||
-DSTM32F1 -DDISCOVERY_SWLINK -I../libopencm3/include \
|
-DSTM32F1 -DDISCOVERY_SWLINK -I../libopencm3/include \
|
||||||
-I platforms/stm32
|
-I platforms/stm32
|
||||||
|
|
Loading…
Reference in New Issue