DistroKit Mailinglist
 help / color / mirror / Atom feed
From: Roland Hieber <rhi@pengutronix.de>
To: distrokit@pengutronix.de
Cc: Roland Hieber <rhi@pengutronix.de>
Subject: [DistroKit] [PATCH 6/6] scripts: update-diffs-v7a.sh: fix ptxdist path
Date: Mon,  5 Sep 2022 13:07:09 +0200	[thread overview]
Message-ID: <20220905110709.1832516-6-rhi@pengutronix.de> (raw)
In-Reply-To: <20220905110709.1832516-1-rhi@pengutronix.de>

Use the same detection logic as in update-diffs-mips.sh, in case a
different PTXdist version is to be used.

Signed-off-by: Roland Hieber <rhi@pengutronix.de>
---
 scripts/update-diffs-v7a.sh | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/scripts/update-diffs-v7a.sh b/scripts/update-diffs-v7a.sh
index 0de34e4f0cde..e684ab697e72 100755
--- a/scripts/update-diffs-v7a.sh
+++ b/scripts/update-diffs-v7a.sh
@@ -1,6 +1,14 @@
 #!/bin/sh
 
+if [ -z "$PTXDIST" ]; then
+	PTXDIST=ptxdist
+else
+	tput setaf 3 # yellow
+	echo Note: using PTXDIST=$PTXDIST
+	tput sgr 0   # back to normal
+fi
+
 BAREBOXES="barebox-common barebox-am335x barebox-mx6 barebox-rpi2 barebox-vexpress"
 for pkg in $BAREBOXES; do
-	ptxdist/bin/ptxdist oldconfig $pkg
+	$PTXDIST --platformconfig="configs/platform-mips/platformconfig" oldconfig $pkg
 done
-- 
2.30.2




  parent reply	other threads:[~2022-09-05 11:07 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-05 11:07 [DistroKit] [PATCH 1/6] doc: hardware: fix malformed table Roland Hieber
2022-09-05 11:07 ` [DistroKit] [PATCH 2/6] doc: hardware: fix referencing nonexisting documents in toctree Roland Hieber
2022-09-05 11:07 ` [DistroKit] [PATCH 3/6] doc: hardware: document v7a_noneon platform Roland Hieber
2022-09-05 11:07 ` [DistroKit] [PATCH 4/6] doc: fix some typos Roland Hieber
2022-09-05 11:07 ` [DistroKit] [PATCH 5/6] doc: intro: document helper scripts Roland Hieber
2022-09-05 11:07 ` Roland Hieber [this message]
2022-09-06  9:58   ` [DistroKit] [PATCH 6/6] scripts: update-diffs-v7a.sh: fix ptxdist path Jan Lübbe
2022-09-06 13:53     ` [DistroKit] [PATCH] fixup! doc: intro: document helper scripts Roland Hieber
2022-09-06 14:11       ` Robert Schwebel
2022-09-05 13:56 ` [DistroKit] [PATCH 1/6] doc: hardware: fix malformed table 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=20220905110709.1832516-6-rhi@pengutronix.de \
    --to=rhi@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