-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
41 lines (34 loc) · 956 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
32
33
34
35
36
37
38
39
40
41
export INSTALL_DIR = $(shell pwd)/iso/boot
# Build the kernel
build:
make -C user build
make -C user install
cd kernel && cargo build
# Build the kernel in release mode
build-release:
make -C user build-release
make -C user install
cd kernel && cargo build --release
# Build and run the last built kernel in Qemu
run: build
./scripts/runner.sh
# Build and run the last built kernel in Qemu in release mode
run-release: build-release
./scripts/runner.sh
# Run the last built kernel in Qemu and run the tests
run-test:
cd kernel && cargo build --features test
./scripts/build_iso.sh
./scripts/run_tests.sh
# Format the code using rustfmt
fmt:
cd kernel/crates/helium-macros && cargo fmt
cd kernel/crates/helium-addr && cargo fmt
cd kernel/crates/helium-sync && cargo fmt
cd kernel/crates/helium-lib && cargo fmt
cd kernel && cargo fmt
make -C user fmt
# Clean the build artifacts
clean:
cd kernel && cargo clean
make -C user clean