parca-agent icon indicating copy to clipboard operation
parca-agent copied to clipboard

build: Simplify the eBPF artifact build process

Open v-thakkar opened this issue 3 years ago • 0 comments

Let's get rid of makefile under bpf/. We should be able to handle everything for the rust code via Cargo and Makefile at the root of the project should have bpf/setup, bpf/build with Cargo commands.

  • [ ] Remove Makefile in bpf/
  • [ ] Add setup and build options in root Makefile
  • [ ] Add a way to install bpf-linker based on arch:
  • For x86: cargo install bpf-linker
  • For arm64: LLVM_SYS_140_PREFIX=/usr/lib/llvm-14 cargo install --git https://github.com/aya-rs/bpf-linker --tag $(BPF_LINKER_VERSION) --no-default-features --features system-llvm -- bpf-linker

v-thakkar avatar Jul 05 '22 15:07 v-thakkar