mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-22 23:48:12 +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
|
FLASH = st-flash
|
||||||
OPENOCD = openocd
|
OPENOCD = openocd
|
||||||
|
|
||||||
OPTFLAGS = -O3 -g -DNDEBUG
|
OPTFLAGS ?= -O3
|
||||||
|
DBGFLAGS ?= -g -DNDEBUG
|
||||||
|
|
||||||
CFLAGS += $(OPTFLAGS) \
|
CFLAGS += $(OPTFLAGS) \
|
||||||
|
$(DBGFLAGS) \
|
||||||
-W \
|
-W \
|
||||||
-Wall \
|
-Wall \
|
||||||
-Wextra \
|
-Wextra \
|
||||||
|
Loading…
Reference in New Issue
Block a user