Skip to content

Commit cb39c41

Browse files
Merge branch 'openwrt:main' into wax206
2 parents 9b48cdb + d97e529 commit cb39c41

57 files changed

Lines changed: 1868 additions & 1517 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
From a63456b9191fae2fe49f4b121e025792022e3950 Mon Sep 17 00:00:00 2001
2+
From: Markus Volk <f_l_k@t-online.de>
3+
Date: Wed, 30 Oct 2024 06:07:16 +0100
4+
Subject: [PATCH] scripts/dtc/pylibfdt/libfdt.i_shipped: Use SWIG_AppendOutput
5+
MIME-Version: 1.0
6+
Content-Type: text/plain; charset=UTF-8
7+
Content-Transfer-Encoding: 8bit
8+
9+
Swig has changed language specific AppendOutput functions. The helper
10+
macro SWIG_AppendOutput remains unchanged. Use that instead
11+
of SWIG_Python_AppendOutput, which would require an extra parameter
12+
since 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+
20+
Signed-off-by: Markus Volk <f_l_k@t-online.de>
21+
Reported-by: Rudi Heitbaum <rudi@heitbaum.com>
22+
Link: https://github.com/dgibson/dtc/pull/154
23+
---
24+
scripts/dtc/pylibfdt/libfdt.i_shipped | 6 +++---
25+
1 file changed, 3 insertions(+), 3 deletions(-)
26+
27+
diff --git a/scripts/dtc/pylibfdt/libfdt.i_shipped b/scripts/dtc/pylibfdt/libfdt.i_shipped
28+
index 56cc5d48f4f9..e4659489a96a 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+

package/boot/uboot-mediatek/Makefile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,18 @@ define U-Boot/mt7981_cmcc_rax3000m-nand-ddr4
291291
DEPENDS:=+trusted-firmware-a-mt7981-spim-nand-ddr4
292292
endef
293293

294+
define U-Boot/mt7981_comfast_cf-wr632ax
295+
NAME:=COMFAST CF-WR632AX
296+
BUILD_SUBTARGET:=filogic
297+
BUILD_DEVICES:=comfast_cf-wr632ax-ubootmod
298+
UBOOT_CONFIG:=mt7981_comfast_cf-wr632ax
299+
UBOOT_IMAGE:=u-boot.fip
300+
BL2_BOOTDEV:=spim-nand
301+
BL2_SOC:=mt7981
302+
BL2_DDRTYPE:=ddr3
303+
DEPENDS:=+trusted-firmware-a-mt7981-spim-nand-ddr3
304+
endef
305+
294306
define U-Boot/mt7981_cudy_tr3000-v1
295307
NAME:=Cudy TR3000 v1
296308
BUILD_SUBTARGET:=filogic
@@ -1053,6 +1065,7 @@ UBOOT_TARGETS := \
10531065
mt7981_cmcc_rax3000m-emmc-ddr4 \
10541066
mt7981_cmcc_rax3000m-nand-ddr3 \
10551067
mt7981_cmcc_rax3000m-nand-ddr4 \
1068+
mt7981_comfast_cf-wr632ax \
10561069
mt7981_cudy_tr3000-v1 \
10571070
mt7981_gatonetworks_gdsp \
10581071
mt7981_glinet_gl-mt2500 \

0 commit comments

Comments
 (0)