From 2a28680d6e3156b809d4c00bb3a5fd2c550ebfa7 Mon Sep 17 00:00:00 2001 From: Jochen Hoenicke Date: Sat, 14 Feb 2015 11:50:12 +0100 Subject: [PATCH] Disable assertion checking The trezor-crypto has some assertions, which are enabled unless compiled with -DNDEBUG. This does not make much sense for the Trezor as could not write the assertion errors to stderr anyway. This simple patch removes the dependency to assert, printf, etc. It saves about 11kb flash and 2.2kb ram. --- Makefile.include | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.include b/Makefile.include index 965c538..10c9d23 100644 --- a/Makefile.include +++ b/Makefile.include @@ -9,7 +9,7 @@ OBJDUMP = $(PREFIX)objdump FLASH = st-flash OPENOCD = openocd -OPTFLAGS = -Os -g +OPTFLAGS = -Os -g -DNDEBUG CFLAGS += $(OPTFLAGS) \ -W \