1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-25 07:48:10 +00:00
trezor-firmware/legacy/Makefile

58 lines
1.2 KiB
Makefile
Raw Normal View History

2017-12-13 18:38:51 +00:00
ifneq ($(EMULATOR),1)
OBJS += setup.o
OBJS += timer.o
2017-12-13 18:38:51 +00:00
endif
2014-04-29 12:26:51 +00:00
OBJS += buttons.o
2019-01-25 10:58:23 +00:00
OBJS += common.o
OBJS += flash.o
OBJS += fw_signatures.o
OBJS += gen/bitmaps.o
OBJS += gen/fonts.o
2014-04-29 12:26:51 +00:00
OBJS += layout.o
OBJS += memory.o
2014-04-29 12:26:51 +00:00
OBJS += oled.o
OBJS += random_delays.o
2014-04-29 12:26:51 +00:00
OBJS += rng.o
OBJS += supervise.o
OBJS += usb21_standard.o
OBJS += usb_standard.o
OBJS += util.o
OBJS += webusb.o
OBJS += winusb.o
OBJS += vendor/trezor-storage/flash_common.o
2014-04-29 12:26:51 +00:00
libtrezor.a: $(OBJS)
include Makefile.include
2016-05-11 12:38:04 +00:00
libtrezor.a:
@printf " AR $@\n"
$(Q)$(AR) rcs $@ $^
.PHONY: vendor build_unix test_emu test_emu_ui test_emu_ui_record \
flash_firmware_jlink flash_bootloader_jlink
2016-05-11 12:38:04 +00:00
vendor:
git submodule update --init --recursive
build_unix: ## build unix port
./script/setup
EMULATOR=1 DEBUG_LINK=1 ./script/cibuild
test_emu: ## run integration tests
./script/test $(TESTOPTS)
test_emu_ui: ## run ui integration tests
./script/test --ui=test --ui-check-missing $(TESTOPTS)
test_emu_ui_record: ## record and hash screens for ui integration tests
./script/test --ui=record --ui-check-missing $(TESTOPTS)
flash_firmware_jlink:
JLinkExe -nogui 1 -commanderscript firmware/firmware_flash.jlink
flash_bootloader_jlink:
JLinkExe -nogui 1 -commanderscript bootloader/bootloader_flash.jlink