mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] Multiple images build from one project?
@ 2013-04-05  8:55 Markus Wolters
  2013-04-08  9:48 ` Michael Olbrich
  0 siblings, 1 reply; 2+ messages in thread
From: Markus Wolters @ 2013-04-05  8:55 UTC (permalink / raw)
  To: ptxdist

[-- Attachment #1: Type: text/html, Size: 1072 bytes --]

[-- Attachment #2: Type: text/plain, Size: 48 bytes --]

-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [ptxdist] Multiple images build from one project?
  2013-04-05  8:55 [ptxdist] Multiple images build from one project? Markus Wolters
@ 2013-04-08  9:48 ` Michael Olbrich
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Olbrich @ 2013-04-08  9:48 UTC (permalink / raw)
  To: ptxdist

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 <ptxdist>/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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-04-08  9:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-05  8:55 [ptxdist] Multiple images build from one project? Markus Wolters
2013-04-08  9:48 ` Michael Olbrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox