diff options
author | WANG Xuerui <xen0n@gentoo.org> | 2021-08-09 21:22:30 +0800 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-04-24 17:29:56 +0100 |
commit | 7bd38b79de36573ba1f19e9754fb78072993c387 (patch) | |
tree | 3a9bef6bcce7abd8bf5799527a5cf8fbc5144a4d /crossdev | |
parent | crossdev: add quotes to set_keywords variable (diff) | |
download | crossdev-7bd38b79de36573ba1f19e9754fb78072993c387.tar.gz crossdev-7bd38b79de36573ba1f19e9754fb78072993c387.tar.bz2 crossdev-7bd38b79de36573ba1f19e9754fb78072993c387.zip |
crossdev: Add support for LoongArch (ARCH=loong)20220424
Closes: https://bugs.gentoo.org/840431
Closes: https://github.com/gentoo/crossdev/pull/2
Signed-off-by: WANG Xuerui <xen0n@gentoo.org>
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'crossdev')
-rwxr-xr-x | crossdev | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -136,6 +136,7 @@ parse_target() { - hppa (parisc) - ia64 - i386 / i486 / i586 / i686 (x86) + - loongarch64 - m68k - mips / mipsel / mips64 / mips64el - or1k @@ -208,7 +209,7 @@ parse_target() { CTARGET="${CTARGET}-unknown-linux-gnueabihf";; arm*) CTARGET="${CTARGET}-unknown-linux-gnueabi";; - aarch64*|alpha*|cris*|hppa*|ia64*|m68*|mips*|powerpc*|riscv*|sparc*|sh*|tile*) + aarch64*|alpha*|cris*|hppa*|ia64*|loongarch*|m68*|mips*|powerpc*|riscv*|sparc*|sh*|tile*) CTARGET="${CTARGET}-unknown-linux-gnu";; bfin*|h8300*|msp430*|nds32*|nios2*|spu*|xc16x*) CTARGET="${CTARGET}-elf";; @@ -223,6 +224,7 @@ parse_target() { hppa*) TARCH=hppa;; ia64*) TARCH=ia64;; i?86*) TARCH=x86;; + loongarch*) TARCH=loong;; m68*) TARCH=m68k;; mips*) TARCH=mips;; powerpc64*) TARCH=ppc64;; @@ -264,6 +266,13 @@ parse_target() { WITH_DEF_HEADERS="yes" ;; + loongarch*) + # have to bring in the experimental LoongArch patchset before + # everything is upstream + KUSE+=" experimental-loong" + LUSE+=" experimental-loong" + ;; + # added in bug #609602 mmix*) KPKG="[none]" |