From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Tue, 08 Apr 2025 13:36:50 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-pj1-f55.google.com (mail-pj1-f55.google.com [209.85.216.55]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 538Bam3L000622 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 8 Apr 2025 13:36:49 +0200 Received: by mail-pj1-f55.google.com with SMTP id 98e67ed59e1d1-2ff78dd28ecsf6555556a91.1 for ; Tue, 08 Apr 2025 04:36:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1744112202; cv=pass; d=google.com; s=arc-20240605; b=Err8UvWSyUwQxP/8coiEgvR8Uo7jQ7jYlQgNKMud+rAkWwQ2rNEVdq8ZvdlVlsdH0b OWE3FekeVLS33JClU/CMnTqdblci8PlML/Fv6B+A792b/n1Nr6mZE9nFqZFv0A4UvIRg x40ZfYil6ZMZuEgmQBPN5ispwF/hPkvaRPb0ixKtGyNlCIuqoAmdUQFFn0KKlufqzHsR HkPaBddBXZS+wzFZA4wEX+W/o1WeenBtohPo7IC7UaPYlpsxTIueWMOfRfrcZ2enZeXA ITkznogKDcBWUG5CtYto2wxpjnm0YopDoEijRL5QADYLVwhM9UzGe2gPdur2FDnMd8cl 3JJA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :sender:dkim-signature; bh=2yAnseDkvurQ/yqX35neb3sBjoLlUyrCAujfIQ80MUM=; fh=lf7ADzy626tlyLvnxniRgjCQYyf1ZM3YN3oaj5ipiCk=; b=l0aTV9H7k69SPiw2BdYsHErcqSyBccj0keCzt77G005rt+e1Y4xuTNAWjilJwViymM Yw051/9ySxUg4TxDQv3z4QZEcTUYnWpQSqOYrfL3EWQfth6wNe+KDMLLa8NGPQS/gJ/2 e2viYveMNVDvOFhw5PDk3g+Jpn7mTFBPR8mP83C/olliL5jlvxWBJvWI9yHVRJmeoQ6p ff0Mgz7fEMOG/fSvzrjmuSq0IP/QtLbLO5EhVRLzqM1GCm+JkzTHCI8gYpzjkD/tVdHg BJCGIt4WmVasdPBAUQDcMNOoPCeslaP9264IWW1eBDbXHnfb8269tovjVOJSQL+wmgt+ tLsQ==; darn=ilbers.de ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=ubely@ilbers.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1744112202; x=1744717002; darn=ilbers.de; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:content-transfer-encoding:mime-version:references :in-reply-to:message-id:date:subject:to:from:sender:from:to:cc :subject:date:message-id:reply-to; bh=2yAnseDkvurQ/yqX35neb3sBjoLlUyrCAujfIQ80MUM=; b=vcFM8oXdyZV20xMUZu50adc+GpbcosvvCG3EYwIsMb8GuxF9SubgL9mixXPERbo30q HTHUE6BFEgaNAe6mJbWhpMe4t3TeS8D0jSgRmV83y3J3hqLvWVIx8S3eKoxGpsVPkuK+ EGI3QXe14l5PE0wm+yNIssJ4Spjpio7FJyzJmLVfx47MJPvQ1MyuwMKFnXBVRdXhs/0m KMmeOl6YFRrigiLbFXonYixolIL1N5rGtqxXQAeDLr9VokmB1xJ5huGPphYRIWOTldxS 053DXEO/hFIy3EsC/yyVRMPTH2emSDgICc8k5eMa4HqOGTaHGoemNk7uiericW/BqJZr P/iA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1744112202; x=1744717002; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-beenthere:x-gm-message-state :sender:from:to:cc:subject:date:message-id:reply-to; bh=2yAnseDkvurQ/yqX35neb3sBjoLlUyrCAujfIQ80MUM=; b=AY1xUcpLpKTgkbnKKMoYgFQa3BfD2uOCJU8SemJ1hBEZPdbcR3EdKRT/D6D7YGRFBK f0LFlIuVMVAJkYbt9QEYmXJzTSZBaKLTKIIdmnf47hiYfJzKVB9du/XEYI97Psf+5gVR xt8H+xp6HL8lTedJUsqT0/r8XBnb5tnGTdu9LEUUS5hJvvGJncos8iQk+hhhBLDNmshA otu2BEv9Uf5v+JHDV7cg5qrHKZJG0tlIZv+1YJB8TojdW2YEg+VwIb0Wd5jR8YLqekA9 cg8QFUTtDQ5hT11FGvoHPs4548Bn6duYIP2+omRnNJ1e1V1uCuMckp/wk8k3KbVQRHdA dO6g== Sender: isar-users@googlegroups.com X-Forwarded-Encrypted: i=2; AJvYcCUukO4xxx98uinOsFDjL0hhWhrwMWSmcTH2vrw5IHtWRcsO0sG/BxG0cWLoat/FcylfzWxg@ilbers.de X-Gm-Message-State: AOJu0YyjvkdIv46aeNAxh4U356za5bGOZIsJDwyQKUJY2JBPMvFaPbki OTiPO8vHHL/u1sMwkZLRzJzSmC6Qy825KhPfhn2T9M1TgEaD1kM9 X-Google-Smtp-Source: AGHT+IH2eeDzEZtE8vl0PI+MMB9xLR8tWxUMORvCfSO7Uh8KS2jyh/U0Kb/u2OLPPc1ZwfeRP+QYyQ== X-Received: by 2002:a17:90b:50c4:b0:2ff:6a5f:9b39 with SMTP id 98e67ed59e1d1-306a47f2ca5mr26379522a91.18.1744112202272; Tue, 08 Apr 2025 04:36:42 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com; h=ARLLPAIE2DIIUJ2K3PhIFQ91iBtGVAZZ+2V6aGSRvb38GhmQQA== Received: by 2002:a17:902:e741:b0:229:4280:7a0a with SMTP id d9443c01a7336-2297643b4e5ls15297195ad.2.-pod-prod-06-us; Tue, 08 Apr 2025 04:36:40 -0700 (PDT) X-Received: by 2002:a17:902:c94e:b0:224:5a8:ba29 with SMTP id d9443c01a7336-22a8a0b38bdmr190689865ad.43.1744112200334; Tue, 08 Apr 2025 04:36:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1744112200; cv=none; d=google.com; s=arc-20240605; b=kbDqFD+yCjroeWHfX4v1RVQ9h7P0T13vDPoB7OEfRLbDbS50hImgVEroR0mA5fOWIW HE/WmkGCT01KavUOBnj5eKrWld+w8DeoXuBaFXf17t19IL9ZeGp7BT/hU2JPCCOw0Pdd cdBEv+pmyveHo7Xl/cMbcTNfFz+QyE+fAoqceWzaauNXUXHiQsj1HHAa2GlTczIBGsFR tOhh5ncLSQA23uIjquRsXdeBsSXDkA2EdL6P3G4/ATg6Lzgg01FYCwPQus40TW0411Q7 bMZfr0tVu3+5w1IedOHwGY4OUV3PVWooD/ZOOItOdf9B5Tt6bIe7oQZR/8g1C99+aV72 9uuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from; bh=RSbx5JwULgm4qKNdaO4vktvGM0/qdlsVU+mB7mP0ynI=; fh=7tclEdh7YbwSQowgJ6LNq720O7H5HTEaqj22NJWRE2E=; b=SDYr5P5Jx+vZUajS+nbYXMfmX6ZPDM2xew2nBVdtaMqAMn8c8xSHorna+wKu3e+Ibj IIxwxZ7/KXq5Zc2AC7T/9czv4Ynfr9ehKA+jY7X8E2DEFCeB4oqHkQ20i3GzjDOMIDH9 qfgABDjw+KeDgASyPmI6QNbGHhcQZaPos/0j0vmq68KaQpiOeIKzk0tbSF2KUPq/L3D1 +lmzDOCmjL2MvhUz5JQXbikV479hu9oZlgHy6gnBLl8ZivD5IVLX8+GvUIb54YVxDsfO J0AheN0y9ass7XNpvamknBizoMw/6toGlh+KUkfk7x69FwpL15xuddc2ysg/rE4z38o6 5UYw==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=ubely@ilbers.de Received: from shymkent.ilbers.de (shymkent.ilbers.de. [85.214.156.166]) by gmr-mx.google.com with ESMTPS id 98e67ed59e1d1-3057daac13csi640329a91.0.2025.04.08.04.36.39 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 08 Apr 2025 04:36:40 -0700 (PDT) Received-SPF: pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) client-ip=85.214.156.166; Received: from home.localdomain (44-208-124-178-static.mgts.by [178.124.208.44] (may be forged)) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPSA id 538BaaVE000578 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 8 Apr 2025 13:36:36 +0200 From: Uladzimir Bely To: isar-users@googlegroups.com Subject: [PATCH 1/2] u-boot-starfive-visionfive2: Fix build with swig 4.3.0 Date: Tue, 8 Apr 2025 14:33:38 +0300 Message-ID: <20250408113630.4460-2-ubely@ilbers.de> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250408113630.4460-1-ubely@ilbers.de> References: <20250408113630.4460-1-ubely@ilbers.de> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-4.6 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,RCVD_IN_RP_CERTIFIED,RCVD_IN_RP_RNBL,RCVD_IN_RP_SAFE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on shymkent.ilbers.de X-Original-Sender: ubely@ilbers.de X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=ubely@ilbers.de Precedence: list Mailing-list: list isar-users@googlegroups.com; contact isar-users+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: isar-users@googlegroups.com X-Google-Group-Id: 914930254986 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , X-TUID: 2iybOAbK0bWp Fixes u-boot build failure on newer trixie that got updated swig-4.3.0 some time ago. ``` scripts/dtc/pylibfdt/libfdt_wrap.c: In function =E2=80=98_wrap_fdt_next_nod= e=E2=80=99: scripts/dtc/pylibfdt/libfdt_wrap.c:5581:17: error: too few arguments to function =E2=80=98SWIG_Python_AppendOutput=E2=80=99 5581 | resultobj =3D SWIG_Python_AppendOutput(resultobj, val); | ^~~~~~~~~~~~~~~~~~~~~~~~ ``` --- ...bfdt-libfdt.i_shipped-Use-SWIG_Appen.patch | 60 +++++++++++++++++++ .../u-boot-starfive-visionfive2_2024.01.bb | 1 + 2 files changed, 61 insertions(+) create mode 100644 meta-isar/recipes-bsp/u-boot/files/0001-scripts-dtc-pyl= ibfdt-libfdt.i_shipped-Use-SWIG_Appen.patch diff --git a/meta-isar/recipes-bsp/u-boot/files/0001-scripts-dtc-pylibfdt-l= ibfdt.i_shipped-Use-SWIG_Appen.patch b/meta-isar/recipes-bsp/u-boot/files/0= 001-scripts-dtc-pylibfdt-libfdt.i_shipped-Use-SWIG_Appen.patch new file mode 100644 index 00000000..d919eb68 --- /dev/null +++ b/meta-isar/recipes-bsp/u-boot/files/0001-scripts-dtc-pylibfdt-libfdt.i= _shipped-Use-SWIG_Appen.patch @@ -0,0 +1,60 @@ +From a63456b9191fae2fe49f4b121e025792022e3950 Mon Sep 17 00:00:00 2001 +From: Markus Volk +Date: Wed, 30 Oct 2024 06:07:16 +0100 +Subject: [PATCH] scripts/dtc/pylibfdt/libfdt.i_shipped: Use SWIG_AppendOut= put +MIME-Version: 1.0 +Content-Type: text/plain; charset=3DUTF-8 +Content-Transfer-Encoding: 8bit + +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. + +/home/flk/poky/build-test/tmp/work/qemux86_64-poky-linux/u-boot/2024.10/gi= t/arch/x86/cpu/u-boot-64.lds +| scripts/dtc/pylibfdt/libfdt_wrap.c: In function =E2=80=98_wrap_fdt_next_= node=E2=80=99: +| scripts/dtc/pylibfdt/libfdt_wrap.c:5581:17: error: too few arguments to = function =E2=80=98SWIG_Python_AppendOutput=E2=80=99 +| 5581 | resultobj =3D SWIG_Python_AppendOutput(resultobj, val); +| | ^~~~~~~~~~~~~~~~~~~~~~~~ + +Signed-off-by: Markus Volk +Reported-by: Rudi Heitbaum +Link: https://github.com/dgibson/dtc/pull/154 +--- + scripts/dtc/pylibfdt/libfdt.i_shipped | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/scripts/dtc/pylibfdt/libfdt.i_shipped b/scripts/dtc/pylibfdt/= libfdt.i_shipped +index 56cc5d48f4f..e4659489a96 100644 +--- a/scripts/dtc/pylibfdt/libfdt.i_shipped ++++ b/scripts/dtc/pylibfdt/libfdt.i_shipped +@@ -1037,7 +1037,7 @@ typedef uint32_t fdt32_t; + fdt_string(fdt1, fdt32_to_cpu($1->nameoff))); + buff =3D PyByteArray_FromStringAndSize( + (const char *)($1 + 1), fdt32_to_cpu($1->len)); +- resultobj =3D SWIG_Python_AppendOutput(resultobj, buff); ++ resultobj =3D SWIG_AppendOutput(resultobj, buff); + } + } +=20 +@@ -1076,7 +1076,7 @@ typedef uint32_t fdt32_t; +=20 + %typemap(argout) int *depth { + PyObject *val =3D Py_BuildValue("i", *arg$argnum); +- resultobj =3D SWIG_Python_AppendOutput(resultobj, val); ++ resultobj =3D SWIG_AppendOutput(resultobj, val); + } +=20 + %apply int *depth { int *depth }; +@@ -1092,7 +1092,7 @@ typedef uint32_t fdt32_t; + if (PyTuple_GET_SIZE(resultobj) =3D=3D 0) + resultobj =3D val; + else +- resultobj =3D SWIG_Python_AppendOutput(resultobj, val); ++ resultobj =3D SWIG_AppendOutput(resultobj, val); + } + } +=20 +--=20 +2.49.0 + diff --git a/meta-isar/recipes-bsp/u-boot/u-boot-starfive-visionfive2_2024.= 01.bb b/meta-isar/recipes-bsp/u-boot/u-boot-starfive-visionfive2_2024.01.bb index 9f819c3e..becd40da 100644 --- a/meta-isar/recipes-bsp/u-boot/u-boot-starfive-visionfive2_2024.01.bb +++ b/meta-isar/recipes-bsp/u-boot/u-boot-starfive-visionfive2_2024.01.bb @@ -8,6 +8,7 @@ require recipes-bsp/u-boot/u-boot-custom.inc COMPATIBLE_MACHINE =3D "starfive-visionfive2" =20 SRC_URI +=3D "https://ftp.denx.de/pub/u-boot/u-boot-${PV}.tar.bz2 \ + file://0001-scripts-dtc-pylibfdt-libfdt.i_shipped-Use-SWIG_Appen.patch= \ file://starfive-visionfive2-rules.tmpl" SRC_URI[sha256sum] =3D "b99611f1ed237bf3541bdc8434b68c96a6e05967061f992443= cb30aabebef5b3" =20 --=20 2.49.0 --=20 You received this message because you are subscribed to the Google Groups "= isar-users" group. To unsubscribe from this group and stop receiving emails from it, send an e= mail to isar-users+unsubscribe@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/isar-users/= 20250408113630.4460-2-ubely%40ilbers.de.