forked from rivosinc/salus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
72 lines (49 loc) · 1.25 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
# 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:
bazel build //:salus-all
check:
bazel test //:test-all
salus:
bazel build //:salus-all
salus_debug:
bazel build -c dbg //:salus-all
salus_test:
bazel build //:salus-unit-tests
scripts/run_salus_test.sh
tellus_bin:
bazel build //test-workloads:tellus_raw
guestvm:
bazel build //test-workloads:guestvm_raw
tellus:
bazel build //test-workloads:tellus
umode:
bazel build //umode:
sbirs:
# 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
#doc: currently not handled correctly by rules_rust
ci: salus guestvm tellus lint format check # doc