-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile.toml
49 lines (40 loc) · 1.64 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
#***********************************************************************************************************************
# cargo make tasks to build the example for the Raspberry Pi
#***********************************************************************************************************************
# AARCH64 specific profile environment varialbles
[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 linker=${CC} -C target-cpu=cortex-a53"
# AARCH64 specific pipeline CI env. variables. "aarch64-none-elf" is not available there as it seems
[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 linker=${CC} -C target-cpu=cortex-a53"
[tasks.build]
command = "cargo"
args = ["build", "--release", "--features", "${FEATURES}"]
[tasks.pi3]
env = { FEATURES = "ruspiro_pi3" }
run_task = "build"
[tasks.clippy]
env = { FEATURES = "ruspiro_pi3" }
command = "cargo"
args = ["clippy", "--features", "${FEATURES}"]
[tasks.doc]
env = { FEATURES = "ruspiro_pi3" }
command = "cargo"
args = ["doc", "--target", "aarch64-unknown-linux-gnu", "--open", "--features", "${FEATURES}"]
[tasks.clean]
command = "cargo"
args = ["clean"]
[tasks.publish_dry]
env = { FEATURES = "ruspiro_pi3" }
command = "cargo"
args = ["publish", "--dry-run", "--features", "${FEATURES}"]
[tasks.publish]
env = { FEATURES = "ruspiro_pi3" }
command = "cargo"
args = ["publish", "--token", "${CRATES_TOKEN}", "--allow-dirty", "--features", "${FEATURES}"]