-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (27 loc) · 880 Bytes
/
Copy pathMakefile
File metadata and controls
37 lines (27 loc) · 880 Bytes
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
.PHONY: all cm7 cm4 clean check \
flash-cm7 flash-cm4 \
release-cm7 release-cm4
all: cm7 cm4
cm7:
cargo build --manifest-path cm7/Cargo.toml
cm4:
cargo build --manifest-path cm4/Cargo.toml
flash-cm7: cm7
cargo run --manifest-path cm7/Cargo.toml
# NOTE: For CRC validation, build cm4 before cm7:
# make release-cm4 # (needed by cm7/build.rs)
# make release-cm7
flash-cm4: cm4
probe-rs download --chip STM32H755ZITx --verify \
cm4/target/thumbv7em-none-eabihf/debug/cm4
clean:
cargo clean --manifest-path cm7/Cargo.toml
cargo clean --manifest-path cm4/Cargo.toml
check:
cargo clippy --manifest-path cm7/Cargo.toml
cargo clippy --manifest-path cm4/Cargo.toml
cargo clippy --manifest-path shared/Cargo.toml
release-cm7:
cargo build --manifest-path cm7/Cargo.toml --release
release-cm4:
cargo build --manifest-path cm4/Cargo.toml --release