perl: add support for loongarch64

Config parameters grabbed from standard libraries and existing Perl
build tree. Tested good on both glibc and musl with simple scripts.

Signed-off-by: Xinhui Yang <cyan@cyano.uk>
This commit is contained in:
Xinhui Yang authored and Daniel Golle committed 2026-09-22 18:28:26 +01:00
1 parent 4faf9d37e9
commit 9f462c360f
2 files changed
+22 -1

No files matched your search

+1 -1
View File
@@ -11,7 +11,7 @@ include perlver.mk
PKG_NAME:=perl
PKG_VERSION:=$(PERL_VERSION)
PKG_RELEASE:=6
PKG_RELEASE:=7
PKG_SOURCE_URL:=https://www.cpan.org/src/5.0
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+21
View File
@@ -0,0 +1,21 @@
# Architecture definitions
owrt:arch=loongarch64
owrt:bits=64
owrt:endian=little
# Signals, from installed standard headers (asm-generic/signal.h)
owrt:sig_count=64
owrt:sigs='ZERO HUP INT QUIT ILL TRAP ABRT BUS FPE KILL USR1 SEGV USR2 PIPE ALRM TERM STKFLT CHLD CONT STOP TSTP TTIN TTOU URG XCPU XFSZ VTALRM PROF WINCH IO PWR SYS'
owrt:sig_name_extra='IOT CLD POLL UNUSED'
owrt:sig_num_extra='6 17 29 31'
# Took from existing Perl 5.40 build.
d_casti32='define'
d_long_double_style_ieee='define'
d_long_double_style_ieee_std='define'
d_modflproto='define'
doublekind='3'
fpossize='16'
longdblkind='1'
need_va_copy='undef'
quadkind='2'