On 23/09/2021 23:35, Peter Stuge wrote:
> I've built armv7a images using the armv7a-hardfloat-linux-gnueabi-emerge
> command installed by crossdev with the toolchain after setting up
> etc/portage/ in that root as needed.
>
> That cross emerge cross compiles. :)


What level of breakage do you see these days? Are there any common packages 
which fail?

I'm trying to keep things simple and standard between my native generated 
images and the cross
compiled ones. So the qemu-chroot is nice.


As per your previous email, it seems like the /usr/armv7-xxx and 
/usr/x86_64-pc-linux-gnu/armv7-xx
dirs contain a complete "fanken-compiler" (ie cross compiler) that I could use 
directly inside the
arm chroot. The bits I need to solve are only:

- Setting the binaries to use (could use bits of the crossdev-emerge script)

- How to insert it into the chroot (my preference is to use portage with 
"ROOT=/my-chroot emerge
crossdev-xxx" since that tracks the files and could be upgraded easily in the 
future)

- Getting required bits of libc from the host into the chroot, probably copy 
files manually. Could
do some horrible emerge thing here...


On top of the that it seems straightforward to get binutils and bash to be 
compiled natively/static
and insert that into the chroot. This should get me a chroot with native 
toolchain, that will
crosscompile to armv7a... Need to figure the last steps now


Ed W


Reply via email to