1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-16 19:38:09 +00:00
trezor-firmware/legacy/bootloader/Makefile

51 lines
1.3 KiB
Makefile
Raw Normal View History

NAME = bootloader-unaligned
2014-10-23 16:09:41 +00:00
OBJS += startup.o
2014-10-23 16:09:41 +00:00
OBJS += bootloader.o
OBJS += usb.o
# Overrides from libtrezor.
# Objects ending with 'small.o' are built with -Os to make the bootloader smaller.
CFLAGS += -DFONT_SKIP_FIXED=1
OBJS += ../buttons.small.o
OBJS += ../common.small.o
OBJS += ../flash.small.o
OBJS += ../fw_signatures.small.o
OBJS += ../gen/bitmaps.small.o
OBJS += ../gen/fonts.small.o
OBJS += ../layout.small.o
OBJS += ../memory.small.o
OBJS += ../oled.small.o
OBJS += ../random_delays.small.o
OBJS += ../rng.small.o
OBJS += ../setup.small.o
OBJS += ../supervise.small.o
OBJS += ../timer.small.o
OBJS += ../usb21_standard.small.o
OBJS += ../usb_standard.small.o
OBJS += ../util.small.o
OBJS += ../webusb.small.o
OBJS += ../winusb.small.o
# Overrides from trezor-crypto
CFLAGS += -DUSE_PRECOMPUTED_CP=0
CFLAGS += -DUSE_PRECOMPUTED_IV=0
OBJS += ../vendor/trezor-crypto/bignum.small.o
2015-12-15 22:01:54 +00:00
OBJS += ../vendor/trezor-crypto/ecdsa.small.o
OBJS += ../vendor/trezor-crypto/hmac_drbg.small.o
OBJS += ../vendor/trezor-crypto/memzero.small.o
2015-12-15 22:01:54 +00:00
OBJS += ../vendor/trezor-crypto/secp256k1.small.o
OBJS += ../vendor/trezor-crypto/sha2.small.o
2014-10-23 16:09:41 +00:00
OPTFLAGS ?= -Os
include ../Makefile.include
2014-10-23 16:09:41 +00:00
# Remove libtrezor from linking since we specified the small versions
LDLIBS := $(filter-out -ltrezor,$(LDLIBS))
bootloader.bin: $(NAME).bin
./firmware_align.py $< $@
all: bootloader.bin