From 00bdcfe05e7b9e96556dce79533c264babf3ae04 Mon Sep 17 00:00:00 2001 From: Marcondiro <46560192+Marcondiro@users.noreply.github.com> Date: Tue, 17 Dec 2024 17:07:02 +0100 Subject: [PATCH] Add intel_pt_babyfuzzer Makefile --- .../intel_pt_baby_fuzzer/Makefile.toml | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 fuzzers/binary_only/intel_pt_baby_fuzzer/Makefile.toml diff --git a/fuzzers/binary_only/intel_pt_baby_fuzzer/Makefile.toml b/fuzzers/binary_only/intel_pt_baby_fuzzer/Makefile.toml new file mode 100644 index 0000000000..f3aba8ebe4 --- /dev/null +++ b/fuzzers/binary_only/intel_pt_baby_fuzzer/Makefile.toml @@ -0,0 +1,26 @@ +[env] +RUST_BACKTRACE = "0" +TARGET_DIR = "${CARGO_MAKE_CRATE_TARGET_DIRECTORY}" + +[env.development] +PROFILE_DIR = "debug" +CARGO_BUILD_ARG = "" + +[env.release] +PROFILE_DIR = "release" +CARGO_BUILD_ARG = "--release" + +[tasks.build] +command = "cargo" +args = ["build", "--profile", "${CARGO_MAKE_CARGO_PROFILE}"] + +[tasks.setcap] +script = "sudo setcap cap_ipc_lock,cap_sys_ptrace,cap_sys_admin,cap_syslog=ep ${CARGO_MAKE_CRATE_TARGET_DIRECTORY}/${PROFILE_DIR}/${CARGO_MAKE_CRATE_NAME}" +dependencies = ["build"] + +[tasks.run] +command = "${CARGO_MAKE_CRATE_TARGET_DIRECTORY}/${PROFILE_DIR}/${CARGO_MAKE_CRATE_NAME}" +dependencies = ["build", "setcap"] + +[tasks.default] +alias = "run"