diff options
author | Andreas K. Hüttel <dilfridge@gentoo.org> | 2019-05-29 00:57:21 +0200 |
---|---|---|
committer | Andreas K. Hüttel <dilfridge@gentoo.org> | 2019-05-29 00:57:55 +0200 |
commit | 7029bfc24ddf8702d76d2aa88d39790b15c47961 (patch) | |
tree | 79eab285ae11e944b60a039e46465aecdd48ece0 /eclass | |
parent | media-gfx/argyllcms: support libressl builds (diff) | |
download | gentoo-7029bfc24ddf8702d76d2aa88d39790b15c47961.tar.gz gentoo-7029bfc24ddf8702d76d2aa88d39790b15c47961.tar.bz2 gentoo-7029bfc24ddf8702d76d2aa88d39790b15c47961.zip |
toolchain.eclass: add riscv compiler abi configuration
Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/toolchain.eclass | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index cf6a95337219..3d997fb65819 100644 --- a/eclass/toolchain.eclass +++ b/eclass/toolchain.eclass @@ -1213,6 +1213,10 @@ toolchain_src_configure() { is-flagq -mfloat-gprs=double && confgcc+=( --enable-e500-double ) [[ ${CTARGET//_/-} == *-e500v2-* ]] && confgcc+=( --enable-e500-double ) ;; + riscv) + # Add --with-abi flags to set default ABI + confgcc+=( --with-abi=$(gcc-abi-map ${TARGET_DEFAULT_ABI}) ) + ;; esac # if the target can do biarch (-m32/-m64), enable it. overhead should @@ -1640,6 +1644,7 @@ gcc-abi-map() { local map=() case ${CTARGET} in mips*) map=("o32 32" "n32 n32" "n64 64") ;; + riscv*) map=("lp64d lp64d" "lp64 lp64") ;; x86_64*) map=("amd64 m64" "x86 m32" "x32 mx32") ;; esac |