commit:     3f952ff7041e98dc39bcd2f6a77098eeb9afd87e
Author:     Palmer Dabbelt <palmer <AT> dabbelt <DOT> com>
AuthorDate: Mon Mar 18 10:25:58 2019 +0000
Commit:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Mon Mar 18 22:51:24 2019 +0000
URL:        https://gitweb.gentoo.org/proj/crossdev.git/commit/?id=3f952ff7

Add riscv* to the Linux short list

This allows "crossdev -t riscv64" to install a RISC-V cross compiler for
Linux targets.

Signed-off-by: Palmer Dabbelt <palmer <AT> dabbelt.com>

 crossdev | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/crossdev b/crossdev
index d38b0e7..673f5f8 100755
--- a/crossdev
+++ b/crossdev
@@ -125,6 +125,7 @@ parse_target() {
                   - i386 / i486 / i586 / i686 (x86)           - m68k
                   - mips / mipsel / mips64 / mips64el
                   - powerpc (ppc) / powerpc64 (ppc64)
+                  - riscv32 / riscv64
                   - sparc / sparc64                           - s390 / s390x
                   - sh / sh[1-5] / sh64                       - x86_64 (amd64)
                Supported C Libraries:
@@ -193,7 +194,7 @@ parse_target() {
                                CTARGET="${CTARGET}-unknown-linux-gnueabihf";;
                        arm*)
                                CTARGET="${CTARGET}-unknown-linux-gnueabi";;
-                       
aarch64*|alpha*|cris*|hppa*|ia64*|m68*|mips*|powerpc*|sparc*|sh*|tile*)
+                       
aarch64*|alpha*|cris*|hppa*|ia64*|m68*|mips*|powerpc*|riscv*|sparc*|sh*|tile*)
                                CTARGET="${CTARGET}-unknown-linux-gnu";;
                        bfin*|h8300*|msp430*|nds32*|nios2*|spu*|xc16x*)
                                CTARGET="${CTARGET}-elf";;

Reply via email to