Skip to content

Commit

Permalink
docs: add build instructions for arm64 arch
Browse files Browse the repository at this point in the history
  • Loading branch information
pythops committed Sep 3, 2024
1 parent de479a7 commit 34ab15d
Showing 1 changed file with 23 additions and 3 deletions.
26 changes: 23 additions & 3 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 34ab15d

Please sign in to comment.