aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Mark Corbin <mark.corbin@embecosm.com>2018-09-12 11:22:54 +0100
committerGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2018-09-23 23:42:41 +0200
commit9b3d52b4008abacc4ea4867e0fe4e68ed32b1920 (patch)
treea4f6a1c4ef524a16cb6cb9fa818e112d994d10d3 /Makefile
parent03e2bad8687c882b85d213fff9354c788b5c1bf2 (diff)
downloadbuildroot-9b3d52b4008abacc4ea4867e0fe4e68ed32b1920.tar.gz
buildroot-9b3d52b4008abacc4ea4867e0fe4e68ed32b1920.tar.bz2
arch: add support for RISC-V 64-bit (riscv64) architecture
This enables a riscv64 system to be built with a Buildroot generated toolchain (gcc >= 7.x, binutils >= 2.30, glibc only). This configuration has been used to successfully build a qemu-bootable riscv-linux-4.15 kernel (https://github.com/riscv/riscv-linux.git). Signed-off-by: Mark Corbin <mark.corbin@embecosm.com> [Thomas: - simplify arch.mk.riscv by directly setting GCC_TARGET_ARCH - simplify glibc.mk changes by using GLIBC_CONF_ENV.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 600b5245f0..82dd76ea76 100644
--- a/Makefile
+++ b/Makefile
@@ -433,6 +433,7 @@ KERNEL_ARCH := $(shell echo "$(ARCH)" | sed -e "s/-.*//" \
-e s/parisc64/parisc/ \
-e s/powerpc64.*/powerpc/ \
-e s/ppc.*/powerpc/ -e s/mips.*/mips/ \
+ -e s/riscv.*/riscv/ \
-e s/sh.*/sh/ \
-e s/microblazeel/microblaze/)