[Buildroot] [PATCH v4 1/3] arch: add support for RISC-V 32-bit (riscv32) architecture

Thomas Petazzoni thomas.petazzoni at bootlin.com
Mon Jan 14 20:44:08 UTC 2019


Hello Mark,

On Sun, 21 Oct 2018 20:12:01 +0100, Mark Corbin wrote:
> This enables a riscv32 system to be built with a Buildroot generated
> toolchain (gcc >= 7.x, binutils >= 2.30, glibc only).
> 
> This requires a custom version of glibc 2.26 from the riscv-glibc
> repository. Note that there are no tags in this repository, so the
> glibc version just consists of the 40 character commit id string.
> 
> Thanks to Fabrice Bellard for pointing me towards the 32-bit glibc
> repository and for providing the necessary patch to get it to build.
> 
> Signed-off-by: Mark Corbin <mark.corbin at embecosm.com>
> ---
> Changes v3 -> v4:
>   - added choice for selecting 32-bit or 64-bit in Config.in.riscv
>     This provides a new variable BR2_RISCV_32

I'm sure you noticed through the autobuilder e-mails, but I wanted to
point out that riscv32 is causing a number of build issues:

  http://autobuild.buildroot.net/?arch=riscv32

Most of the ones I looked at are due to missing mcontext_t definition
in glibc. Is this something you could have a look at ?

Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com



More information about the buildroot mailing list