Hi,
I need to build an armhf package on Alpine, but I only have access to x86_64 hardware. The cross-compiler generated by aports/scripts/bootstrap.sh is only for building the base system (can anyone explain why this compiler must not be used for anything else?).
What are my options?
Best regards,
Mogense Jensen
On Wed, 2022-03-23 at 12:37, Mogens Jensen wrote:
> I need to build an armhf package on Alpine, but I only have access to x86_64 hardware. The cross-compiler generated by aports/scripts/bootstrap.sh is only for building the base system (can anyone explain why this compiler must not be used for anything else?).> > What are my options?
Create armhf lxc on x86_64 with the qemu-arm and qemu-openrc and build
package in this lxc
--
Kind regards
Or, use rootbld after setting up the arch you want in binfmt.
Install Qemu for the arch you want (e.g. qemu-riscv64), run "rc-service
restart qemu-binfmt" and then call "CBUILD=riscv64 abuild rootbld" as you'd
normally run "abuild -r".