Build for stlink with -Os.
This commit is contained in:
parent
c3f798438a
commit
f5f87bf70f
|
@ -9,8 +9,10 @@ endif
|
|||
|
||||
BUILDDATE := `date +"%Y%m%d"`
|
||||
|
||||
CFLAGS += -Wall -Wextra -Wno-char-subscripts\
|
||||
-O2 -std=gnu99 -g3 -DBUILDDATE=\"$(BUILDDATE)\"\
|
||||
OPT_FLAGS ?= -O2
|
||||
|
||||
CFLAGS += -Wall -Wextra -Werror -Wno-char-subscripts\
|
||||
$(OPT_FLAGS) -std=gnu99 -g3 -DBUILDDATE=\"$(BUILDDATE)\"\
|
||||
-I. -Iinclude -Iplatforms/common -I$(PLATFORM_DIR) \
|
||||
-DVERSION_SUFFIX=\"`../scripts/setlocalversion`\" -MD
|
||||
|
||||
|
|
|
@ -2,6 +2,7 @@ CROSS_COMPILE ?= arm-none-eabi-
|
|||
CC = $(CROSS_COMPILE)gcc
|
||||
OBJCOPY = $(CROSS_COMPILE)objcopy
|
||||
|
||||
OPT_FLAGS = -Os
|
||||
CFLAGS += -mcpu=cortex-m3 -mthumb \
|
||||
-DSTM32F1 -DDISCOVERY_STLINK -I../libopencm3/include \
|
||||
-I platforms/stm32
|
||||
|
|
Loading…
Reference in New Issue