Control: tags 1069797 + patch
Control: tags 1069797 + pending
Dear maintainer,

I've prepared an NMU for openmsx (versioned as 19.1+dfsg-1.1) and
uploaded it.
diff -Nru openmsx-19.1+dfsg/debian/changelog openmsx-19.1+dfsg/debian/changelog
--- openmsx-19.1+dfsg/debian/changelog	2023-12-10 19:47:57.000000000 +0100
+++ openmsx-19.1+dfsg/debian/changelog	2025-03-07 13:39:47.000000000 +0100
@@ -1,3 +1,12 @@
+openmsx (19.1+dfsg-1.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  [ wuruilong <wuruil...@loongson.cn> ]
+  [ zhangdandan <zhangdan...@loongson.cn> ]
+  * Cherry-pick upstream patch to support loongarch64 (Closes: #1069797)
+
+ -- Gianfranco Costamagna <locutusofb...@debian.org>  Fri, 07 Mar 2025 13:39:47 +0100
+
 openmsx (19.1+dfsg-1) unstable; urgency=medium
 
   [ Aaron Rainbolt ]
diff -Nru openmsx-19.1+dfsg/debian/patches/loongarch64.patch openmsx-19.1+dfsg/debian/patches/loongarch64.patch
--- openmsx-19.1+dfsg/debian/patches/loongarch64.patch	1970-01-01 01:00:00.000000000 +0100
+++ openmsx-19.1+dfsg/debian/patches/loongarch64.patch	2025-03-07 13:39:44.000000000 +0100
@@ -0,0 +1,40 @@
+Forwarded: https://github.com/openMSX/openMSX/commit/d77fe49007a72594b273cd6077537de6e6d77118
+From d77fe49007a72594b273cd6077537de6e6d77118 Mon Sep 17 00:00:00 2001
+From: Meng Sang <sangm...@loongson.cn>
+Date: Wed, 13 Sep 2023 08:47:56 +0000
+Subject: [PATCH] Add support for loongarch
+
+---
+ build/cpu.py       | 5 +++++
+ build/detectsys.py | 2 ++
+ 2 files changed, 7 insertions(+)
+
+diff --git a/build/cpu.py b/build/cpu.py
+index b3a2e46d7b..c5fe5f1ca6 100644
+--- a/build/cpu.py
++++ b/build/cpu.py
+@@ -43,6 +43,11 @@ class IA64(CPU):
+ 	'''
+ 	name = 'ia64'
+ 
++class LoongArch64(CPU):
++	'''64-bit LoongArch.
++	'''
++	name = 'loongarch64'
++
+ class M68k(CPU):
+ 	'''Motorola 680x0.
+ 	'''
+diff --git a/build/detectsys.py b/build/detectsys.py
+index 4d4d5d3f36..c1b92c5e1f 100644
+--- a/build/detectsys.py
++++ b/build/detectsys.py
+@@ -55,6 +55,8 @@ def detectCPU():
+ 		return 'avr32'
+ 	elif cpu == 'riscv64':
+ 		return 'riscv64'
++	elif cpu == 'loongarch64':
++		return 'loongarch64'
+ 	elif cpu == '':
+ 		# Python couldn't figure it out.
+ 		os = system().lower()
diff -Nru openmsx-19.1+dfsg/debian/patches/series openmsx-19.1+dfsg/debian/patches/series
--- openmsx-19.1+dfsg/debian/patches/series	2023-12-10 19:14:12.000000000 +0100
+++ openmsx-19.1+dfsg/debian/patches/series	2025-03-07 13:39:31.000000000 +0100
@@ -3,3 +3,4 @@
 no-mips-optimization.patch
 use-packaged-font.diff
 dmk-build-rules.diff
+loongarch64.patch

Reply via email to