stm32/mboot: Change debug compiler optimisation from -O0 to -Og.

With mboot encrpytion and fsload enabled, the DEBUG build -O0 compiler
settings result in mboot no longer fitting in the 32k sector.  This commit
changes this to -Og which also brings it into line with the regular stm32
build.
This commit is contained in:
Andrew Leech 2021-02-02 15:09:15 +11:00 committed by Damien George
parent 7be1f77902
commit 5ef71cd167
1 changed files with 1 additions and 1 deletions

View File

@ -92,7 +92,7 @@ LDFLAGS += --gc-sections
# Debugging/Optimization # Debugging/Optimization
ifeq ($(DEBUG), 1) ifeq ($(DEBUG), 1)
CFLAGS += -g -DPENDSV_DEBUG CFLAGS += -g -DPENDSV_DEBUG
COPT = -O0 COPT = -Og
else else
COPT += -Os -DNDEBUG COPT += -Os -DNDEBUG
endif endif