~alpine/devel

2 2

Building armhf package on x86_64?

Details
Message ID
<gq8w6Ol_ovHVUTpNJkUECQmfabLpKrYb0PWKtKA392VskOg_KGxmGFQUV7hJuiJ-3ePAYtK3p34swVoQ24qdyBSKWRT-vcMwo1Get8hvtGs=@protonmail.com>
DKIM signature
missing
Download raw message
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
Milan P. Stanić <mps@arvanta.net>
Details
Message ID
<YjsX+cAN1uI9aByz@m1>
In-Reply-To
<gq8w6Ol_ovHVUTpNJkUECQmfabLpKrYb0PWKtKA392VskOg_KGxmGFQUV7hJuiJ-3ePAYtK3p34swVoQ24qdyBSKWRT-vcMwo1Get8hvtGs=@protonmail.com> (view parent)
DKIM signature
missing
Download raw message
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
Bart Ribbers <bribbers@disroot.org>
Details
Message ID
<11980350.O9o76ZdvQC@spaceblade>
In-Reply-To
<YjsX+cAN1uI9aByz@m1> (view parent)
DKIM signature
missing
Download raw message
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".
Reply to thread Export thread (mbox)