From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Wed, 11 Dec 2024 11:50:54 +0100 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tLKIw-006kSe-1E for lore@lore.pengutronix.de; Wed, 11 Dec 2024 11:50:54 +0100 Received: from localhost ([127.0.0.1] helo=metis.whiteo.stw.pengutronix.de) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1tLKIw-0001Ud-Ls; Wed, 11 Dec 2024 11:50:54 +0100 Received: from omega.vahanus.com ([2a01:4f8:202:12a5:dead:beef:0:13]) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1tKgJk-0007ij-Qu for ptxdist@pengutronix.de; Mon, 09 Dec 2024 17:09:05 +0100 Received: from localhost (localhost [127.0.0.1]) by omega.vahanus.com (Postfix) with ESMTP id 599F41801C0F for ; Mon, 9 Dec 2024 17:09:04 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at omega.vahanus.com Received: from omega.vahanus.com ([127.0.0.1]) by localhost (omega.vahanus.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VKj3tl9MxEBs for ; Mon, 9 Dec 2024 17:09:00 +0100 (CET) Received: from [192.168.178.35] (p54b22908.dip0.t-ipconnect.de [84.178.41.8]) by omega.vahanus.com (Postfix) with ESMTPSA id 1136D1801C07 for ; Mon, 9 Dec 2024 17:08:59 +0100 (CET) Message-ID: <0290f0e5-3910-4f33-bf43-6bf4f012f710@vahanus.net> Date: Mon, 9 Dec 2024 17:07:40 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird To: ptxdist@pengutronix.de Content-Language: de-DE, en-US-large From: Carsten Schlote Autocrypt: addr=schlote@vahanus.net; keydata= xsDiBERrqpARBADjQPxvkTXG/nX8dzbO3Lm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AKCL6e9SAt8qigH+gx5NyvIFa2tw Cg== Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on metis.whiteo.stw.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=-1.9 required=4.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 X-Mailman-Approved-At: Wed, 11 Dec 2024 11:50:41 +0100 Subject: [ptxdist] [PATCH] ptxd_make_xpkg_pkg.sh: Prevent empty comp variable X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false Changed code to detect broken detection and to prevent an invalid comp variable ('='). It will be set to com="" in this case. The target objcopy tool will use its internal default for compression in this case. Signed-off-by: Carsten Schlote ---  scripts/lib/ptxd_make_xpkg_pkg.sh | 6 +++++-  1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/lib/ptxd_make_xpkg_pkg.sh b/scripts/lib/ptxd_make_xpkg_pkg.sh index 08a0ab593..36bb3a564 100644 --- a/scripts/lib/ptxd_make_xpkg_pkg.sh +++ b/scripts/lib/ptxd_make_xpkg_pkg.sh @@ -390,11 +390,15 @@ ptxd_install_compression_format() {      libc="$(ptxd_cross_cc -print-file-name=libc.so.6 2> /dev/null)"      if [ -n "${libc}" ]; then -    comp="=$(readelf -t "${libc}" | sed -n -e '/COMPRESSED/{N;s/.*\(ZLIB\|ZSTD\).*/\1/p;q}' | tr '[:upper:]' '[:lower:]')" +        comp="=$(readelf -t "${libc}" | sed -n -e '/COMPRESSED/{N;s/.*\(ZLIB\|ZSTD\).*/\1/p;q}' | tr '[:upper:]' '[:lower:]')" +    fi +    if [ "${comp}" == "=" ]; then +        comp=""      fi      export ptxd_install_file_objcopy_args="--only-keep-debug --compress-debug-sections${comp}"  } +  ptxd_install_compression_format  ptxd_install_file_extract_debug() { -- 2.47.1