-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.toml
67 lines (57 loc) · 1.06 KB
/
Makefile.toml
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
57
58
59
60
61
62
63
64
65
66
67
[config]
default_to_workspace = false
[tasks.firmware]
script = [
"cd keykey",
"cargo build --release"
]
[tasks.firmware-log]
script = [
"cd keykey",
"cargo build --release --features=log"
]
[tasks.host]
script = [
"cd host",
"cargo build --release --features=host",
]
[tasks.cli]
script = [
"cd host",
"cargo run --release --features=host",
]
dependencies = ["host"]
[tasks.all]
dependencies = [
"firmware",
"host",
]
[tasks.size]
script = [
"cd keykey",
"cargo size --release",
]
dependencies = ["firmware"]
[tasks.sizea]
script = [
"cd keykey",
"cargo size --release -- -A",
]
dependencies = ["firmware"]
[tasks.gdb]
script = [
"cd kekey",
"cargo run --release"
]
dependencies = ["firmware"]
[tasks.flash]
script = [
"cd keykey",
"cargo flash --release --chip stm32f103c8",
]
dependencies = ["firmware"]
#[tasks.flash]
#script = [
# "openocd -f interface/stlink-v2.cfg -f target/stm32f1x.cfg -c \"program target/thumbv7m-none-eabi/release/keykey verify reset exit\""
#]
#dependencies = ["firmware"]