arch: add support for RISC-V 32-bit (riscv32) architecture
authorMark Corbin <mark.corbin@embecosm.com>
Sun, 21 Oct 2018 19:12:01 +0000 (20:12 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sun, 6 Jan 2019 13:09:31 +0000 (14:09 +0100)
commitae99fa6d641c5726f6e3b2dc977ff958fc863a41
tree78cda7ba57887c1678d0b70aff6229d3633ef98b
parent86d0ecf07615ff47a11ca6aa4d6aba908d6f359a
arch: add support for RISC-V 32-bit (riscv32) architecture

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@embecosm.com>
Reviewed-by: Matt Weber <matthew.weber@rockwellcollins.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
arch/Config.in.riscv
arch/arch.mk.riscv
configs/qemu_riscv64_virt_defconfig
package/glibc/4e2943456e690d89f48e6e710757dd09404b0c9a/0001-Fix-RISC-V-32-bit-build-of-riscv-glibc-2.26.patch [new file with mode: 0644]
package/glibc/4e2943456e690d89f48e6e710757dd09404b0c9a/glibc.hash [new file with mode: 0644]
package/glibc/glibc.mk
support/config-fragments/autobuild/br-riscv64-internal-glibc.config