From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Tue, 21 Oct 2025 15:24:02 +0200 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 1vBCLJ-00AGLG-34 for lore@lore.pengutronix.de; Tue, 21 Oct 2025 15:24:01 +0200 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 1vBCLJ-0005EH-FW; Tue, 21 Oct 2025 15:24:01 +0200 Received: from dude06.red.stw.pengutronix.de ([2a0a:edc0:0:1101:1d::5c]) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1vBCLG-0005Cq-54; Tue, 21 Oct 2025 15:23:58 +0200 From: Fabian Pflug To: distrokit@pengutronix.de Date: Tue, 21 Oct 2025 15:23:41 +0200 Message-ID: <20251021132341.3118845-2-f.pflug@pengutronix.de> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20251021132341.3118845-1-f.pflug@pengutronix.de> References: <20251021132341.3118845-1-f.pflug@pengutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [DistroKit] [PATCH 2/2] ci-prepare: create r5 toolchain system independent X-BeenThere: distrokit@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: DistroKit Mailinglist List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Fabian Pflug Sender: "DistroKit" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: distrokit-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false The previously linked toolchain is very system dependent and not portable and might give problems down the line if the v7a compiler and tollchain might change. Use the ptxdist with the v7a platformconfig to get a suitable toolchain gives the same result, but much cleaner to read. Only downside is, that the currenlty selected toolchain would be overwritten. Therefor move it out of the way before createing _r5 toolchain and move then back in afterwards. Signed-off-by: Fabian Pflug --- ci-prepare | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/ci-prepare b/ci-prepare index 2cd9e1b5..4144d28e 100755 --- a/ci-prepare +++ b/ci-prepare @@ -1,6 +1,14 @@ #!/bin/sh case "${JOB_BASE_NAME}" in *v8a*) - ln -sfvT /opt/OSELAS.Toolchain-2024.11.1/arm-v7a-linux-gnueabihf/gcc-14.2.1-clang-19.1.7-glibc-2.40-binutils-2.43.1-kernel-6.11.6-sanitized/bin selected_toolchain_r5 + [ -e selected_toolchain_r5 ] || { + # store away the currently selected toolchain + [ -e selected_toolchain ] && mv selected_toolchain selected_toolchain_ci_backup + # create toolchain based on v7a platform, which is needed for R5 processor. + ptxdist toolchain --platformconfig=configs/platform-v7a/platformconfig + mv selected_toolchain selected_toolchain_r5 + # restore the selected toolchain, if there was one before + [ -e selected_toolchain_ci_backup ] && mv selected_toolchain_ci_backup selected_toolchain + } ;; -esac \ No newline at end of file +esac -- 2.47.3