From: Amarnath Valluri <amarnath.valluri@intel.com>
To: "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 10:03:35 +0300 [thread overview]
Message-ID: <571DC147.9040001@intel.com> (raw)
In-Reply-To: <D3C33C4430ACA6488F343D1125FCCECC380DEE65@irsmsx110.ger.corp.intel.com>
[-- Attachment #1: Type: text/plain, Size: 1841 bytes --]
On Friday 22 April 2016 02:09 PM, Valluri, Amarnath wrote:
>
> Hello,
>
> I have my own layer, that provides configuration packages for core
> Linux components, for example ‘connman-conf’ for ‘connman’ package.
>
> 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}.
>
> For this I try to use ‘oe.packagedata.pkgmap’, to check if the core
> component exists as below:
>
> --------------------------------------------------------------------
>
> def check_if_enabled(comp, trueval, d):
>
> import oe.packagedata
>
> pkgmap = oe.packagedata.pkgmap(d)
>
> if pkgmap is not None and pkgmap.get(comp) is not None:
>
> return trueval
>
> return “”
>
> RDEPENDS_${PN} = “ \
>
> ${@check_if_enabled(“connman”, “connman-conf”, d)} \
>
> “
>
> -----------------------------------------------------------
>
> This works as expected when the packagedata is available, i.e., image
> is build at least once first, then my layer is added to BBLAYERS and
> then rebuild the image.
>
> But this fails when there is no packagedata cache available.
>
> Can someone help me to resolve this properly.
>
> 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: 5843 bytes --]
next prev parent reply other threads:[~2016-04-25 7:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-22 11:09 Enable a recipe/package only when other dependent recipe/package is part of image Valluri, Amarnath
2016-04-25 7:03 ` Amarnath Valluri [this message]
-- strict thread matches above, loose matches on Subject: below --
2016-04-25 6:46 Amarnath Valluri
2016-04-25 11:46 ` Burton, Ross
2016-04-25 12:04 ` Amarnath Valluri
2016-04-28 12:30 ` 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=571DC147.9040001@intel.com \
--to=amarnath.valluri@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.