From 34ab15d46c4103e53e2908c346c855c35b91d6ce Mon Sep 17 00:00:00 2001 From: pythops Date: Tue, 3 Sep 2024 22:40:40 +0200 Subject: [PATCH] docs: add build instructions for arm64 arch --- Readme.md | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/Readme.md b/Readme.md index bdbb549..c858a8b 100644 --- a/Readme.md +++ b/Readme.md @@ -29,19 +29,39 @@ You can download the pre-built binaries from the release page [release page](htt To build `oryx`: -1. Install Rust nightly toolchain +#### 1. Install Rust nightly toolchain ``` rustup toolchain install nightly --component rust-src ``` -2. Install [bpf-linker](https://github.com/aya-rs/bpf-linker) +#### 2. Install [bpf-linker](https://github.com/aya-rs/bpf-linker) + +##### For `x86_64` + +Simply run the following command: ``` cargo install bpf-linker ``` -3. Build +##### For `arm64` + +For Debian based distributions, make sure you have the following dependencies installed: + +- `llvm-19` +- `llvm-19-dev` +- `libpolly-19-dev` + +then run the following command: + +``` +cargo install bpf-linker --no-default-features +``` + +> Check [bpf-linker Installation section](https://github.com/aya-rs/bpf-linker?tab=readme-ov-file#installation) for more infos. + +#### 3. Build ``` cargo xtask build --release