build on android aarch64
Android上build需要先Installing Debian on Android in Termux
Android上build需要先Installing Debian on Android in Termux
在Android上构建时,需要先Installing Debian on Android in Termux
-
install termux
-
install proot-distro
select debian distro
pkg install proot-distro proot-distro install debian proot-distro login debian -
install packages
remember
proot-distro login debianfirstapk update apt install clang cmake libelf1 libelf-dev zlib1g-dev之后的步骤和在ARM上build上相同
Build on ARM
-
同步 eunomia-bpf 到本地
git clone https://github.com/eunomia-bpf/eunomia-bpf.git cd eunomia-bpf git submodule update --init --recursive --remote -
配置环境变量
export PKG_CONFIG_PATH=/usr/lib/aarch64-linux-gnu/pkgconfig -
安装依赖
apt update apt install clang cmake libelf1 libelf-dev zlib1g-dev -
修改wasm-runtime/CMakeLists.txt
中的WAMR_BUILD_TARGET(may not required)change
set (WAMR_BUILD_TARGET "X86_64")toset (WAMR_BUILD_TARGET "AARCH64") -
编译
make bpf-loader make ecli -
检查输出
root@localhost:~/eunomia-bpf# file ecli/build/bin/Release/ecli ecli: ELF 64-bit LSB pie executable, ARM aarch64, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-aarch64.so.1, BuildID[sha1]=eab42b79be75951e3a573aa7c61136239d35c868, for GNU/Linux 3.7.0, with debug_info, not stripped
Continue exploring
Back to index
eunomia-bpf Documentation
Simplify eBPF development with CO-RE and WebAssembly. Build, compile, and distribute eBPF programs easier with automatic code generation.
Previous
quickstart
- Github Template: eunomia-bpf/eunomia-template - example bpf programs: examples/bpftools - tutorial: eunomia-bpf/bpf-developer-tutorial
Next
build from source
If you want to run the cli, in most cases, you don't need to build your own.
- Last updated
- Feb 10, 2025
- First published
- Feb 10, 2025
- Contributors
- weekendfish
Was this page helpful?