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; Fri, 11 Apr 2025 12:18:09 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-wm1-f61.google.com (mail-wm1-f61.google.com [209.85.128.61]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 53BAI8Ud017171 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 11 Apr 2025 12:18:08 +0200 Received: by mail-wm1-f61.google.com with SMTP id 5b1f17b1804b1-43d734da1a3sf9742705e9.0 for ; Fri, 11 Apr 2025 03:18:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1744366683; cv=pass; d=google.com; s=arc-20240605; b=P3vhTmmVc53RG26YKmDF+oriqreA7uTI4vkmDss9Ywuug8rOBljarxqgJ/WNhaSlym HxueXX9WOWsxRWbzOVEgGRvu818oCEk1pvXPhK5wmDROUdzddub7nou0s1Hb6XmgLYus kSP3cFVdm0jvFrVMBK8wf+2td1/iBUbgonSK1tlobTrfdQe3J8rhCBvYzB8OWXOqN1Uj 6hO3Ig2wkT83FEFrtyDNpKOtbkGgfrtXL7TrTLNUN0utgiY5P1MKQdW041CTYWa9DJQe qpITJ+sBtSos6vPvFMhL8riFYssPIqkCf7PCJW1Km+HuqhXUMLpehBuZgHJ0ku0ZWO0U MmEw== 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=e5PdoY2YCxrv1O26Jz0pz2M2wn42sot4zL0/DQS3HWU=; fh=53fw4+R5gGl6j3XHDZl/actDJpIHPaZJ/tpnDbp8ZF8=; b=eiCFVDi9ISYySOO34broPEn42ITLVp7iWZp99dEmVdoUWP0jNZkxCA3JLS2H6fwNxW bOJkGYlaahlW/FFKMdn6xd8YBRV+SpMzVuRv+oYqgXBHWLfqZZf0AHXEtWHLFL8FL4mI KVdR6JsBGTAYaomFniSmsGhGQH1E/muFgfxB6W9JYbDaKpTAs9H44SN7Bkd6oe4u+oB4 5AKwWJnXE7GRCmu5TH5w/Dy7H8EXFErSbBrpEN+niWQjxo9rAp/+90O8ertaqoT2ivik X6rWgCZIuf44fb9Cjv1GLBYcsytXQB/yKfVTzAk8T9dDmCPEJ5mPGqxz0HVfDSBLalwx GZ2w==; 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=1744366683; x=1744971483; 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=e5PdoY2YCxrv1O26Jz0pz2M2wn42sot4zL0/DQS3HWU=; b=roBY7rw7WtXx3IfazWlZ7IEvfZIUd5fewu32bWkiD/NeWyEdLWDRvbC5NbYS90fr/c e0CvflsMknCBvLaBd9TjdjCTQHV18+8+H71bebbGOvG9EFZ5SibyH87vkCH1LeJqPrs2 QEcATG9vqhNJLm/kTTi0Og8wQchMDXOAueOVsi2oao2aaN9kyyx6mEpCIWMVmZk2jCm4 SVK2YHsfGKISbk7PmXYFfRthtGT2FMZt0zDtRgFU6TFdvNyoJcgnYMNz/w03B2+9JSvC 0MwjUklzfsnu8KVd7ezNtrnvKn+sWZaqBZrxrnATbyvgIbitUX5ilCtRQkU7Vs7W/Y/2 kkLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1744366683; x=1744971483; 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=e5PdoY2YCxrv1O26Jz0pz2M2wn42sot4zL0/DQS3HWU=; b=IOBY6IvGLtbcYsZtqqqPGpQyQNaOPUjT+UH3N1mrC4nKk8efkwdl/bwmjeNNbaClNZ M3paxRe8gn8Wz8BVVZuXFUWDys5Hx8ok943IpqcX97AtI+OBCFBQnZWQfxMum4fqpWCs ywPWADP2Fp13Vkctz+g7QzfxBFx3YOuElq+wwCZrdJTd1Sa2hboksBx1FieehSI4AHMe d4SyTnNLB3PE8qDTTi1bDHbOkK6qrEICmfL7A8WWdldRS2e7aWC+oR3TF9zsAjggxL0c ZaW6/6jVvjakHAN9aGhNwb7bMNI3pJ+5n3hMeWZ2fuq+tlF/REyPTQhqJXmBn3LD2pqD B12g== Sender: isar-users@googlegroups.com X-Forwarded-Encrypted: i=2; AJvYcCX4l0E8oiRMmvW9BCuLPyluLUjwMIcagwy2Jb20Mm0OMHLK7cR3fzmsiH42huhpR+3fu3Rj@ilbers.de X-Gm-Message-State: AOJu0YxNnBmQX3Blrn0B+gYLTjXd1cHNU8YvciZQX5cSF67MwMx16EiC 5eqIc5Gxi0Iu4iC1e9FzUTfnVnBE0nEwcy1izH9itHiJlU8APOr7 X-Google-Smtp-Source: AGHT+IElhitdCI39Wk8dGLYmdGbFx54xO57+wnEgf23u4xd6gZu2Q65+a/2G3rjm5JW2fc6B1OXn2Q== X-Received: by 2002:a05:6000:4211:b0:391:31f2:b998 with SMTP id ffacd0b85a97d-39ea51ec9ecmr1536253f8f.6.1744366682741; Fri, 11 Apr 2025 03:18:02 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com; h=ARLLPAJOKUuHIaMh0QnIRek4rv5GZHLUHCOR8KhaKrcxfF9sTQ== Received: by 2002:a05:600c:6d83:b0:43c:ed54:13bf with SMTP id 5b1f17b1804b1-43f2c572251ls1375405e9.2.-pod-prod-06-eu; Fri, 11 Apr 2025 03:17:59 -0700 (PDT) X-Received: by 2002:a05:600c:1d84:b0:43d:b3:f95 with SMTP id 5b1f17b1804b1-43f3a9af802mr17485375e9.28.1744366679530; Fri, 11 Apr 2025 03:17:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1744366679; cv=none; d=google.com; s=arc-20240605; b=MXcFMnhtFmHmWdEPTz2tLRIbTZyF0SphZ8J8eoySGl2mAyqhC4NWPO4A4skwwCu10j nPPMlGRF7pzvrKJsRvxfTaUH0GVr9FvJfiVOy2yPW5Zpz5JMo7c72QsCOOg8fDsvqRd0 JI2dG5fEqUbiHzAejeGL+4EiHbXaSMTMaMZZkg0A4c9Y+rk9s4/+aGqJMqiZK/E6Th/g unvURDurhQ6srbhZHZsMIhD7j7KX5viG1liSuO+uEsI6PJQWKopOY8sHQIYpVak2+kua drR/4pnyAjgp4b8yLnUJ71vuzOQmQGauexv9GUdV4xCreHW5tbENbifM5SKan6OiQb0N Mi/w== 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=UdYwtk1RM67dLIry3h4wqZ+05jNh22b/ZgJgBwmBLXDpeKH6YkG+0d1RBy+GD4453B o+F4cfyOKIPeKtVUzyx+mg8rWCYqRY68zEuK4iMVrBrM//gdaN/vSefEFxTwGi9DkjMN WavQfY58Gg2OBNZaMDGxJ8qsq5t5ojkvgeZbVIG14+RxV0Z0fD7QdqA/eoptDvU6BATs s0E+JTnMh7XGtYp4QzzgrulXAmPOwlj0G+AfktbSd7e6QtFx27DtqDXPEy11ifuev1QQ Cwo0PpMICXtewo8l6j1Qh0fMw+2+9syCLqHN8EP1qqSnJ1d38a9fq46EMSKVRm9vgub9 qDUA==; 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 5b1f17b1804b1-43f20a82897si263315e9.1.2025.04.11.03.17.59 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 11 Apr 2025 03:17:59 -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 53BAHwRt017154 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 11 Apr 2025 12:17:58 +0200 From: Uladzimir Bely To: isar-users@googlegroups.com Subject: [PATCH v2 1/2] u-boot-starfive-visionfive2: Fix build with swig 4.3.0 Date: Fri, 11 Apr 2025 13:15:37 +0300 Message-ID: <20250411101752.16954-2-ubely@ilbers.de> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250411101752.16954-1-ubely@ilbers.de> References: <20250411101752.16954-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_H2, 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: ttUFX+Qt8+9C 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/= 20250411101752.16954-2-ubely%40ilbers.de.