libbpf / ci

BPF CI
Other
11 stars 24 forks source link

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

Closed chantra closed 9 months ago

chantra commented 9 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 9 months ago

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