From patchwork Wed Dec 2 17:09:54 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 107031 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.82.1796231401979410979 for ; Wed, 02 Dec 2026 09:10:02 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@arm.com header.s=foss header.b=YcP+LiAB; spf=pass (domain: arm.com, ip: 217.140.110.172, mailfrom: ross.burton@arm.com) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 5F29C1570 for ; Wed, 2 Dec 2026 09:09:58 -0800 (PST) Received: from cesw-amp-gbt-1s-m12830-04.lab.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id BA41C3F7D8 for ; Wed, 2 Dec 2026 09:10:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1796231401; bh=snnzcK93cIa+Mro+M3fBZhiPhrj0cvc/zDsvFg72EJw=; h=From:To:Subject:Date:From; b=YcP+LiABHL+cNn2qFgCHqY0THjcIIkOSpd6dSjZJP7jN5BomVNhP+xNvsaDLx/NZz 7Hicb3FYCbEl2MT+MRlGg9/HcyMPLf60AXSQj2d1Ld/82BybRFBq4gVxyQAN2K0Api A7IIjsD+UyTqq6gKAb/4lrXxoUV4sYAn96nE4rSw= From: Ross Burton To: openembedded-core@lists.openembedded.org Subject: [PATCH 1/2] toolchain-shar-extract: remove redundant xz check Date: Wed, 2 Dec 2026 17:09:54 +0000 Message-ID: <20261202170955.3531547-1-ross.burton@arm.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-ARM-No-Footer: NoDisclaimer List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Wed, 02 Dec 2026 17:10:04 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251848 xz might not even be the unpacker that is in use, and it is checked for again when unpacking the SDK. Signed-off-by: Ross Burton --- meta/files/toolchain-shar-extract.sh | 5 ----- 1 file changed, 5 deletions(-) diff --git a/meta/files/toolchain-shar-extract.sh b/meta/files/toolchain-shar-extract.sh index e2c617958a9..c701e188fb4 100644 --- a/meta/files/toolchain-shar-extract.sh +++ b/meta/files/toolchain-shar-extract.sh @@ -53,11 +53,6 @@ if [ "$INST_ARCH" != "$SDK_ARCH" ]; then fi fi -if ! xz -V > /dev/null 2>&1; then - echo "Error: xz is required for installation of this SDK, please install it first" - exit 1 -fi - SDK_BUILD_PATH="@SDKPATH@" DEFAULT_INSTALL_DIR="@SDKPATHINSTALL@" SUDO_EXEC="" From patchwork Wed Dec 2 17:09:55 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 107030 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.83.1796231402564418189 for ; Wed, 02 Dec 2026 09:10:02 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@arm.com header.s=foss header.b=rFoReJPB; spf=pass (domain: arm.com, ip: 217.140.110.172, mailfrom: ross.burton@arm.com) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 2BE921682 for ; Wed, 2 Dec 2026 09:09:59 -0800 (PST) Received: from cesw-amp-gbt-1s-m12830-04.lab.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 8589E3F7D8 for ; Wed, 2 Dec 2026 09:10:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1796231402; bh=jcC9+Y+jtnfRzJnvhbmsQIHQee3s+JaRWxW7mPegK9U=; h=From:To:Subject:Date:In-Reply-To:References:From; b=rFoReJPB6FKAI2kDJKwRdfv3+X4GJ5fTkvSbgSz4M9XFw9MgsZlqJt0ScyLW8otOb DkIEjJDLf4lmI1cTo6CbHCqn+qwiUifNjh3unC/36gnxIAzFUhRoD3dh79/bNwmRSC NXAShx3+deL2uZPZk24igzm/raHrx+zWekjDMXZ4= From: Ross Burton To: openembedded-core@lists.openembedded.org Subject: [PATCH 2/2] toolchain-shar-extract: be verbose earlier Date: Wed, 2 Dec 2026 17:09:55 +0000 Message-ID: <20261202170955.3531547-2-ross.burton@arm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261202170955.3531547-1-ross.burton@arm.com> References: <20261202170955.3531547-1-ross.burton@arm.com> MIME-Version: 1.0 X-ARM-No-Footer: NoDisclaimer List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Wed, 02 Dec 2026 17:10:04 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251849 Move the 'set -x' call to immediately after the argument parsing, so as much as possible is ran verbosely. Signed-off-by: Ross Burton --- meta/files/toolchain-shar-extract.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/meta/files/toolchain-shar-extract.sh b/meta/files/toolchain-shar-extract.sh index c701e188fb4..cfc6cb96f65 100644 --- a/meta/files/toolchain-shar-extract.sh +++ b/meta/files/toolchain-shar-extract.sh @@ -109,6 +109,10 @@ while getopts ":yd:npDRSl" OPT; do esac done +if [ $verbose = 1 ] ; then + set -x +fi + payload_offset=$(($(grep -na -m1 "^MARKER:$" "$0"|cut -d':' -f1) + 1)) if [ "$listcontents" = "1" ] ; then if [ @SDK_ARCHIVE_TYPE@ = "zip" ]; then @@ -128,10 +132,6 @@ titlestr="@SDK_TITLE@ installer version @SDK_VERSION@" printf "%s\n" "$titlestr" printf "%${#titlestr}s\n" | tr " " "=" -if [ $verbose = 1 ] ; then - set -x -fi - @SDK_PRE_INSTALL_COMMAND@ # SDK_EXTENSIBLE is exposed from the SDK_PRE_INSTALL_COMMAND above