libbpf / ci

BPF CI
Other
7 stars 22 forks source link

cross-compilation: make libbpf/ci cross-compilation aware #122

Closed chantra closed 6 months ago

chantra commented 6 months ago

This adds handling of a required arch parameter.

setup-build-env, build-linux, build-sample, build-selftests are made to handle this input and set the ARCH variable when calling make to what is expected by Linux build system.

If the inputs.arch is different than the host arch, CROSS_COMPILE variable will be set to the right toolchain.

setup-build-env is also modified to install the corresponding target libraries.

chantra commented 6 months ago

Example end-2-end run https://github.com/kernel-patches/vmtest/actions/runs/7891345677/job/21537206452?pr=262