Add support for loongarch64
Based on upstream commit 7a014dae736f9c7a7c75f63deaa4dbbb9ae0249c by Zhang Wenlong <zhangwenlong@loongson.cn>.
This commit is contained in:
parent
402b4e7832
commit
b429760f9c
@ -129,6 +129,10 @@ for SUBST in $SUBSTS ; do
|
||||
LIBSUFF=64
|
||||
POINTER_SIZE=64
|
||||
;;
|
||||
loongarch64-linux)
|
||||
LIBSUFF=64
|
||||
POINTER_SIZE=64
|
||||
;;
|
||||
s390x-linux)
|
||||
LIBSUFF=64
|
||||
POINTER_SIZE=64
|
||||
|
@ -835,6 +835,11 @@
|
||||
# arch macro for all supported MIPS targets
|
||||
%mips %{mips32} %{mipsn32} %{mips64}
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# arch macro for 64-bit LOONGARCH processors
|
||||
%loongarch64 loongarch64
|
||||
|
||||
|
||||
#------------------------------------------------------------------------
|
||||
# Use in %install to generate locale specific file lists. For example,
|
||||
#
|
||||
|
9
rpmrc.in
9
rpmrc.in
@ -89,6 +89,7 @@ optflags: armh %optflags_default -fomit-frame-pointer -march=armv7-a -mthumb
|
||||
optflags: armv8l %optflags_default -fomit-frame-pointer -march=armv8-a -mthumb
|
||||
optflags: aarch64 %optflags_default
|
||||
optflags: riscv64 %optflags_default
|
||||
optflags: loongarch64 %optflags_default
|
||||
|
||||
optflags: atarist %optflags_default -fomit-frame-pointer
|
||||
optflags: atariste %optflags_default -fomit-frame-pointer
|
||||
@ -197,6 +198,10 @@ arch_canon: e2k8c2: e2k8c2 23
|
||||
arch_canon: e2k12c: e2k16c 23
|
||||
arch_canon: e2k2c3: e2k2c3 23
|
||||
|
||||
# XXX: Upstream sets this to 23, but we have e2k:
|
||||
arch_canon: loongarch64: loongarch64 24
|
||||
|
||||
|
||||
#############################################################
|
||||
# Canonical OS names and numbers
|
||||
|
||||
@ -390,6 +395,8 @@ arch_compat: aarch64: noarch
|
||||
|
||||
arch_compat: riscv64: noarch
|
||||
|
||||
arch_compat: loongarch64: noarch
|
||||
|
||||
os_compat: IRIX64: IRIX
|
||||
os_compat: solaris2.7: solaris2.3 solaris2.4 solaris2.5 solaris2.6
|
||||
os_compat: solaris2.6: solaris2.3 solaris2.4 solaris2.5
|
||||
@ -516,6 +523,8 @@ buildarch_compat: s390x: noarch
|
||||
|
||||
buildarch_compat: riscv64: noarch
|
||||
|
||||
buildarch_compat: loongarch64: noarch
|
||||
|
||||
macrofiles: @RPMCONFIGDIR@/buildmacros:@RPMCONFIGDIR@/%{_target}/macros:@RPMCONFIGDIR@/macros.d/*:@SYSCONFIGDIR@/macros.specspo:@SYSCONFIGDIR@/macros.cdb:@SYSCONFIGDIR@/macros:@SYSCONFIGDIR@/%{_target}/macros:@SYSCONFIGDIR@/macros.d/*:~/.rpmmacros
|
||||
|
||||
# \endverbatim
|
||||
|
Loading…
Reference in New Issue
Block a user