forked from rivosinc/salus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
75 lines (51 loc) · 1.46 KB
/
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
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
68
69
70
71
72
73
74
75
# SPDX-FileCopyrightText: 2023 Rivos Inc.
#
# SPDX-License-Identifier: Apache-2.0
# Do not add dependencies to the bazel targets here.
# The dependencies are handled by bazel.
all: update_submodules
bazel build //:salus-all
check: update_submodules
bazel test //:test-all
salus: update_submodules
bazel build //:salus-all
salus_debug: update_submodules
bazel build -c dbg //:salus-all
salus_test: update_submodules
bazel build //:salus-unit-tests
scripts/run_salus_test.sh
tellus_bin: update_submodules
bazel build //test-workloads:tellus_raw
guestvm: update_submodules
bazel build //test-workloads:guestvm_raw
tellus: update_submodules
bazel build //test-workloads:tellus
umode: update_submodules
bazel build //umode:
update_submodules:
# Check if the submodule needs to be initialized
if [ "$$(git submodule status | grep -c '^-')" -gt 0 ]; then \
git submodule update --init; \
fi
run_salus_test: salus_test
./scripts/run_salus_test.sh
run_tellus_gdb: tellus_bin salus_debug
./scripts/run_tellus_gdb.sh
run_tellus: all
./scripts/run_tellus.sh
run_linux: salus
./scripts/run_linux.sh
run_debian: salus
./scripts/run_debian.sh
run_buildroot: salus
./scripts/run_buildroot.sh
run_buildroot_debug: salus_debug
./scripts/run_buildroot_dbg.sh
lint:
bazel build //:clippy-all
format:
bazel test //:rustfmt-all
reformat:
bazel run @rules_rust//:rustfmt
#doc: currently not handled correctly by rules_rust
ci: salus guestvm tellus lint format check # doc