https://github.com/arenekosreal/einat-ebpf
Openwrt build script for einat-ebpf
https://github.com/arenekosreal/einat-ebpf
einat-ebpf openwrt openwrt-package
Last synced: about 2 months ago
JSON representation
Openwrt build script for einat-ebpf
- Host: GitHub
- URL: https://github.com/arenekosreal/einat-ebpf
- Owner: arenekosreal
- License: wtfpl
- Created: 2024-04-10T08:49:28.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-07-24T04:44:36.000Z (11 months ago)
- Last Synced: 2024-07-24T06:24:40.720Z (11 months ago)
- Topics: einat-ebpf, openwrt, openwrt-package
- Language: Makefile
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# einat-ebpf for openwrt
## What is this
Build scripts for [Openwrt](https://openwrt.org) to create package [einat-ebpf](https://github.com/EHfive/einat-ebpf)
## Requirements
1. Openwrt with `Reduce debugging information` set to N
2. Openwrt kernel module `kmod-sched-bpf`
## Usage:
1. Clone this repo
```
git clone https://github.com/arenekosreal/einat-ebpf \
/path/to/openwrt/package/openwrt-packages/einat-ebpf
```
Don't forget to replace `/path/to/openwrt` with real path of your openwrt source code.2. Configuration
Run `make menuconfig` to open openwrt configuration, do those changes:
1. `Global build settings -> Kernel build options -> Reduce debugging information` set to N
2. `Advanced configuration options (for developers) -> BPF toolchain` set to `Use host LLVM toolchain`
Openwrt use clang 15, which is not new enough. clang 17 on Arch Linux is tested and build successfully.
3. You can find `einat-ebpf` at `Network -> Routing and Rediretion` after the steps above are done correctly.
By default the `ipv6` feature is not enabled, you can enable it in the menu.
3. Build
Run `make package/openwrt-packages/einat-ebpf/compile` to build ipk file. You will find output at `bin/packages/$TARGET_ARCH/packages`
## License
This repository is licenced under `WTFPL` license, you can do whatever you want to this repository.
But Openwrt is licensed under GPL-2.0-only and einat-ebpf is licensed under GPL-2.0-or-later,
please follow their licences when make contributions to them.