Skip to content

Commit

Permalink
toolchain-funcs.eclass: add detection for loongarch
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Sam James <[email protected]>
  • Loading branch information
xen0n authored and thesamesam committed Dec 14, 2021
1 parent 81d67b7 commit 1010cde
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions eclass/toolchain-funcs.eclass
Original file line number Diff line number Diff line change
Expand Up @@ -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;;
Expand Down Expand Up @@ -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;;
Expand Down

0 comments on commit 1010cde

Please sign in to comment.