From: Amarnath Valluri <amarnath.valluri@intel.com>
To: "Burton, Ross" <ross.burton@intel.com>
Cc: "yocto@yoctoproject.org" <yocto@yoctoproject.org>
Subject: Re: Enable a recipe/package only when other dependent recipe/package is part of image.
Date: Mon, 25 Apr 2016 15:04:21 +0300 [thread overview]
Message-ID: <571E07C5.9020807@intel.com> (raw)
In-Reply-To: <CAJTo0Laq1SN6GG4kG_vA3L3pMtAx8AOdY9-0B+e=LXN2AjOjMg@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 2082 bytes --]
Thanks Ross for your suggestions.
On Monday 25 April 2016 02:46 PM, Burton, Ross wrote:
>
> On 25 April 2016 at 07:46, Amarnath Valluri
> <amarnath.valluri@intel.com <mailto:amarnath.valluri@intel.com>> wrote:
>
> I would like to provide a pakcagegroup-config, that should
> automatically select the configuration packages that are part of
> image configuration. Say if ‘connman’ is part of image then it
> should add ‘connman-conf’ to its RDEPENDS_${PN}.
>
>
> You can't do that.
>
> A packagegroup is just a recipe that generates packages with no
> contents, just dependencies. They are built once and don't know what
> image they're being "built for", or what other packages are being
> built. What would you packagegroup do if it were built directly, not
> via dependencies from an image?
Yes, i agree.
>
> The low-fi way to implement this would be for the layer that adds
> connman-conf to also add a bbappend for connman to depend on connman-conf.
I considered this initially, but the issue with .bbappend is it leads to
rebuilding of core packages when this configuration layer add to
bblayers, to (re)build image, which we would like to avoid.
>
> An alternative would be to have some naming pattern for conf packages
> (-conf is reasonable) and invent a new image-feature called
> conf-packages that uses a glob to find all complementary packages
> matching the *-conf pattern. This is how dev-pkgs, dbg-pkgs, doc-pkgs
> etc work. I believe this is just a matter of
> setting COMPLEMENTARY_GLOB[conf-pkgs] = '*-conf' in your configuration.
I will try this, thanks.
- Amarnath
---------------------------------------------------------------------
Intel Finland Oy
Registered Address: PL 281, 00181 Helsinki
Business Identity Code: 0357606 - 4
Domiciled in Helsinki
This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.
[-- Attachment #2: Type: text/html, Size: 3923 bytes --]
next prev parent reply other threads:[~2016-04-25 12:01 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-25 6:46 Enable a recipe/package only when other dependent recipe/package is part of image Amarnath Valluri
2016-04-25 11:46 ` Burton, Ross
2016-04-25 12:04 ` Amarnath Valluri [this message]
2016-04-28 12:30 ` Amarnath Valluri
-- strict thread matches above, loose matches on Subject: below --
2016-04-22 11:09 Valluri, Amarnath
2016-04-25 7:03 ` Amarnath Valluri
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=571E07C5.9020807@intel.com \
--to=amarnath.valluri@intel.com \
--cc=ross.burton@intel.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.