All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paul Eggleton <paul.eggleton@linux.intel.com>
To: "Paul D. DeRocco" <pderocco@ix.netcom.com>
Cc: yocto@yoctoproject.org
Subject: Re: Where do image names come from?
Date: Fri, 14 Jun 2013 09:01:36 +0100	[thread overview]
Message-ID: <1697634.ESZob0aX4t@helios> (raw)
In-Reply-To: <CAMKF1sqs4O9s41bnF+Nt_mHw6dB-cmiwo_0-YGovc4vppo8rHw@mail.gmail.com>

On Thursday 13 June 2013 18:26:10 Khem Raj wrote:
> On Thu, Jun 13, 2013 at 4:04 PM, Paul D. DeRocco <pderocco@ix.netcom.com>
> wrote:
> > Where does the base name of the image files in build/tmp/deploy/images
> > come from? More to the point, if I create my own image recipe in my own
> > layer, what control do I have over the name of the resulting image files?
> > I'd like to be able to create more than one variant, and not have to
> > remember which is which based on the build times appended to the file
> > names.
>
> IMAGE_BASENAME variable is used to define name. by default its same as
> PN of image recipe.

You should probably just have different image recipes for this - problem 
solved.
 
> > A related question: section 5.2.1 of the dev-manual says I can create a
> > custom image based on an existing image by copying that image recipe and
> > then modifying it. Is there some reason I can't use a .bbappend for this,
> > e.g., core-image-base.bbappend?
> 
> you can but then its a different image. You dont have to copy you can
> also include the existing image recipe in your recipe and add
> customizations.

The reasoning for documenting it that way is that usually image recipes are so 
trivial there's not much point in extending an existing recipe, plus you 
usually want to give it your own name; and if you did extend an existing 
recipe you would potentially pick up any changes to the original recipe which 
may not be desirable if you've already examined and approved the content of 
the image. Unlike other recipes most of the time it's just simpler and less 
maintenance to just copy and edit the image recipe as desired.

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre


      reply	other threads:[~2013-06-14  8:01 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-13 23:04 Where do image names come from? Paul D. DeRocco
2013-06-14  1:26 ` Khem Raj
2013-06-14  8:01   ` Paul Eggleton [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=1697634.ESZob0aX4t@helios \
    --to=paul.eggleton@linux.intel.com \
    --cc=pderocco@ix.netcom.com \
    --cc=yocto@yoctoproject.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.