stm32/Makefile: Allow overriding COPT in Makefile.

It can now be set in mpconfigboard.mk (as well as the make command line).
This commit is contained in:
Andrew Leech 2022-03-30 16:18:23 +11:00 committed by Damien George
parent 3b99b4d675
commit 8db93dc016
1 changed files with 2 additions and 2 deletions

View File

@ -106,11 +106,11 @@ LDFLAGS += --gc-sections
# Debugging/Optimization
ifeq ($(DEBUG), 1)
CFLAGS += -g -DPENDSV_DEBUG
COPT = -Og
COPT ?= -Og
# Disable text compression in debug builds
MICROPY_ROM_TEXT_COMPRESSION = 0
else
COPT += -Os -DNDEBUG
COPT ?= -Os -DNDEBUG
endif
# Flags for optional C++ source code