diff options
author | Andreas K. Hüttel <dilfridge@gentoo.org> | 2019-05-02 00:04:38 +0200 |
---|---|---|
committer | Andreas K. Hüttel <dilfridge@gentoo.org> | 2019-05-03 23:43:56 +0200 |
commit | 351350e234375ffc82872a759d5891867257324a (patch) | |
tree | d159e0ddf721ed40c7408143bf952326eed78f30 /eclass | |
parent | profiles: Add profiles.desc entries for rv64gc multilib and rv64gc/lp64d (diff) | |
download | gentoo-351350e234375ffc82872a759d5891867257324a.tar.gz gentoo-351350e234375ffc82872a759d5891867257324a.tar.bz2 gentoo-351350e234375ffc82872a759d5891867257324a.zip |
multilib.eclass: Add riscv64 definitions
Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/multilib.eclass | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/eclass/multilib.eclass b/eclass/multilib.eclass index 393f0db073c3..63bde5cbb601 100644 --- a/eclass/multilib.eclass +++ b/eclass/multilib.eclass @@ -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} |