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
[email protected]

Reply via email to