-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.toml
58 lines (47 loc) · 1.53 KB
/
Makefile.toml
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
[env]
# Profile
PROFILE = { value = "release", condition = { env_not_set = ["PROFILE"] } }
FEATURE = { value = "", condition = { env_not_set = ["FEATURE"] } }
# Fuzzer
TARGET_NAME = "fuzzer"
TARGET_DIR = "${CARGO_MAKE_CRATE_TARGET_DIRECTORY}"
TARGET_DEFINE = "TARGET_SYNC_EXIT"
# Kernel
KERNEL_NAME = "" # Should be defined according to the kernel
KERNEL_DIR = "" # Should be defined according to the kernel
# LibAFL congiuration
# Not necessary, but specify if you encounter "LLVM not found" error
# Ref: https://github.com/AFLplusplus/LibAFL/blob/b9cfcf07710e189bbd95dd274b893c1d59d4f24a/libafl_qemu/libafl_qemu_build/src/lib.rs#L89
# LLVM_CONFIG = "15"
# Specify if you are using your own version of qemu-libafl-bridge
# LIBAFL_QEMU_DIR = "${HOME}/os/qemu-libafl-bridge"
# Build fuzzer
[tasks.build_fuzzer]
command = "cargo"
args = [
"build",
"--features", "${FEATURE}",
"--profile", "${PROFILE}",
"--target-dir", "${TARGET_DIR}",
"-v",
]
# Clean fuzzer
[tasks.clean_fuzzer]
command = "cargo"
args = ["clean"]
# NOTE: This is an empty task, you should define it according to the kernel
[tasks.build_kernel]
# NOTE: This is an empty task, you should define it according to the kernel
[tasks.clean_kernel]
[tasks.default]
alias = "run"
[tasks.build]
clear = true
dependencies = ["build_fuzzer", "build_kernel"]
# NOTE: No commands are defined for the run task, you should define it according to the kernel
[tasks.run]
clear = true
dependencies = ["build"]
[tasks.clean]
clear = true
dependencies = ["clean_fuzzer", "clean_kernel"]