forked from trezor/trezor-firmware
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
57 lines (44 loc) · 1.24 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
ifneq ($(EMULATOR),1)
OBJS += setup.o
OBJS += timer.o
endif
OBJS += buttons.o
OBJS += common.o
OBJS += flash.o
OBJS += fw_signatures.o
OBJS += gen/bitmaps.o
OBJS += gen/fonts.o
OBJS += layout.o
OBJS += memory.o
OBJS += oled.o
OBJS += random_delays.o
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_area.o
libtrezor.a: $(OBJS)
include Makefile.include
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
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