All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paul Eggleton <paul.eggleton@linux.intel.com>
To: Edward Wingate <edwingate8@gmail.com>
Cc: yocto@yoctoproject.org, Diego <diego.ml@zoho.com>
Subject: Re: Per image customizations
Date: Wed, 08 Jun 2016 08:47:54 +1200	[thread overview]
Message-ID: <1857108.OcXCc2mBxV@peggleto-mobl.ger.corp.intel.com> (raw)
In-Reply-To: <CAGMdoFkJa_K26VhOK4DDnqpwPG3+a+5mT+Z5BQqmpauAjtKr=w@mail.gmail.com>

On Tue, 07 Jun 2016 08:57:24 Edward Wingate wrote:
> On Tue, Jun 7, 2016 at 3:20 AM, Paul Eggleton
> 
> <paul.eggleton@linux.intel.com> wrote:
> > Let's clarify that for the benefit of others reading along - you
> > absolutely
> > *can* have multiple bbappends per recipe. To answer the original question
> > though, no you cannot have bbappends conditionally applied based on what
> > image is being built - you cannot have other recipes built differently
> > based on the image being built *period*. Other than what gets shared via
> > the sysroot, recipes are largely independent of eachother, and that's by
> > design.
>
> Thank you, I will abandon that line of inquiry.
> 
> So I now have recipes that attempt to overwrite inittab with their own
> custom version.  These individual recipes are included in different
> images and have DEPENDS += " sysvinit-inittab" in them.  However, the
> resulting image still has the original inittab from sysvinit-inittab
> recipe, not the custom inittab in my new recipes.
> 
> My recipes look like this now:
> 
> LICENSE = "BSD"
> LIC_FILES_CHKSUM = "file://LICENSE;md5=9bea9267288f79f074b2e000d3cf6412"
> SRC_URI = "file://LICENSE file://inittab-imageX"
> S = "${WORKDIR}"
> DEPENDS += " sysvinit-inittab"
> 
> FILES_${PN} = "/etc/inittab"
> 
> do_install () {
>     install -d ${D}${sysconfdir}
>     install -m 0644 -D ${S}/inittab-imageX ${D}${sysconfdir}/inittab
> }
> 
> Is there something more I'm missing?  Thanks.

So what this will give you is alternative packages to be installed instead of 
sysvinit-inittab in your image. Have you verified (by way of the image 
manifest written next to the image file) that this package is actually being 
installed? What steps have you taken to ensure that it does get installed in 
preference to sysvinit-inittab?

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre


  reply	other threads:[~2016-06-07 20:48 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-31 16:05 Per image customizations Diego
2016-05-31 23:57 ` Paul Eggleton
2016-06-01 12:25   ` Oleksandr Poznyak
2016-06-01 16:15     ` Diego
2016-06-01 18:57       ` Oleksandr Poznyak
2016-06-03 13:52         ` Diego
2016-06-03 17:56           ` Oleksandr Poznyak
2016-06-06 13:27             ` Diego
2016-06-27  4:11               ` Paul Eggleton
2016-07-01  9:18                 ` Diego
2016-06-06 20:55         ` Edward Wingate
2016-06-06 21:10           ` Oleksandr Poznyak
2016-06-06 22:06             ` Edward Wingate
2016-06-06 23:52               ` Edward Wingate
2016-06-07 10:20             ` Paul Eggleton
2016-06-07 10:51               ` Oleksandr Poznyak
2016-06-07 15:57               ` Edward Wingate
2016-06-07 20:47                 ` Paul Eggleton [this message]
2016-06-07 23:07                   ` Edward Wingate
2016-06-07 23:23                     ` Paul Eggleton
2016-06-08  8:58                       ` Oleksandr Poznyak
2016-06-08 18:01                         ` Edward Wingate

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=1857108.OcXCc2mBxV@peggleto-mobl.ger.corp.intel.com \
    --to=paul.eggleton@linux.intel.com \
    --cc=diego.ml@zoho.com \
    --cc=edwingate8@gmail.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.