diff options
author | WANG Xuerui <git@xen0n.name> | 2021-08-30 11:25:25 +0800 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-12-14 03:35:54 +0000 |
commit | 1010cde56c21432c19c2dd5fa2a901e6fe82329d (patch) | |
tree | a93cbd2f4fdd63ac64f03220616bff504b7fe28a | |
parent | sci-libs/dealii: use < (upper bound) dep on Boost (diff) | |
download | gentoo-1010cde56c21432c19c2dd5fa2a901e6fe82329d.tar.gz gentoo-1010cde56c21432c19c2dd5fa2a901e6fe82329d.tar.bz2 gentoo-1010cde56c21432c19c2dd5fa2a901e6fe82329d.zip |
toolchain-funcs.eclass: add detection for loongarch
The Linux port currently under review has arch/loongarch, and should
almost certainly remain that way till merge; meanwhile it's ARCH=loong
on the Gentoo side, per mailing list discussion[1] and eselect
adaptation[2]. This architecture is little-endian-only according to the
manual[3].
[1]: https://archives.gentoo.org/gentoo-dev/message/388a4b7428461660e89c8eae8c292f32
[2]: https://gitweb.gentoo.org/proj/eselect.git/commit/?id=a49477f39d3f000cc2ca57f18aafbd66656aba05
[3]: https://github.com/loongson/LoongArch-Documentation/blob/2021.08.17/docs/LoongArch-Vol1-EN/basic-integer-instructions/programming-model-of-basic-integer-instructions/endian.adoc
Signed-off-by: WANG Xuerui <git@xen0n.name>
Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r-- | eclass/toolchain-funcs.eclass | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/eclass/toolchain-funcs.eclass b/eclass/toolchain-funcs.eclass index 563d9deef40b..77fb304940b2 100644 --- a/eclass/toolchain-funcs.eclass +++ b/eclass/toolchain-funcs.eclass @@ -675,6 +675,7 @@ ninj() { [[ ${type} == "kern" ]] && echo $1 || echo $2 ; } fi ;; ia64*) echo ia64;; + loongarch*) ninj loongarch loong;; m68*) echo m68k;; metag*) echo metag;; microblaze*) echo microblaze;; @@ -752,6 +753,7 @@ tc-endian() { hppa*) echo big;; i?86*) echo little;; ia64*) echo little;; + loongarch*) echo little;; m68*) echo big;; mips*l*) echo little;; mips*) echo big;; |