From patchwork Tue Apr 8 11:33:38 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Uladzimir Bely X-Patchwork-Id: 4143 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-f63.google.com (mail-pj1-f63.google.com [209.85.216.63]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 538BamI1000611 (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-f63.google.com with SMTP id 98e67ed59e1d1-2ff78dd28ecsf6555554a91.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=ONeBFs+saaMVFIvxrbp/FkT+FxsUruu25cUDpCmE7BsftiyUmaabrDWt49KROfc8q/ 4FtdW3HceR7dJdC1WmS5UpEyA0QN6qSWoMHsXn9O4WOE3rUOzUHgNW/5uRVgrpkbSZJl et3eYCjIT/7DyY9Bvn5L85lyUmc/T6WOogOfPWu8ZXrmS+H/dpgUsSGpX3NUnhjGTi36 wAF4g+GtK3NmKoZegySw3lkVtGfD+e/ROmL9SBRmKY7ETnJVvfhgEv5Sz8z08paM41uX lvHFk8PaH276pr2URs4+fTWhHA4a9g0XKTvKjHPMBj9Wi4CWv5q0oWrOghNA+jC7SCat QnMQ== 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=mx1h2u7BTISP4KSf+Adaa28G4qto27SOpEp6A+uOAJY=; b=Gqku4b6IuW+rAkPjiA6ni7EfCM4ZEMw1L9aB4cugz+T1mKJoklJTk67U0prLhFrg1q SWjmZRdEb6uECwxbfY28KLhUZ4tWYCBThed2wu03A0cv2OPGGovIgzQsnmYVthdc4RYx pslC1N24t0Eej0a8ZAoAtjRGFun6bO9ykc+pdG/f9cZ7OEvVEh3SWJbm/uWVJEdouWfR 04pvGa6QH+32ggcKfQBEYu9nkZjXufYJP7WEVNMCUMam3gKUFw4Tn+zoEh9wb5lgSsWP YEL1PKE3biBDAdRHuigYZC7+2hiK52yplzX9g9/k4phIyJovhA/LpmOHTgIo8TrLfCdN z/jg==; darn=isar-build.org 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=isar-build.org; 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=L+y/Zj/QCOtGjf3ybR0Un7BBSR9qayCgYR3nsI1B2Lg8jv6fYxft51xzQnC6lzOp+O A82+BpJErz7Bt7f0h8tR4JBnCbvPeOSANzUIhQGLIybfJ+UaWSPKIq1nFG6admB16Pi9 zIOlQFKL6c6rf6jy9b+Qg05O2T8VRg1BEEw8TGHmZKdQcby7FFfev2rncoylFp1VktW4 jlI74b9Z8c0rlp2q3UFcx6r0vSVd7eT4vsoZwOCOitw7ramj5xoTZIMJOUHSRLSZzulx Zs7rKW30Lj38YeZOOH5gJKWrJPJkg5NpD4MzwhmVmGhCxep0Rv+N2OewQ5yyLSLdi8DY wx0A== 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=IEhMJPmF12Jxmshyit+2pS0G7JA3a3h33If5PUQBRz3X/rcz5iWAB/QPnDirmd81Dx 8PT1uHrUI5yY2w5Y+COCFNmlYKPWd8fEyDz1BEUlbjVbB6/PAXcWqiGPSbJflzapyMQL vU7JRrxEs8XyyVNvLOFKEu/GcQG7rfBvXwV/6sSbr1bIZuG7JLBVjeXt4suz3CziR4IF ewS4V4de0hgRX+XDtMni/XoOcqRsT7hRs9CJqI1s7XyupCbqHtWANDL2V3N8QROarM5F 9sZACWnVyUbcs1D+UO4epKTqVKpZJ4EuCw2xe7of5nLDoAuIvcYQpEars1FrBthlfd7W UNzQ== Sender: isar-users@googlegroups.com X-Forwarded-Encrypted: i=2; AJvYcCVf9CJHd/rRESNSsGhOw4w8//R6IoA2/rzrkAyO/mRNYe4khRqN1FiypMARF0qkwwHnzTOsyk4=@isar-build.org X-Gm-Message-State: AOJu0Yyji5TXPGSaFxb0MUSE+v+tPthEf/bRFt74vMWQGI/08iA3B8Z3 1Wm3l8CXyWR9D9yiJXmJEWtA6gMzL6N9HR4IcJLbQJPJXFhx3iu+ 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 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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= 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 ‘_wrap_fdt_next_node’: scripts/dtc/pylibfdt/libfdt_wrap.c:5581:17: error: too few arguments to function ‘SWIG_Python_AppendOutput’ 5581 | resultobj = 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-pylibfdt-libfdt.i_shipped-Use-SWIG_Appen.patch diff --git a/meta-isar/recipes-bsp/u-boot/files/0001-scripts-dtc-pylibfdt-libfdt.i_shipped-Use-SWIG_Appen.patch b/meta-isar/recipes-bsp/u-boot/files/0001-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_AppendOutput +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-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/git/arch/x86/cpu/u-boot-64.lds +| scripts/dtc/pylibfdt/libfdt_wrap.c: In function ‘_wrap_fdt_next_node’: +| scripts/dtc/pylibfdt/libfdt_wrap.c:5581:17: error: too few arguments to function ‘SWIG_Python_AppendOutput’ +| 5581 | resultobj = 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 = PyByteArray_FromStringAndSize( + (const char *)($1 + 1), fdt32_to_cpu($1->len)); +- resultobj = SWIG_Python_AppendOutput(resultobj, buff); ++ resultobj = SWIG_AppendOutput(resultobj, buff); + } + } + +@@ -1076,7 +1076,7 @@ typedef uint32_t fdt32_t; + + %typemap(argout) int *depth { + PyObject *val = Py_BuildValue("i", *arg$argnum); +- resultobj = SWIG_Python_AppendOutput(resultobj, val); ++ resultobj = SWIG_AppendOutput(resultobj, val); + } + + %apply int *depth { int *depth }; +@@ -1092,7 +1092,7 @@ typedef uint32_t fdt32_t; + if (PyTuple_GET_SIZE(resultobj) == 0) + resultobj = val; + else +- resultobj = SWIG_Python_AppendOutput(resultobj, val); ++ resultobj = SWIG_AppendOutput(resultobj, val); + } + } + +-- +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 = "starfive-visionfive2" SRC_URI += "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] = "b99611f1ed237bf3541bdc8434b68c96a6e05967061f992443cb30aabebef5b3"