1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-13 19:18:56 +00:00

rework OPTFLAGS, add DBGFLAGS (so it's easier to just replace -O3 to -Os for building bootloader)

This commit is contained in:
Pavol Rusnak 2016-02-19 00:21:09 +01:00
parent 7675a0aa5f
commit a7ef132ce5
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -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 \