commit: 1010cde56c21432c19c2dd5fa2a901e6fe82329d Author: WANG Xuerui <git <AT> xen0n <DOT> name> AuthorDate: Mon Aug 30 03:25:25 2021 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Tue Dec 14 03:35:54 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1010cde5
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 <AT> xen0n.name> Signed-off-by: Sam James <sam <AT> gentoo.org> eclass/toolchain-funcs.eclass | 2 ++ 1 file changed, 2 insertions(+) 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;;
