2014-10-23 16:09:41 +00:00
|
|
|
NAME = bootloader
|
|
|
|
|
|
|
|
MCU_DIR=$(subst /bootloader,,$(PWD))
|
|
|
|
|
|
|
|
OBJS += bootloader.o
|
|
|
|
OBJS += signatures.o
|
|
|
|
OBJS += usb.o
|
|
|
|
|
2015-04-29 23:35:49 +00:00
|
|
|
OBJS += $(MCU_DIR)/trezor-crypto/bignum.o
|
2014-10-23 16:09:41 +00:00
|
|
|
OBJS += $(MCU_DIR)/trezor-crypto/ecdsa.small.o
|
|
|
|
OBJS += $(MCU_DIR)/trezor-crypto/hmac.o
|
|
|
|
OBJS += $(MCU_DIR)/trezor-crypto/ripemd160.o
|
|
|
|
OBJS += $(MCU_DIR)/trezor-crypto/secp256k1.small.o
|
|
|
|
OBJS += $(MCU_DIR)/trezor-crypto/sha2.o
|
|
|
|
|
|
|
|
CFLAGS += -DUSE_PRECOMPUTED_IV=0
|
|
|
|
CFLAGS += -DUSE_PRECOMPUTED_CP=0
|
|
|
|
|
|
|
|
include $(MCU_DIR)/Makefile.include
|
|
|
|
|
|
|
|
align:
|
|
|
|
./firmware_align.py $(NAME).bin
|