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:
parent
3b99b4d675
commit
8db93dc016
@ -106,11 +106,11 @@ LDFLAGS += --gc-sections
|
|||||||
# Debugging/Optimization
|
# Debugging/Optimization
|
||||||
ifeq ($(DEBUG), 1)
|
ifeq ($(DEBUG), 1)
|
||||||
CFLAGS += -g -DPENDSV_DEBUG
|
CFLAGS += -g -DPENDSV_DEBUG
|
||||||
COPT = -Og
|
COPT ?= -Og
|
||||||
# Disable text compression in debug builds
|
# Disable text compression in debug builds
|
||||||
MICROPY_ROM_TEXT_COMPRESSION = 0
|
MICROPY_ROM_TEXT_COMPRESSION = 0
|
||||||
else
|
else
|
||||||
COPT += -Os -DNDEBUG
|
COPT ?= -Os -DNDEBUG
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Flags for optional C++ source code
|
# Flags for optional C++ source code
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user