mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-18 04:18:10 +00:00
build(legacy/bootloader): build bootloader with -Os
[no changelog]
This commit is contained in:
parent
60fe007ed2
commit
22b1714e59
@ -4,11 +4,30 @@ OBJS += bootloader.o
|
|||||||
OBJS += signatures.o
|
OBJS += signatures.o
|
||||||
OBJS += usb.o
|
OBJS += usb.o
|
||||||
|
|
||||||
# overrides from libtrezor
|
# Overrides from libtrezor. Objects ending with 'small.o' are built with -Os to
|
||||||
|
# make bootloader smaller.
|
||||||
CFLAGS += -DFONT_SKIP_FIXED=1
|
CFLAGS += -DFONT_SKIP_FIXED=1
|
||||||
OBJS += ../gen/fonts.small.o
|
OBJS += ../gen/fonts.small.o
|
||||||
|
OBJS += ../startup.o
|
||||||
|
OBJS += ../buttons.small.o
|
||||||
|
OBJS += ../common.small.o
|
||||||
|
OBJS += ../flash.small.o
|
||||||
|
OBJS += ../layout.small.o
|
||||||
|
OBJS += ../oled.small.o
|
||||||
|
OBJS += ../random_delays.small.o
|
||||||
|
OBJS += ../rng.small.o
|
||||||
|
OBJS += ../setup.small.o
|
||||||
|
OBJS += ../util.small.o
|
||||||
|
OBJS += ../memory.small.o
|
||||||
|
OBJS += ../supervise.small.o
|
||||||
|
OBJS += ../timer.small.o
|
||||||
|
OBJS += ../usb_standard.small.o
|
||||||
|
OBJS += ../usb21_standard.small.o
|
||||||
|
OBJS += ../webusb.small.o
|
||||||
|
OBJS += ../winusb.small.o
|
||||||
|
OBJS += ../gen/bitmaps.small.o
|
||||||
|
|
||||||
# overrides from trezor-crypto
|
# Overrides from trezor-crypto
|
||||||
CFLAGS += -DUSE_PRECOMPUTED_IV=0
|
CFLAGS += -DUSE_PRECOMPUTED_IV=0
|
||||||
CFLAGS += -DUSE_PRECOMPUTED_CP=0
|
CFLAGS += -DUSE_PRECOMPUTED_CP=0
|
||||||
OBJS += ../vendor/trezor-crypto/bignum.small.o
|
OBJS += ../vendor/trezor-crypto/bignum.small.o
|
||||||
@ -22,5 +41,8 @@ OPTFLAGS ?= -Os
|
|||||||
|
|
||||||
include ../Makefile.include
|
include ../Makefile.include
|
||||||
|
|
||||||
|
# Remove libtrezor from linking since we specified the small versions
|
||||||
|
LDLIBS := $(filter-out -ltrezor,$(LDLIBS))
|
||||||
|
|
||||||
align: $(NAME).bin
|
align: $(NAME).bin
|
||||||
./firmware_align.py $(NAME).bin
|
./firmware_align.py $(NAME).bin
|
||||||
|
Loading…
Reference in New Issue
Block a user