mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Michael Olbrich <m.olbrich@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] Multiple images build from one project?
Date: Mon, 8 Apr 2013 11:48:14 +0200	[thread overview]
Message-ID: <20130408094814.GB32214@pengutronix.de> (raw)
In-Reply-To: <trinity-1c022af9-b588-42d3-82fd-e5e11feeb54b-1365152103486@3capp-gmx-bs62>

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

      reply	other threads:[~2013-04-08  9:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-05  8:55 Markus Wolters
2013-04-08  9:48 ` Michael Olbrich [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130408094814.GB32214@pengutronix.de \
    --to=m.olbrich@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox