mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-22 15:38:11 +00:00
rework OPTFLAGS, add DBGFLAGS (so it's easier to just replace -O3 to -Os for building bootloader)
This commit is contained in:
parent
7675a0aa5f
commit
a7ef132ce5
@ -9,9 +9,11 @@ OBJDUMP = $(PREFIX)objdump
|
||||
FLASH = st-flash
|
||||
OPENOCD = openocd
|
||||
|
||||
OPTFLAGS = -O3 -g -DNDEBUG
|
||||
OPTFLAGS ?= -O3
|
||||
DBGFLAGS ?= -g -DNDEBUG
|
||||
|
||||
CFLAGS += $(OPTFLAGS) \
|
||||
$(DBGFLAGS) \
|
||||
-W \
|
||||
-Wall \
|
||||
-Wextra \
|
||||
|
Loading…
Reference in New Issue
Block a user