Skip to content

Draft: patches for native cross-compilation

Caleb Connolly requested to merge caleb/abuild-cross into master

we need to patch abuild-meson for cross compilation to work properly.

When combined with pmbootstrap!2474 this allows for some packages to be built with abuild and the build tooling (e.g. meson) running on the native chroot rather than through QEMU, this drastically speeds up compilation.

When cross compiling, the makedepends should be split up into makedepends_host and makedepends_build. The build dependencies are those like "meson", build tools that we want to install and run on the native chroot. The host dependencies, are libraries, headers, etc for the architecture we're targeting. This follows the same semantics as Meson.

I've adjusted pmbootstrap to support these, and fall back by installing all makedepends in both chroots (which obviously isn't ideal).

Edited by Caleb Connolly

Merge request reports

Loading