From 786a004af51e1e54713a03f5c311b63a3703d48c Mon Sep 17 00:00:00 2001 From: Vasily Tarasov Date: Thu, 22 Feb 2018 20:43:51 -0800 Subject: [PATCH] Enable optimization to reduce firmware size With no optimization, Chevy Volt safety makes panda.bin over 32k and it no longer fits in a Panda. --- board/build.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/build.mk b/board/build.mk index 069a00e1a04058..d662f6b1419ad6 100644 --- a/board/build.mk +++ b/board/build.mk @@ -1,4 +1,4 @@ -CFLAGS += -I inc -I ../ -nostdlib -fno-builtin -std=gnu11 -O0 +CFLAGS += -I inc -I ../ -nostdlib -fno-builtin -std=gnu11 -O2 CFLAGS += -Tstm32_flash.ld CC = arm-none-eabi-gcc