forked from Byte-OS/polyhal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
31 lines (24 loc) · 845 Bytes
/
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
# Makefile to test the polyhal with multiple architectures
all:
.PHONY: example boot-iso
example:
make -C example run
boot-iso:
make -C example boot-iso
clean:
rm -rf target/
test-build:
cargo build --all-features --target riscv64gc-unknown-none-elf
cargo build --all-features --target aarch64-unknown-none-softfloat
cargo build --all-features --target x86_64-unknown-none
cargo build --all-features --target loongarch64-unknown-none
test-clippy:
cargo clippy --all-features --target riscv64gc-unknown-none-elf
cargo clippy --all-features --target aarch64-unknown-none-softfloat
cargo clippy --all-features --target x86_64-unknown-none
cargo clippy --all-features --target loongarch64-unknown-none
publish:
cargo publish -p polyhal-macro
cargo publish -p polyhal
cargo publish -p polyhal-boot
cargo publish -p polyhal-trap