2014-10-23 16:09:41 +00:00
|
|
|
NAME = bootloader
|
|
|
|
|
|
|
|
OBJS += bootloader.o
|
|
|
|
OBJS += signatures.o
|
|
|
|
OBJS += usb.o
|
|
|
|
|
2015-12-15 22:01:54 +00:00
|
|
|
OBJS += ../vendor/trezor-crypto/bignum.o
|
|
|
|
OBJS += ../vendor/trezor-crypto/ecdsa.small.o
|
|
|
|
OBJS += ../vendor/trezor-crypto/hmac.o
|
|
|
|
OBJS += ../vendor/trezor-crypto/ripemd160.o
|
|
|
|
OBJS += ../vendor/trezor-crypto/secp256k1.small.o
|
|
|
|
OBJS += ../vendor/trezor-crypto/sha2.o
|
2014-10-23 16:09:41 +00:00
|
|
|
|
|
|
|
CFLAGS += -DUSE_PRECOMPUTED_IV=0
|
|
|
|
CFLAGS += -DUSE_PRECOMPUTED_CP=0
|
|
|
|
|
2015-08-05 14:57:23 +00:00
|
|
|
include ../Makefile.include
|
2014-10-23 16:09:41 +00:00
|
|
|
|
2016-09-25 14:04:07 +00:00
|
|
|
align: $(NAME).bin
|
2014-10-23 16:09:41 +00:00
|
|
|
./firmware_align.py $(NAME).bin
|
2016-09-25 14:04:07 +00:00
|
|
|
|
|
|
|
flash: $(NAME).bin
|
|
|
|
$(FLASH) write $(NAME).bin 0x8000000
|