summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyan Eatmon <reatmon@ti.com>2024-12-06 11:28:09 -0600
committerRyan Eatmon <reatmon@ti.com>2024-12-07 11:43:48 -0600
commit81cac4cbc79716288aa82f8bc4fe5691260ec7ca (patch)
treebdafb7af299fbd21ea2a5c846dc087f9b5ae81f7
parent70c21b00dc9a095dbc11bb40142703a8e9d01209 (diff)
downloadmeta-ti-81cac4cbc79716288aa82f8bc4fe5691260ec7ca.tar.gz
u-boot: Add patch to use SWIG_AppendOutput
Swig has changed language specific AppendOutput functions. The helper macro SWIG_AppendOutput remains unchanged. Use that instead of SWIG_Python_AppendOutput, which would require an extra parameter since swig 4.3.0. This is a port from oe-core: https://git.openembedded.org/openembedded-core/commit/?id=4eae7888e91c7c864bf490dee38716267be6202e Signed-off-by: Ryan Eatmon <reatmon@ti.com>
-rw-r--r--meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti-staging_2023.04.bb2
-rw-r--r--meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti-staging_2024.04.bb2
-rw-r--r--meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti-staging_2024.10.bb2
-rw-r--r--meta-ti-bsp/recipes-bsp/u-boot/u-boot/0001-scripts-dtc-pylibfdt-libfdt.i_shipped-Use-SWIG_Appen.patch59
4 files changed, 65 insertions, 0 deletions
diff --git a/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti-staging_2023.04.bb b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti-staging_2023.04.bb
index 6f974c41..7ef851de 100644
--- a/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti-staging_2023.04.bb
+++ b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti-staging_2023.04.bb
@@ -6,4 +6,6 @@ PR = "r0"
6 6
7BRANCH = "ti-u-boot-2023.04" 7BRANCH = "ti-u-boot-2023.04"
8 8
9SRC_URI += "file://0001-scripts-dtc-pylibfdt-libfdt.i_shipped-Use-SWIG_Appen.patch"
10
9SRCREV = "0853d7725220d59130d8bcc59d01151cba64ffa0" 11SRCREV = "0853d7725220d59130d8bcc59d01151cba64ffa0"
diff --git a/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti-staging_2024.04.bb b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti-staging_2024.04.bb
index c0eec0b6..171d560b 100644
--- a/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti-staging_2024.04.bb
+++ b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti-staging_2024.04.bb
@@ -6,4 +6,6 @@ PR = "r0"
6 6
7BRANCH = "ti-u-boot-2024.04" 7BRANCH = "ti-u-boot-2024.04"
8 8
9SRC_URI += "file://0001-scripts-dtc-pylibfdt-libfdt.i_shipped-Use-SWIG_Appen.patch"
10
9SRCREV = "2a7de06d57399e04738573622cbdaa3532e7ab4d" 11SRCREV = "2a7de06d57399e04738573622cbdaa3532e7ab4d"
diff --git a/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti-staging_2024.10.bb b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti-staging_2024.10.bb
index 46536877..a2e0934c 100644
--- a/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti-staging_2024.10.bb
+++ b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti-staging_2024.10.bb
@@ -8,4 +8,6 @@ PR = "r0"
8 8
9BRANCH = "ti-u-boot-2024.10" 9BRANCH = "ti-u-boot-2024.10"
10 10
11SRC_URI += "file://0001-scripts-dtc-pylibfdt-libfdt.i_shipped-Use-SWIG_Appen.patch"
12
11SRCREV = "f919c3a889f0ec7d63a48b5d0ed064386b0980bd" 13SRCREV = "f919c3a889f0ec7d63a48b5d0ed064386b0980bd"
diff --git a/meta-ti-bsp/recipes-bsp/u-boot/u-boot/0001-scripts-dtc-pylibfdt-libfdt.i_shipped-Use-SWIG_Appen.patch b/meta-ti-bsp/recipes-bsp/u-boot/u-boot/0001-scripts-dtc-pylibfdt-libfdt.i_shipped-Use-SWIG_Appen.patch
new file mode 100644
index 00000000..b6b90fcc
--- /dev/null
+++ b/meta-ti-bsp/recipes-bsp/u-boot/u-boot/0001-scripts-dtc-pylibfdt-libfdt.i_shipped-Use-SWIG_Appen.patch
@@ -0,0 +1,59 @@
1From e093607e9a08e9c29b7bbaa6aeb137036db798a6 Mon Sep 17 00:00:00 2001
2From: Markus Volk <f_l_k@t-online.de>
3Date: Wed, 30 Oct 2024 05:46:00 +0100
4Subject: [PATCH] scripts/dtc/pylibfdt/libfdt.i_shipped: Use SWIG_AppendOutput
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9Swig has changed language specific AppendOutput functions. The helper
10macro SWIG_AppendOutput remains unchanged. Use that instead
11of SWIG_Python_AppendOutput, which would require an extra parameter
12since swig 4.3.0.
13
14/home/flk/poky/build-test/tmp/work/qemux86_64-poky-linux/u-boot/2024.10/git/arch/x86/cpu/u-boot-64.lds
15| scripts/dtc/pylibfdt/libfdt_wrap.c: In function ‘_wrap_fdt_next_node’:
16| scripts/dtc/pylibfdt/libfdt_wrap.c:5581:17: error: too few arguments to function ‘SWIG_Python_AppendOutput’
17| 5581 | resultobj = SWIG_Python_AppendOutput(resultobj, val);
18| | ^~~~~~~~~~~~~~~~~~~~~~~~
19
20Upstream-Status: Backport [https://github.com/u-boot/u-boot/commit/a63456b9191fae2fe49f4b121e025792022e3950]
21
22Signed-off-by: Markus Volk <f_l_k@t-online.de>
23---
24 scripts/dtc/pylibfdt/libfdt.i_shipped | 6 +++---
25 1 file changed, 3 insertions(+), 3 deletions(-)
26
27diff --git a/scripts/dtc/pylibfdt/libfdt.i_shipped b/scripts/dtc/pylibfdt/libfdt.i_shipped
28index 56cc5d48f4..e4659489a9 100644
29--- a/scripts/dtc/pylibfdt/libfdt.i_shipped
30+++ b/scripts/dtc/pylibfdt/libfdt.i_shipped
31@@ -1037,7 +1037,7 @@ typedef uint32_t fdt32_t;
32 fdt_string(fdt1, fdt32_to_cpu($1->nameoff)));
33 buff = PyByteArray_FromStringAndSize(
34 (const char *)($1 + 1), fdt32_to_cpu($1->len));
35- resultobj = SWIG_Python_AppendOutput(resultobj, buff);
36+ resultobj = SWIG_AppendOutput(resultobj, buff);
37 }
38 }
39
40@@ -1076,7 +1076,7 @@ typedef uint32_t fdt32_t;
41
42 %typemap(argout) int *depth {
43 PyObject *val = Py_BuildValue("i", *arg$argnum);
44- resultobj = SWIG_Python_AppendOutput(resultobj, val);
45+ resultobj = SWIG_AppendOutput(resultobj, val);
46 }
47
48 %apply int *depth { int *depth };
49@@ -1092,7 +1092,7 @@ typedef uint32_t fdt32_t;
50 if (PyTuple_GET_SIZE(resultobj) == 0)
51 resultobj = val;
52 else
53- resultobj = SWIG_Python_AppendOutput(resultobj, val);
54+ resultobj = SWIG_AppendOutput(resultobj, val);
55 }
56 }
57
58--
592.47.0