From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-vw0-f44.google.com ([209.85.212.44]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1RLg5y-0004YE-VR for ptxdist@pengutronix.de; Wed, 02 Nov 2011 20:03:32 +0100 Received: by vws5 with SMTP id 5so562826vws.31 for ; Wed, 02 Nov 2011 12:03:22 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20111028103241.GF12223@pengutronix.de> References: <4EAA6602.9040105@erwinrol.com> <20111028092926.GB12223@pengutronix.de> <4EAA7E52.2090500@erwinrol.com> <20111028103241.GF12223@pengutronix.de> Date: Wed, 2 Nov 2011 17:03:22 -0200 Message-ID: From: Flavio de Castro Alves Filho Subject: Re: [ptxdist] General Ptxdist usecase question 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 Erwin, I would encourage you use the pre-built packages approach from Ptxdist, as suggested. The main issue will be managing the packages correctly. For now, I'm not using this approach. But, for bigger systems, it seems to be inevitable. Best regards, Flavio 2011/10/28 Michael Olbrich : > On Fri, Oct 28, 2011 at 12:05:06PM +0200, Erwin Rol wrote: >> On 28-10-2011 11:29, Michael Olbrich wrote: >> >On Fri, Oct 28, 2011 at 10:21:22AM +0200, Erwin Rol wrote: >> >>The projects I use Ptxdist for have grown in size over the last few >> >>years, they now include mono, gtkwebkit, boost, clutter, gtk3 and >> >>all the Xorg stuff. That means it now takes more than 2 hours to >> >>compile it from scratch. The machine is not the fastest (only 4 core >> >>3GHz) but even if it was twice as fast it would still compile over >> >>and hour. >> >> >> >>So I am looking for a way to prevent a full rebuild on every project >> >>release. There seem to be some features in Ptxdist that should allow >> >>this, but I could not really figure out how to use them. >> >> >> >>What I would like to do is this; >> >> >> >>1) Build an OS with all the Xorg, mono, gtk, etc. stuff and version th= at. >> > >> >This is stable, right? Fix PTXdist version, no option changes etc.? >> >> Yeah that is the idea. Of course like with any other OS/distribution >> there will be updates at some point. >> >> >>2) build my own applications. >> >>3) combine the results from step 1 and 2 into an image for flashing >> >>4) goto 2 >> >> >> >>Is it possible to do this with Ptxdist and if so, how ? >> > >> >Take a look at the PROJECT_CREATE_DEVPKGS/PROJECT_USE_DEVPKGS options. = With >> >PROJECT_CREATE_DEVPKGS you get->version>--dev.tar.gz for most >> >packages. This is the content of_PKGDIR. >> >With PROJECT_USE_DEVPKGS you can specify a folder contain such archives= . If >> >a matching archive is found, the stages up to install are skipped and t= he >> >archive is extracted instead. The hash makes sure the sub-options used = to >> >create the archive are the correct ones. >> >Note: You cannot use your own packages dir. That introduces really stra= nge >> >circular dependencies. >> >> I looked into that a bit, but my problem are the configuration >> files. If I understand the idea correct you start with two exactly >> the same setups (same ptxdistconfig and pladformconfig) and than say >> the first setup should "create packages" and the second setup should >> "use packages". >> >> Is it possible to somehow "reference" to the prebuild system and >> prevent the user from changing the settings that are in common with >> that prebuild system? > > No, but if you change an option, then the affected package is built again > instead of using the pre-built archive. You won't get a broken system, > you'll just rebuild more. > > Michael > > -- > Pengutronix e.K. =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 | = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 | > Industrial Linux Solutions =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 | http://www.p= engutronix.de/ =A0| > Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 =A0= =A0| > Amtsgericht Hildesheim, HRA 2686 =A0 =A0 =A0 =A0 =A0 | Fax: =A0 +49-5121-= 206917-5555 | > > -- > ptxdist mailing list > ptxdist@pengutronix.de > -- = ptxdist mailing list ptxdist@pengutronix.de