From: "Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] different ptxdist versions
Date: Fri, 30 Aug 2013 10:54:59 +0200 [thread overview]
Message-ID: <20130830085459.GF24802@pengutronix.de> (raw)
In-Reply-To: <19E52BF18474DF40952E81D44D21CB797E779F@eks-ex.eks-engel.local>
Hello,
[reformated Christian Gieseler's mail to make it appear to use proper
quoting]
On Thu, Aug 29, 2013 at 11:59:38AM +0200, Gieseler, Christian wrote:
> > I installed the ptxdist version 2012.12.0 and I installed another (for
> > mini6410 to play around with) which was ptxdist 2011.03.0. is there a
> > way to switch between the two versions? In the documentation it states
> > that you have to build certain bsp's with certain ptxdist versions.
> you should be able to switch by creating a symbolic link in you BSP root
> folder like:
>
> ln -s /usr/local/bin/ptxdist-2013.05.0 p
>
> which results in
>
> p -> /usr/local/bin/ptxdist-2013.05.0
I'm using a script that autoselects the right ptxdist:
----------------------------------8<-----------------------------------
#! /bin/sh
debug() {
echo "$*"
}
if test -h p; then
exec ./p "$@"
fi
# guess ptxconfig to take
for ptxconfig in selected_ptxconfig configs/ptxconfig; do
if test -f "$ptxconfig"; then
break
fi
done
debug "Using \"$ptxconfig\""
ptxdistversion=$(sed -n 's/PTXCONF_CONFIGFILE_VERSION="\([^"]*\)"/\1/p; T; q' -- "$ptxconfig")
debug "Found version $ptxdistversion"
# todo: guess path to ptxdist.git if it's an unreleased version
case "$ptxdistversion" in
20[0-9][0-9].[01][0-9].[0-9])
exec "/opt/bin/ptxdist-$ptxdistversion" "$@"
;;
*)
echo "Sorry"
;;
esac
----------------------------------8<-----------------------------------
Then you don't even have to know the right version after you checked out
your project.
Best regards
Uwe
--
Pengutronix e.K. | Uwe Kleine-König |
Industrial Linux Solutions | http://www.pengutronix.de/ |
--
ptxdist mailing list
ptxdist@pengutronix.de
next prev parent reply other threads:[~2013-08-30 8:54 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-29 9:53 Ruben Louw
2013-08-29 9:59 ` Gieseler, Christian
2013-08-29 10:01 ` Ruben Louw
2013-08-29 10:04 ` Schenk, Gavin
2013-08-30 8:54 ` Uwe Kleine-König [this message]
2013-08-29 10:10 ` Alexander Dahl
2013-08-29 10:13 ` Ruben Louw
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=20130830085459.GF24802@pengutronix.de \
--to=u.kleine-koenig@pengutronix.de \
--cc=ptxdist@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