Re: Cross compiling user applications for armv7

From: void <void_at_f-m.fm>
Date: Sun, 14 Sep 2025 12:33:21 UTC
Hello,

On Sun, Sep 14, 2025 at 09:24:07AM +0000, Michał Kruszewski wrote:
>I actually build system from the current main branch.
>How do I set up poudriere in such a case?

I'd do it like this, on amd64:

install poudriere-devel and configure poudriere.conf for your system.
(copy /usr/local/etc/poudriere.conf.sample to poudriere.conf and
edit it)
install qemu-user-static
run this: 'binmiscctl enable armv7'
then

poudriere jail -c -j armv7 -J10 -a arm.armv7 -m git+https -K GENERIC-NODEBUG -v main

the -J corresponding to the number of cores you may have.

Note that poudriere uses qemu-user-static for cross-compilation and
you can't build rust (or anything that uses rust) with it, as far as
I'm aware.
--