public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Andreas K. Hüttel" <dilfridge@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/riscv:master commit in: eclass/
Date: Wed,  2 Sep 2020 19:39:36 +0000 (UTC)	[thread overview]
Message-ID: <1599075446.43b14bae3ba30314759fce98e661b08f615e40a8.dilfridge@gentoo> (raw)

commit:     43b14bae3ba30314759fce98e661b08f615e40a8
Author:     Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
AuthorDate: Wed Sep  2 19:37:26 2020 +0000
Commit:     Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
CommitDate: Wed Sep  2 19:37:26 2020 +0000
URL:        https://gitweb.gentoo.org/proj/riscv.git/commit/?id=43b14bae

multilib.eclass: Add rv32 abi

Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org>

 eclass/multilib.eclass | 30 +++++++++++++++++++++++++++---
 1 file changed, 27 insertions(+), 3 deletions(-)

diff --git a/eclass/multilib.eclass b/eclass/multilib.eclass
index 342d21a..9c7042f 100644
--- a/eclass/multilib.eclass
+++ b/eclass/multilib.eclass
@@ -397,19 +397,43 @@ multilib_env() {
 			: ${DEFAULT_ABI=ppc64}
 		;;
 		riscv64*)
-			export CFLAGS_lp64d=${CFLAGS_lp64d--mabi=lp64d}
+			export CFLAGS_lp64d=${CFLAGS_lp64d--mabi=lp64d -march=rv64imafdc}
 			export CHOST_lp64d=${CTARGET}
 			export CTARGET_lp64d=${CTARGET}
 			export LIBDIR_lp64d="lib64/lp64d"
 
-			export CFLAGS_lp64=${CFLAGS_lp64--mabi=lp64}
+			export CFLAGS_lp64=${CFLAGS_lp64--mabi=lp64 -march=rv64imac}
 			export CHOST_lp64=${CTARGET}
 			export CTARGET_lp64=${CTARGET}
 			export LIBDIR_lp64="lib64/lp64"
 
-			: ${MULTILIB_ABIS=lp64d lp64}
+			export CFLAGS_ilp32d=${CFLAGS_ilp32d--mabi=ilp32d -march=rv32imafdc}
+			export CHOST_ilp32d=${CTARGET/riscv64/riscv32}
+			export CTARGET_ilp32d=${CTARGET/riscv64/riscv32}
+			export LIBDIR_ilp32d="lib32/ilp32d"
+
+			export CFLAGS_ilp32=${CFLAGS_ilp32--mabi=ilp32 -march=rv32imac}
+			export CHOST_ilp32=${CTARGET/riscv64/riscv32}
+			export CTARGET_ilp32=${CTARGET/riscv64/riscv32}
+			export LIBDIR_ilp32="lib32/ilp32"
+
+			: ${MULTILIB_ABIS=lp64d lp64 ilp32d ilp32}
 			: ${DEFAULT_ABI=lp64d}
 		;;
+		riscv32*)
+			export CFLAGS_ilp32d=${CFLAGS_ilp32d--mabi=ilp32d}
+			export CHOST_ilp32d=${CTARGET}
+			export CTARGET_ilp32d=${CTARGET}
+			export LIBDIR_ilp32d="lib32/ilp32d"
+
+			export CFLAGS_ilp32=${CFLAGS_ilp32--mabi=ilp32 -march=rv32imac}
+			export CHOST_ilp32=${CTARGET}
+			export CTARGET_ilp32=${CTARGET}
+			export LIBDIR_ilp32="lib32/ilp32"
+
+			: ${MULTILIB_ABIS=ilp32d ilp32}
+			: ${DEFAULT_ABI=ilp32d}
+		;;
 		s390x*)
 			export CFLAGS_s390=${CFLAGS_s390--m31} # the 31 is not a typo
 			export CHOST_s390=${CTARGET/s390x/s390}


             reply	other threads:[~2020-09-02 19:39 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-02 19:39 Andreas K. Hüttel [this message]
  -- strict thread matches above, loose matches on Subject: below --
2020-09-11 16:14 [gentoo-commits] proj/riscv:master commit in: eclass/ Andreas K. Hüttel
2020-09-05 20:50 Andreas K. Hüttel
2020-09-05 20:50 Andreas K. Hüttel
2020-09-02 19:39 Andreas K. Hüttel
2019-05-03 21:55 Andreas K. Hüttel
2019-04-28 20:56 Andreas K. Hüttel
2019-04-28 20:09 Andreas K. Hüttel
2019-04-28 19:49 Andreas K. Hüttel
2019-04-28 10:24 Andreas K. Hüttel
2019-04-28 10:00 Andreas K. Hüttel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1599075446.43b14bae3ba30314759fce98e661b08f615e40a8.dilfridge@gentoo \
    --to=dilfridge@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox