From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from dude.hi.pengutronix.de ([2001:6f8:1178:2:21e:67ff:fe11:9c5c]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1VFKTr-000477-8y for ptxdist@pengutronix.de; Fri, 30 Aug 2013 10:54:59 +0200 Received: from ukl by dude.hi.pengutronix.de with local (Exim 4.80) (envelope-from ) id 1VFKTr-0004pt-7z for ptxdist@pengutronix.de; Fri, 30 Aug 2013 10:54:59 +0200 Date: Fri, 30 Aug 2013 10:54:59 +0200 From: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= Message-ID: <20130830085459.GF24802@pengutronix.de> References: <19E52BF18474DF40952E81D44D21CB797E779F@eks-ex.eks-engel.local> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <19E52BF18474DF40952E81D44D21CB797E779F@eks-ex.eks-engel.local> Subject: Re: [ptxdist] different ptxdist versions Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de 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=3D$(sed -n 's/PTXCONF_CONFIGFILE_VERSION=3D"\([^"]*\)"/\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=F6nig | Industrial Linux Solutions | http://www.pengutronix.de/ | -- = ptxdist mailing list ptxdist@pengutronix.de