summaryrefslogtreecommitdiffstats
path: root/package/glibc
diff options
context:
space:
mode:
authorMark Corbin <mark.corbin@embecosm.com>2018-09-12 11:22:54 +0100
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>2018-09-23 23:42:41 +0200
commit9b3d52b4008abacc4ea4867e0fe4e68ed32b1920 (patch)
treea4f6a1c4ef524a16cb6cb9fa818e112d994d10d3 /package/glibc
parent03e2bad8687c882b85d213fff9354c788b5c1bf2 (diff)
downloadbuildroot-9b3d52b4008abacc4ea4867e0fe4e68ed32b1920.tar.gz
buildroot-9b3d52b4008abacc4ea4867e0fe4e68ed32b1920.zip
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 'package/glibc')
-rw-r--r--package/glibc/glibc.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/package/glibc/glibc.mk b/package/glibc/glibc.mk
index 4e50f5aa0c..c8ade7c28b 100644
--- a/package/glibc/glibc.mk
+++ b/package/glibc/glibc.mk
@@ -76,6 +76,12 @@ GLIBC_CONF_ENV = \
libc_cv_forced_unwind=yes \
libc_cv_ssp=no
+# Override the default library locations of /lib64/<abi> and
+# /usr/lib64/<abi>/ for RISC-V.
+ifeq ($(BR2_riscv),y)
+GLIBC_CONF_ENV += libc_cv_slibdir=/lib64 libc_cv_rtlddir=/lib
+endif
+
# Even though we use the autotools-package infrastructure, we have to
# override the default configure commands for several reasons:
#
OpenPOWER on IntegriCloud