This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: how to build and test uClinux toolchains
Hello,
On Tue, Oct 16, 2018 at 1:54 PM Jim Wilson <jimw@sifive.com> wrote:
>
> On 10/16/18 7:19 AM, Christophe Lyon wrote:
> > While reviewing one of my patches about FDPIC support for ARM, Richard
> > raised the concern of testing the patch on other uClinux targets [1].
> >
> > I looked at uclinux.org and at the GCC maintainers file, but it's
> > still not obvious to me which uClinux targets are currently supported?
I'm trying to keep nommu xtensa alive.
> I see that buildroot has obvious blackfin (bfin), m68k, and xtensa
> uclinux support. But blackfin.uclinux.org says the uclinux port was
> deprecated in 2012. m68k as mentioned above should be usable. It
> appears that xtensa uclinux is still alive and usable.
> http://wiki.linux-xtensa.org/index.php/UClinux
Probably the easiest way to get all xtensa toolchain parts correctly it
by using existing buildroot configuration. E.g. the following configuration
may be used to build uclinux xtensa toolchain for the dc233c core:
https://git.buildroot.net/buildroot/tree/configs/qemu_xtensa_lx60_nommu_defconfig
Also bFLT executable format is currently not supported for linux-user
xtensa QEMU. The following branch adds that support:
https://github.com/OSLL/qemu-xtensa/commits/xtensa-bflt
qemu-xtensa built from this QEMU then may be registered as a binfmt
handler for bFLT executable images allowing to run gcc tests that want
to run target binaries.
--
Thanks.
-- Max