summaryrefslogtreecommitdiffstats
path: root/meta/recipes-bsp/u-boot
diff options
context:
space:
mode:
authorMarkus Volk <f_l_k@t-online.de>2024-10-30 06:24:38 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-11-01 12:58:19 +0000
commitb30351ca09e0aad9e9ee9bcc2651dbf0c12da73a (patch)
treeb087c3c0ca2af45f57f2bd942711dd8f5eb8a5ee /meta/recipes-bsp/u-boot
parentb67dce7ed011eebabc81eca7a6be5a5afc924cfb (diff)
downloadpoky-b30351ca09e0aad9e9ee9bcc2651dbf0c12da73a.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. (From OE-Core rev: 4eae7888e91c7c864bf490dee38716267be6202e) Signed-off-by: Markus Volk <f_l_k@t-online.de> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-bsp/u-boot')
-rw-r--r--meta/recipes-bsp/u-boot/files/0001-scripts-dtc-pylibfdt-libfdt.i_shipped-Use-SWIG_Appen.patch60
-rw-r--r--meta/recipes-bsp/u-boot/u-boot-common.inc1
2 files changed, 61 insertions, 0 deletions
diff --git a/meta/recipes-bsp/u-boot/files/0001-scripts-dtc-pylibfdt-libfdt.i_shipped-Use-SWIG_Appen.patch b/meta/recipes-bsp/u-boot/files/0001-scripts-dtc-pylibfdt-libfdt.i_shipped-Use-SWIG_Appen.patch
new file mode 100644
index 0000000000..9cd2cee902
--- /dev/null
+++ b/meta/recipes-bsp/u-boot/files/0001-scripts-dtc-pylibfdt-libfdt.i_shipped-Use-SWIG_Appen.patch
@@ -0,0 +1,60 @@
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: Submitted
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
60
diff --git a/meta/recipes-bsp/u-boot/u-boot-common.inc b/meta/recipes-bsp/u-boot/u-boot-common.inc
index 113f215cf6..fe3afb33b5 100644
--- a/meta/recipes-bsp/u-boot/u-boot-common.inc
+++ b/meta/recipes-bsp/u-boot/u-boot-common.inc
@@ -15,6 +15,7 @@ PE = "1"
15SRCREV = "f919c3a889f0ec7d63a48b5d0ed064386b0980bd" 15SRCREV = "f919c3a889f0ec7d63a48b5d0ed064386b0980bd"
16 16
17SRC_URI = "git://source.denx.de/u-boot/u-boot.git;protocol=https;branch=master" 17SRC_URI = "git://source.denx.de/u-boot/u-boot.git;protocol=https;branch=master"
18SRC_URI += "file://0001-scripts-dtc-pylibfdt-libfdt.i_shipped-Use-SWIG_Appen.patch"
18 19
19S = "${WORKDIR}/git" 20S = "${WORKDIR}/git"
20B = "${WORKDIR}/build" 21B = "${WORKDIR}/build"