This patch a QEMU option to cross compile stage
Created attachment 321204 [details, diff]
First version os the patch.
the cross compiler test need to be modified to disable qemu when corss compilling x86 on amd64
This patch compile a set of static native binaries. this list is hard-coded.
Created attachment 321206 [details, diff]
Modified qemu wrapper to run native binaries when available.
Need to be compiled with -static
Created attachment 321520 [details, diff]
qemu patch v2
Remove the crossdir directory at the end of the process
We've implemented this with https://gitweb.gentoo.org/proj/catalyst.git/commit/?id=22f59e6d758b3c4801a984ea6a3b4574407143c6 and are using it to build RISC-V stages.
Let us know if this isn't what you had in mind.