tkey-libs: Optimize for size

Optimize tkey-libs for size to fit firmware in ROM
This commit is contained in:
Michael Cardell Widerkrantz 2025-04-08 13:30:05 +02:00 committed by Mikael Ågren
parent 353d7e9f50
commit 1be5140850
No known key found for this signature in database
GPG key ID: E02DA3D397792C46
2 changed files with 12 additions and 2 deletions

View file

@ -17,7 +17,7 @@ INCLUDE=include
# either of them. You don't need to recompile tkey-libs.
CFLAGS = -target riscv32-unknown-none-elf -march=rv32iczmmul -mabi=ilp32 \
-mcmodel=medany -static -std=gnu99 -O2 -ffast-math -fno-common \
-mcmodel=medany -static -std=gnu99 -Os -ffast-math -fno-common \
-fno-builtin-printf -fno-builtin-putchar -nostdlib -mno-relax -flto \
-Wall -Werror=implicit-function-declaration \
-I $(INCLUDE) -I .