From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from ptx.hi.pengutronix.de ([2001:6f8:1178:2:5054:ff:fec0:8e10] ident=Debian-exim) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1UP8gS-0006wQ-It for ptxdist@pengutronix.de; Mon, 08 Apr 2013 11:48:16 +0200 Received: from mol by ptx.hi.pengutronix.de with local (Exim 4.72) (envelope-from ) id 1UP8gQ-0008On-GC for ptxdist@pengutronix.de; Mon, 08 Apr 2013 11:48:14 +0200 Date: Mon, 8 Apr 2013 11:48:14 +0200 From: Michael Olbrich Message-ID: <20130408094814.GB32214@pengutronix.de> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Subject: Re: [ptxdist] Multiple images build from one project? 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="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Hi, On Fri, Apr 05, 2013 at 10:55:03AM +0200, Markus Wolters wrote: > I need to build multiple images from one project. If I got the docu right, I > can use collections to choose different package configurations. But I think a : > > ptxdist go > ptxdist --collectionconfig='foo' images > ptxdist --collectionconfig='bar' images > > would override the first image build? Is it possible to specify different > target names or paths? I would like to have something lik: > > platform/foo/images/ > platform/bar/images/ > > or > > platform/foo_images/ > platform/bar_images/ It won't work like this. But with the new image targets you can create images from collections. This requires a bit of work and is unfortunately no really documented. You need to create new images with 'ptxdist newpackage image-genimage'. Images like this get their contents either from tarballs: IMAGE_FOO_FILES := $(IMAGEDIR)/root.tgz for from a list of packages: IMAGE_FOO_PKGS := $(PTX_PACKAGES_INSTALL) You can change that to use a collection: IMAGE_FOO_PKGS := $(call ptx/collection,$(PTXDIST_WORKSPACE)/foo) Then you'll need to modify the config for genimage (created by 'newpackage'). There are some examples in /config/images/ and there is a platform-*/build-host/genimage-*/README with some documentation about the syntax. This is all probably quite incomplete. I suggest you try it, and ask questions here when you get stuck. Michael -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | -- ptxdist mailing list ptxdist@pengutronix.de