-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile.toml
51 lines (42 loc) · 1.74 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
#***********************************************************************************************************************
# cargo make tasks to build the example for the Raspberry Pi
#***********************************************************************************************************************
[env.development]
CC = "aarch64-none-elf-gcc"
AR = "aarch64-none-elf-ar"
CFLAGS = "-march=armv8-a -Wall -O3 -nostdlib -nostartfiles -ffreestanding -mtune=cortex-a53"
RUSTFLAGS = "-C target-cpu=cortex-a53 -C target-feature=+strict-align,+a53,+fp-armv8,+neon -C link-arg=-T./link64.ld"
[env.pipeline]
CC = "aarch64-linux-gnu-gcc"
AR = "aarch64-linux-gnu-ar"
CFLAGS = "-march=armv8-a -Wall -O3 -nostdlib -nostartfiles -ffreestanding -mtune=cortex-a53"
RUSTFLAGS = "-C target-cpu=cortex-a53 -C target-feature=+strict-align,+a53,+fp-armv8,+neon -C link-arg=-T./link64.ld"
[tasks.clippy]
env = { FEATURES = "panic, multicore" }
command = "cargo"
args = ["clippy", "--features", "${FEATURES}"]
[tasks.doc]
env = { FEATURES = "panic, multicore" }
command = "cargo"
args = ["doc", "--features", "${FEATURES}", "--open"]
[tasks.singlecore]
env = { FEATURES = "panic" }
command = "cargo"
args = ["build", "--release", "--features", "${FEATURES}"]
[tasks.multicore]
env = { FEATURES = "multicore, panic" }
command = "cargo"
args = ["build", "--release", "--features", "${FEATURES}"]
[tasks.build]
dependencies = ["singlecore", "multicore"]
[tasks.clean]
command = "cargo"
args = ["clean"]
[tasks.publish_dry]
env = { FEATURES = "" }
command = "cargo"
args = ["publish", "--dry-run", "--features", "${FEATURES}"]
[tasks.publish]
env = { FEATURES = "panic, multicore" }
command = "cargo"
args = ["publish", "--token", "${CRATES_TOKEN}", "--allow-dirty", "--features", "${FEATURES}"]