public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: Henning Schild <henning.schild@siemens.com>
To: "[ext] Jan Kiszka" <jan.kiszka@siemens.com>
Cc: <cedric_hombourger@mentor.com>, isar-users <isar-users@googlegroups.com>
Subject: Re: IMAGE_TYPE vs IMAGE_TYPE(S)
Date: Mon, 4 Jun 2018 10:27:14 +0200	[thread overview]
Message-ID: <20180604102714.7a768704@md1pvb1c.ad001.siemens.net> (raw)
In-Reply-To: <eeebf758-6d71-4592-a9d9-1c598911d0b5@siemens.com>

Am Mon, 4 Jun 2018 09:16:46 +0200
schrieb "[ext] Jan Kiszka" <jan.kiszka@siemens.com>:

> On 2018-06-01 16:40, cedric_hombourger@mentor.com wrote:
> > Hello!
> > 
> > The documentation suggests that IMAGE_TYPE may be a list of images
> > to be built:
> > 
> >    | The `IMAGE_TYPE` variable contains the list of image types to
> > generate.
> > 
> > (ref: https://github.com/ilbers/isar/blob/master/doc/user_manual.md#image-type-selection)
> > 
> > It appears that one could set this to e.g. "ext4-img wic-img" to get
> > Isar to generate both an EXT4 image and a WIC image.
> > Alright.
> > 
> > But then how about this code:
> > 
> >    | if d.getVar('IMAGE_TYPE', True) == 'wic-img':
> >    |     d.appendVar('BUILDCHROOT_PREINSTALL',
> >    |                 d.getVar('BUILDCHROOT_PREINSTALL_WIC', True))
> > 
> > (ref: https://github.com/ilbers/isar/blob/master/meta/recipes-devtools/buildchroot/buildchroot.bb#L45)
> > 
> > The condition would be False for the example provided above and our
> > buildchroot missing vital tools such mkdosfs
> > 
> > We probably need to fix one or the other. What are your thoughts?  
> 
> While the above would be easy to adjust, it doesn't look to me like as
> if the rest of Isar is ready to support true IMAGE_TYPES semantic. I
> would suggest to adjust the doc for now so that it stops suggesting
> IMAGE_TYPE is like OE's IMAGE_TYPES. Patch welcome.

I agree. If you want another type just derive an image from your
existing one and override the IMAGE_TYPE. IMHO that is cleaner anyways
but would share less temporary results.

Henning

> Thanks for reporting!
> Jan
> 


  reply	other threads:[~2018-06-04  8:27 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-01 14:40 cedric_hombourger
2018-06-04  7:16 ` Jan Kiszka
2018-06-04  8:27   ` Henning Schild [this message]
2018-06-04  7:17 ` Claudius Heine

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=20180604102714.7a768704@md1pvb1c.ad001.siemens.net \
    --to=henning.schild@siemens.com \
    --cc=cedric_hombourger@mentor.com \
    --cc=isar-users@googlegroups.com \
    --cc=jan.kiszka@siemens.com \
    /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