From patchwork Fri Dec 4 13:15:17 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 107310 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.7910.1796390126564451443 for ; Fri, 04 Dec 2026 05:15:26 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@arm.com header.s=foss header.b=TP9jmRTF; 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 52CBA14BF for ; Fri, 4 Dec 2026 05:15:23 -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 C2DB13F632 for ; Fri, 4 Dec 2026 05:15:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1796390126; bh=jcC9+Y+jtnfRzJnvhbmsQIHQee3s+JaRWxW7mPegK9U=; h=From:To:Subject:Date:In-Reply-To:References:From; b=TP9jmRTFte5SZRz9VpZ8045f9NE0gLvS/Q21nYnyxV3saP3hbiyI0od0nt6yPA/1z EPKt0GOr+4y4J6fP4gim+fu1JHgGdKMa5xfQqGgHI7YHXYAdfwBigVbe3NJPcfd3um 4Ut13486f7B8iXcepFvTYIPoQ/vBEE0vl53d2AKc= From: Ross Burton To: openembedded-core@lists.openembedded.org Subject: [PATCH v2 6/8] toolchain-shar-extract: be verbose earlier Date: Fri, 4 Dec 2026 13:15:17 +0000 Message-ID: <20261204131519.3476966-6-ross.burton@arm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261204131519.3476966-1-ross.burton@arm.com> References: <20261204131519.3476966-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 ; Fri, 04 Dec 2026 13:15:30 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251974 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