[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gentoo-dev
Subject:    [gentoo-dev] [PATCH] toolchain-funcs.eclass: add detection for loongarch
From:       WANG Xuerui <i.gentoo () xen0n ! name>
Date:       2021-08-30 3:25:25
Message-ID: 20210830032525.2636781-1-i.gentoo () xen0n ! name
[Download RAW message or body]

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/LoongAr \
ch-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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic