summaryrefslogtreecommitdiffstats
path: root/meta-python
diff options
context:
space:
mode:
authorWang Mingyu <wangmy@fujitsu.com>2025-04-22 16:49:08 +0800
committerKhem Raj <raj.khem@gmail.com>2025-04-23 19:35:05 -0700
commit27af2f84bfb3a58ab622905447f0cdd09c0acfd1 (patch)
treeaa2e351c88c4ce309f0804d309e4d502585e8ff5 /meta-python
parentce4d60b466fbd9a5a60c7b0e90081f837af30197 (diff)
downloadmeta-openembedded-27af2f84bfb3a58ab622905447f0cdd09c0acfd1.tar.gz
python3-greenlet: upgrade 3.1.1 -> 3.2.0
0001-slp_switch-Implement-for-RISCV32.patch removed since it's included in 3.2.0 Changelog: ============ - Remove support for Python 3.7 and 3.8. - Add untested, community supported implementation for RiscV 32. - Make greenlet build and run on Python 3.14a7. It will not build on earlier 3.14 alpha releases, and may not build on later 3.14 releases. - Packaging: Use PEP 639 license expressions and include license files. Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python')
-rw-r--r--meta-python/recipes-devtools/python/python3-greenlet/0001-slp_switch-Implement-for-RISCV32.patch48
-rw-r--r--meta-python/recipes-devtools/python/python3-greenlet_3.2.0.bb (renamed from meta-python/recipes-devtools/python/python3-greenlet_3.1.1.bb)4
2 files changed, 1 insertions, 51 deletions
diff --git a/meta-python/recipes-devtools/python/python3-greenlet/0001-slp_switch-Implement-for-RISCV32.patch b/meta-python/recipes-devtools/python/python3-greenlet/0001-slp_switch-Implement-for-RISCV32.patch
deleted file mode 100644
index 83877d3860..0000000000
--- a/meta-python/recipes-devtools/python/python3-greenlet/0001-slp_switch-Implement-for-RISCV32.patch
+++ /dev/null
@@ -1,48 +0,0 @@
1From 524fd7244cfec4ec6760e52001c9a41d1913066e Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sun, 6 Apr 2025 20:54:08 -0700
4Subject: [PATCH] slp_switch: Implement for RISCV32
5
6Changed data types from long to int for fp variable
7stackref pointer and stsizediff variable
8
9Changed the load instruction from ld (64-bit load) to lw (32-bit load)
10
11Upstream-Status: Submitted [https://github.com/python-greenlet/greenlet/pull/439]
12Signed-off-by: Khem Raj <raj.khem@gmail.com>
13---
14 src/greenlet/platform/switch_riscv_unix.h | 11 ++++++++++-
15 1 file changed, 10 insertions(+), 1 deletion(-)
16
17diff --git a/src/greenlet/platform/switch_riscv_unix.h b/src/greenlet/platform/switch_riscv_unix.h
18index e74f37a..32ca78c 100644
19--- a/src/greenlet/platform/switch_riscv_unix.h
20+++ b/src/greenlet/platform/switch_riscv_unix.h
21@@ -11,9 +11,14 @@
22 static int
23 slp_switch(void)
24 {
25- long fp;
26 int ret;
27+#if __riscv_xlen == 32
28+ long fp;
29 long *stackref, stsizediff;
30+#else
31+ int fp;
32+ int *stackref, stsizediff;
33+#endif
34 __asm__ volatile ("" : : : REGS_TO_SAVE);
35 __asm__ volatile ("mv %0, fp" : "=r" (fp) : );
36 __asm__ volatile ("mv %0, sp" : "=r" (stackref) : );
37@@ -28,7 +33,11 @@ slp_switch(void)
38 SLP_RESTORE_STATE();
39 }
40 __asm__ volatile ("" : : : REGS_TO_SAVE);
41+#if __riscv_xlen == 32
42+ __asm__ volatile ("lw fp, %0" : : "m" (fp));
43+#else
44 __asm__ volatile ("ld fp, %0" : : "m" (fp));
45+#endif
46 __asm__ volatile ("mv %0, zero" : "=r" (ret) : );
47 return ret;
48 }
diff --git a/meta-python/recipes-devtools/python/python3-greenlet_3.1.1.bb b/meta-python/recipes-devtools/python/python3-greenlet_3.2.0.bb
index b45edac12d..e0b8008d43 100644
--- a/meta-python/recipes-devtools/python/python3-greenlet_3.1.1.bb
+++ b/meta-python/recipes-devtools/python/python3-greenlet_3.2.0.bb
@@ -4,10 +4,8 @@ LICENSE = "MIT & PSF-2.0"
4LIC_FILES_CHKSUM = "file://LICENSE;md5=e95668d68e4329085c7ab3535e6a7aee \ 4LIC_FILES_CHKSUM = "file://LICENSE;md5=e95668d68e4329085c7ab3535e6a7aee \
5 file://LICENSE.PSF;md5=c106931d9429eda0492617f037b8f69a" 5 file://LICENSE.PSF;md5=c106931d9429eda0492617f037b8f69a"
6 6
7SRC_URI[sha256sum] = "4ce3ac6cdb6adf7946475d7ef31777c26d94bccc377e070a7986bd2d5c515467" 7SRC_URI[sha256sum] = "1d2d43bd711a43db8d9b9187500e6432ddb4fafe112d082ffabca8660a9e01a7"
8 8
9inherit pypi python_setuptools_build_meta 9inherit pypi python_setuptools_build_meta
10 10
11SRC_URI += "file://0001-slp_switch-Implement-for-RISCV32.patch"
12
13BBCLASSEXTEND = "native nativesdk" 11BBCLASSEXTEND = "native nativesdk"