From: Fabian Pflug <f.pflug@pengutronix.de>
To: distrokit@pengutronix.de
Cc: Fabian Pflug <f.pflug@pengutronix.de>
Subject: [DistroKit] [PATCH 2/2] ci-prepare: create r5 toolchain system independent
Date: Tue, 21 Oct 2025 15:23:41 +0200 [thread overview]
Message-ID: <20251021132341.3118845-2-f.pflug@pengutronix.de> (raw)
In-Reply-To: <20251021132341.3118845-1-f.pflug@pengutronix.de>
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 <f.pflug@pengutronix.de>
---
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
next prev parent reply other threads:[~2025-10-21 13:24 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-21 13:23 [DistroKit] [PATCH 1/2] gitignore: ignore _r5 toolchain from ti Fabian Pflug
2025-10-21 13:23 ` Fabian Pflug [this message]
2025-10-21 13:33 ` Robert Schwebel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20251021132341.3118845-2-f.pflug@pengutronix.de \
--to=f.pflug@pengutronix.de \
--cc=distrokit@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox