2017-12-13 18:38:51 +00:00
|
|
|
ifneq ($(EMULATOR),1)
|
2021-11-29 15:11:02 +00:00
|
|
|
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
|
2022-05-03 12:52:18 +00:00
|
|
|
OBJS += fw_signatures.o
|
2021-11-29 15:11:02 +00:00
|
|
|
OBJS += gen/bitmaps.o
|
|
|
|
OBJS += gen/fonts.o
|
2014-04-29 12:26:51 +00:00
|
|
|
OBJS += layout.o
|
2021-11-29 15:11:02 +00:00
|
|
|
OBJS += memory.o
|
2014-04-29 12:26:51 +00:00
|
|
|
OBJS += oled.o
|
2021-02-15 14:20:56 +00:00
|
|
|
OBJS += random_delays.o
|
2014-04-29 12:26:51 +00:00
|
|
|
OBJS += rng.o
|
2018-03-16 20:40:39 +00:00
|
|
|
OBJS += supervise.o
|
2018-08-27 15:22:04 +00:00
|
|
|
OBJS += usb21_standard.o
|
2021-11-29 15:11:02 +00:00
|
|
|
OBJS += usb_standard.o
|
|
|
|
OBJS += util.o
|
2018-08-27 15:22:04 +00:00
|
|
|
OBJS += webusb.o
|
|
|
|
OBJS += winusb.o
|
|
|
|
|
2014-04-29 12:26:51 +00:00
|
|
|
libtrezor.a: $(OBJS)
|
|
|
|
|
|
|
|
include Makefile.include
|
2016-05-11 12:38:04 +00:00
|
|
|
|
2018-06-25 19:29:18 +00:00
|
|
|
libtrezor.a:
|
|
|
|
@printf " AR $@\n"
|
|
|
|
$(Q)$(AR) rcs $@ $^
|
|
|
|
|
2022-09-15 14:54:23 +00:00
|
|
|
.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:
|
2018-07-16 12:44:34 +00:00
|
|
|
git submodule update --init --recursive
|
2022-02-08 16:45:12 +00:00
|
|
|
|
|
|
|
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)
|
2022-09-15 14:54:23 +00:00
|
|
|
|
|
|
|
flash_firmware_jlink:
|
|
|
|
JLinkExe -nogui 1 -commanderscript firmware/firmware_flash.jlink
|
|
|
|
|
|
|
|
flash_bootloader_jlink:
|
|
|
|
JLinkExe -nogui 1 -commanderscript bootloader/bootloader_flash.jlink
|
|
|
|
|