public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] [PATCH] toolchain-funcs.eclass: add detection for loongarch
@ 2021-08-30  3:25 WANG Xuerui
  2021-12-14  3:36 ` Sam James
  0 siblings, 1 reply; 2+ messages in thread
From: WANG Xuerui @ 2021-08-30  3:25 UTC (permalink / raw)
  To: gentoo-dev; +Cc: WANG Xuerui

From: WANG Xuerui <git@xen0n.name>

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>
---
 eclass/toolchain-funcs.eclass | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/eclass/toolchain-funcs.eclass b/eclass/toolchain-funcs.eclass
index 563d9deef40..77fb304940b 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;;
-- 
2.33.0



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [gentoo-dev] [PATCH] toolchain-funcs.eclass: add detection for loongarch
  2021-08-30  3:25 [gentoo-dev] [PATCH] toolchain-funcs.eclass: add detection for loongarch WANG Xuerui
@ 2021-12-14  3:36 ` Sam James
  0 siblings, 0 replies; 2+ messages in thread
From: Sam James @ 2021-12-14  3:36 UTC (permalink / raw)
  To: gentoo-dev; +Cc: WANG Xuerui

[-- Attachment #1: Type: text/plain, Size: 952 bytes --]



> On 30 Aug 2021, at 04:25, WANG Xuerui <i.gentoo@xen0n.name> wrote:
> 
> From: WANG Xuerui <git@xen0n.name>
> 
> 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>
> ---
> eclass/toolchain-funcs.eclass | 2 ++
> 1 file changed, 2 insertions(+)
> 

Merged.


[-- Attachment #2: Message signed with OpenPGP --]
[-- Type: application/pgp-signature, Size: 618 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-12-14  3:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-30  3:25 [gentoo-dev] [PATCH] toolchain-funcs.eclass: add detection for loongarch WANG Xuerui
2021-12-14  3:36 ` Sam James

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox