multilib.eclass: Add riscv64 definitions
authorAndreas K. Hüttel <dilfridge@gentoo.org>
Wed, 1 May 2019 22:04:38 +0000 (00:04 +0200)
committerAndreas K. Hüttel <dilfridge@gentoo.org>
Fri, 3 May 2019 21:43:56 +0000 (23:43 +0200)
Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
eclass/multilib.eclass

index 393f0db073c352998b9b1a0b33a5da7ee1728a52..63bde5cbb60149dcc05c724ad7ce47c3a4340a7c 100644 (file)
@@ -385,6 +385,20 @@ multilib_env() {
                        : ${MULTILIB_ABIS=ppc64 ppc}
                        : ${DEFAULT_ABI=ppc64}
                ;;
+               riscv64*)
+                       export CFLAGS_lp64d=${CFLAGS_lp64d--mabi=lp64d}
+                       export CHOST_lp64d=${CTARGET}
+                       export CTARGET_lp64d=${CTARGET}
+                       export LIBDIR_lp64d="lib64/lp64d"
+
+                       export CFLAGS_lp64=${CFLAGS_lp64--mabi=lp64}
+                       export CHOST_lp64=${CTARGET}
+                       export CTARGET_lp64=${CTARGET}
+                       export LIBDIR_lp64="lib64/lp64"
+
+                       : ${MULTILIB_ABIS=lp64d lp64}
+                       : ${DEFAULT_ABI=lp64d}
+               ;;
                s390x*)
                        export CFLAGS_s390=${CFLAGS_s390--m31} # the 31 is not a typo
                        export CHOST_s390=${CTARGET/s390x/s390}