mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-21 10:37:22 -08:00
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>
This commit is contained in:
@@ -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;;
|
||||
|
||||
Reference in New Issue
Block a user