From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Tue, 10 Dec 2024 09:17:29 +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 1tKvQv-006Iwa-0Z for lore@lore.pengutronix.de; Tue, 10 Dec 2024 09:17:29 +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 1tKvQv-0000Sr-DI; Tue, 10 Dec 2024 09:17:29 +0100 Received: from mout.gmx.net ([212.227.17.21]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tKvQe-0000S1-Ca for ptxdist@pengutronix.de; Tue, 10 Dec 2024 09:17:13 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.net; s=s31663417; t=1733818631; x=1734423431; i=carsten.schlote@gmx.net; bh=4TFHFOF3OoeUB1A5rAv6l5cBR9WEm0Qa/++UtHpz+7o=; h=X-UI-Sender-Class:Message-ID:Date:MIME-Version:From:Subject:To: Content-Type:Content-Transfer-Encoding:cc: content-transfer-encoding:content-type:date:from:message-id: mime-version:reply-to:subject:to; b=qc01Vi7dNS91wW457NSbIic3GrrGaixUBpNDG8GTmUY300HiM1i36c0fqakMAg/F QEb+D1vcwaMLJ/ssbYHVA8ApgA4IwKqKIp+ZBEsQAyHFwPlETsjfkfJpRxRZ+C9Ew UE0jpVD3qWbyYiInrzwe5WCOmEgPR6wgSXWyWgcJErkKLvvuD4bGLcA7gNVEMJtFB oLCGemTP4+MDPFlaiwaPNoR2QdKS4V6BjsnkjDC8Petg8Ft/n8H4GqRBpLbx3IST5 CqvfFoCorX+DxiEoAeE1ZVBTr3QKUaJbcmOAZkdxOIfw8QC0cZqOdh9ABf/KsPbXy wYOuX+DaLIKQqmMHdA== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [192.168.178.35] ([93.236.195.39]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MVvPJ-1tAeRu2fzB-00KVL7 for ; Tue, 10 Dec 2024 09:17:11 +0100 Message-ID: <26da32b6-a8b1-41db-b302-334af01962ff@gmx.net> Date: Tue, 10 Dec 2024 09:15:51 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: Carsten Schlote To: ptxdist@pengutronix.de Content-Language: de-DE, en-US-large Autocrypt: addr=carsten.schlote@gmx.net; keydata= xsDiBERrqpARBADjQPxvkTXG/nX8dzbO3Lm1HUjGh6vaqGME5LeACDwVfXwdtvNaCT8qiEEI W5DGf7aYaCXCSc8AdyshAoVgKvXh8JfjL9ElrIAKA648hFx5WvQE36kfEyrxX3VXZxoC7Www guD7KmhXtFXWPWGgUDmyAx53K0Dl7PaxiStWPZuuPwCgqF8czpUyxwbW6Le4kkoiqR6NYyUD /33Lg9TO8wTY3DIZsb+YIywkxmlMycWFVBZ1cXsR9+f+BwTjh1bozXHlYXmfMPk0yjkWUccn /57Un4mN4VeIs7xikMLuB7ugRQAO+boHNlleDPU2950Zz5uv/yOosSA0d+zxDcCIVBASg4mA aiYsirRWCqgwgB8w1P0XicVDx+IFA/9/n6rocZPQpy3mwUKmTzNKkZM0lZdIKuB3naxGFf7h pTGL0eg3zLtFlNfJCsj5HcjObtAiwhkf8wVuF0Q9v2o066B1aOr0kzT8ue11r9uQzUeLaQkp +iIGv4U5+JeGR1GXd2ggOqHTm3ent/ReQGcsgM32S0AkDFDGDzPvGcwnw802Q2Fyc3RlbiBT Y2hsb3RlICgyMDA2LTA1LTE4KSA8Y2Fyc3Rlbi5zY2hsb3RlQGdteC5uZXQ+wmAEExECACAF AkRrqykCGyMGCwkIBwMCBBUCCAMEFgIDAQI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J0ljb8MO5PnJPSdzgMfWQ9RVqunRszvRec9aHrkMlU4puDQEr7j1MrswRkUOeEVHZ8 TTT0iM6S9wPF6ZxSuFO7lBD3NYOY9imrrMrMww9VyuGExWzO1524Tm7FJ11i1QyFqIXyCtNc UgS/eTMqnRW/ote4OHJytRZxpNPvanZjFcEeY2rx9jfs9WA+vftKqTy90tff807GcAY+FG65 GzrSHzQCVh7Aw0yySaKvqzLL3SmmNV7H+5InYqePtisdFHmzH2Cq4a/VG5OkkdIt1oHK0mJZ kAN6gMpt0X+Knee25mq9Y4Z13KN/EEzcw0uGuPULd3Qzv/HpR9oGGhO/lz1CpAQmqDPQQkWu ruM1PKtF7Au4n/i8JK9s8i9jghzQTzYq8Ag6UHJFwSMicwxD/Jxo1pD0MkeMLypTaMJIBBgR AgAJBQJEa6rKAhsMAAoJEGqaJVMdPlaBgNMAmNMZEAD007ZPZJ464HyQjo178icAoIvp71IC 3yqKAf6DHk3K8gVra3AK Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:7mGiur9txT5QjzD1T13HDlx7XXQfUj9jws6glKOAQV4iP27B4E6 I1ihNje1pwIume///wD+GdvEwiMfZHqRNl8q5/gzQ97L5tC9zsiuslvzDd135ddb/g53N2E 3U1uYKd9yINWdTwKeJ/earl6Ee89dB6tAJj/eBhdQPEt4OvoytDwlkaReCieQkRVHowSMxZ zyYfVodf1hF4H5sBK3ovQ== UI-OutboundReport: notjunk:1;M01:P0:OaEMm9yMNSo=;t1wKE1nig5lj8Ep7vuiD38EsC6b G+s0Jmegd7l86Ub42bcnesZygGkldbfKIjU4kNb1lQRMHxlLNo7VVYhhy82P8cH0+aYn9Rmzx xDB6GNnsCOxDnx5WMpFGOMxkIJKgRxK4l61HjJI3Bo0gncHYP6v6CgMOGYicahgUTOcnLmRMv S4y7E3j3EBycBLPbUd7NBK29FL99HLIzUMWDBnozFfrdMkVwtpcJ+moDqikZnLGBw5QhFvlb3 gkNq5cLnlVzbD8/hXPggt37Jgu83TLnL2EnmVAIQ0vfvOxJfjGMulrhRsuIV/deqA6Fiz7DUI nn5YJcX/FL1AgHBmZVklzmYxNcuU8JimiItMGAmuU9H06T/4cjBdLLkjMkFEfzoogMxSdDX/r 9HfwnW6nNYZRBgTxHgEC0BN2fvNbCSog5xUT9XUTTfVu19yAWvpIT8kn4bpGeWHHn+q7qxnyi fyGryffcRZphz+kHQQef0V9MU9rihDYnxdXTth6j/wLf6HkOq3r3I/yAHPpI4qtJEW0R+Jhom g4teQZUJf/d8fTC2eLp4e9t2AmfbVf2yrzoY2d2c4jf/wWd5doSHhpEUa1zMoiKLn5iKlRGT9 qgIbLpgsIXOBqHKxaalZxMPYihFBQaSwXFcTw0Z/zBPrGWuQcUoHzqACpPuaYev4tlHdDDtX+ GJAuCnBts/2uzNMuhKHak/CSgelDJ5y9XYwcaI6WSaHHAWlmwoiIkPIO/Udpi+RQ/qSpu/5eU p4uWsLI/pB6JdrPTm3vVt2pguHYnYagyAWAo17CmvShAqGO0N+3J5rCh+KdOnGYnHhyw/6f5u IO/Xmmz7KCEGTM77aeOw5yhv4U01T/YHzZkcD3GG91AgyLE7k4xn3+PJp6P37mVxsP/nN3W2W ovI/DbxXQSckKeCMgac9s3af8pPxTIcSJD8LVV9S9sM1SqriyJV1iP2ndMxgF73a2RQ4HxMq2 v4sUm2kGJM0XX+V2tK6wOwMRi//9uoJTgp9Nc4IcAIXowIQwxMLi9QDKor140gZR3fgcSw+Tq IyrGn6YwvKViqDJzZ/AIAZC7VbHBUmt8Okf3zwZGFNKhl/YKXzbJPoUuoLu4hdGkGtvtxzHfN Hyb/yBCnw1Pr5Z7qHUhfmhhKosptty 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=-2.8 required=4.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,RCVD_IN_VALIDITY_CERTIFIED_BLOCKED, RCVD_IN_VALIDITY_RPBL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Subject: [ptxdist] [PATCH] ptxd_make_xpkg_pkg.sh: Prevent incomplete comp variable and build break 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 of debug compression type. This prevents an invalid comp variable ('=3D'), which in turn causes some abort, when objcopy is called with incomplete arguments. If the compression can't be set and the comp variable is just "=3D", it will be set to an empty string. The target objcopy tool will use its internal default for compression in this case. Signed-off-by: Carsten Schlote =2D-- =C2=A0scripts/lib/ptxd_make_xpkg_pkg.sh | 6 +++++- =C2=A01 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 =2D-- a/scripts/lib/ptxd_make_xpkg_pkg.sh +++ b/scripts/lib/ptxd_make_xpkg_pkg.sh @@ -390,11 +390,15 @@ ptxd_install_compression_format() { =C2=A0=C2=A0=C2=A0=C2=A0 libc=3D"$(ptxd_cross_cc -print-file-name=3Dlibc.= so.6 2> /dev/null)" =C2=A0=C2=A0=C2=A0=C2=A0 if [ -n "${libc}" ]; then -=C2=A0=C2=A0=C2=A0 comp=3D"=3D$(readelf -t "${libc}" | sed -n -e '/COMPRESSED/{N;s/.*\(ZLIB\|ZSTD\).*/\1/p;q}' | tr '[:upper:]' '[:lower:]'= )" +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 comp=3D"=3D$(readelf -t "${lib= c}" | sed -n -e '/COMPRESSED/{N;s/.*\(ZLIB\|ZSTD\).*/\1/p;q}' | tr '[:upper:]' '[:lower:]'= )" +=C2=A0=C2=A0=C2=A0 fi +=C2=A0=C2=A0=C2=A0 if [ "${comp}" =3D=3D "=3D" ]; then +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 comp=3D"" =C2=A0=C2=A0=C2=A0=C2=A0 fi =C2=A0=C2=A0=C2=A0=C2=A0 export ptxd_install_file_objcopy_args=3D"--only-= keep-debug =2D-compress-debug-sections${comp}" =C2=A0} + =C2=A0ptxd_install_compression_format =C2=A0ptxd_install_file_extract_debug() {