[Bugfix][T106][bug-view-231]fix python3 -c "import time" ERROR

Only Configure: Yes
Affected branch: master
Affected module: systime
Is it affected on both ZXIC and MTK: only ZXIC
Self-test: yes
Doc Update: No

Change-Id: I6b63f6a1239f0d38113b7f88285674e0a7deae1a
diff --git a/cap/zx297520v3/sources/meta-zxic/recipes-devtools/python/python3/0001-zxic-y2038-time_t.patch b/cap/zx297520v3/sources/meta-zxic/recipes-devtools/python/python3/0001-zxic-y2038-time_t.patch
new file mode 100644
index 0000000..6740344
--- /dev/null
+++ b/cap/zx297520v3/sources/meta-zxic/recipes-devtools/python/python3/0001-zxic-y2038-time_t.patch
@@ -0,0 +1,35 @@
+From 0a7fc505937e81c1ff9ce19f4a0084d4f7040cf3 Mon Sep 17 00:00:00 2001
+From: =?utf-8?q?=E5=91=A8=E5=9B=BD=E5=9D=A10318000136?=
+ <zhou.guopo@sanechips.com.cn>
+Date: Mon, 9 Sep 2024 16:02:36 +0800
+Subject: [PATCH] zxic y2038 time_t
+
+---
+ Modules/timemodule.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/Modules/timemodule.c b/Modules/timemodule.c
+index 096911d..b34bf54 100644
+--- a/Modules/timemodule.c
++++ b/Modules/timemodule.c
+@@ -1556,7 +1556,7 @@ get_zone(char *zone, int n, struct tm *p)
+ #endif
+ }
+ 
+-static time_t
++static long
+ get_gmtoff(time_t t, struct tm *p)
+ {
+ #ifdef HAVE_STRUCT_TM_TM_ZONE
+@@ -1630,7 +1630,7 @@ init_timezone(PyObject *m)
+     static const time_t YEAR = (365 * 24 + 6) * 3600;
+     time_t t;
+     struct tm p;
+-    time_t janzone_t, julyzone_t;
++    long janzone_t, julyzone_t;
+     char janname[10], julyname[10];
+     t = (time((time_t *)0) / YEAR) * YEAR;
+     _PyTime_localtime(t, &p);
+-- 
+2.17.1
+
diff --git a/cap/zx297520v3/sources/meta-zxic/recipes-devtools/python/python3_3.8.%.bbappend b/cap/zx297520v3/sources/meta-zxic/recipes-devtools/python/python3_3.8.%.bbappend
new file mode 100644
index 0000000..8c97d91
--- /dev/null
+++ b/cap/zx297520v3/sources/meta-zxic/recipes-devtools/python/python3_3.8.%.bbappend
@@ -0,0 +1,5 @@
+
+FILESEXTRAPATHS_prepend := "${THISDIR}/python3:"
+
+SRC_URI += "file://0001-zxic-y2038-time_t.patch"
+