Build scripts for Openwrt to create package einat-ebpf
-
Openwrt with
Reduce debugging information
set to N -
Openwrt kernel module
kmod-sched-bpf
-
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.
-
Configuration
Run
make menuconfig
to open openwrt configuration, do those changes:-
Global build settings -> Kernel build options -> Reduce debugging information
set to N -
Advanced configuration options (for developers) -> BPF toolchain
set toUse host LLVM toolchain
Openwrt use clang 15, which is not new enough. clang 17 on Arch Linux is tested and build successfully.
-
You can find
einat-ebpf
atNetwork -> 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.
-
-
Build
Run
make package/openwrt-packages/einat-ebpf/compile
to build ipk file. You will find output atbin/packages/$TARGET_ARCH/packages
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.