From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: openembedded-core <openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH] lib/oe/sstate: Add task_resolved handler for virtual/xxx mappings
Date: Wed, 30 Sep 2015 17:12:54 +0100 [thread overview]
Message-ID: <1443629574.5162.129.camel@linuxfoundation.org> (raw)
In-Reply-To: <1443621000.5162.87.camel@linuxfoundation.org>
On Wed, 2015-09-30 at 14:50 +0100, Richard Purdie wrote:
> In SIGGEN_EXCLUDERECIPES_ABISAFE and SIGGEN_EXCLUDE_SAFE_RECIPE_DEP
> we really need to be able to use virtual/xxx namespaces but this
> currently doesn't work.
>
> To make this work, we need to translate them into the resolved
> providers. After such a hook was added to bitbake, we can add
> this translation here.
>
> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
>
> diff --git a/meta/lib/oe/sstatesig.py b/meta/lib/oe/sstatesig.py
> index cba0a84..fa41145 100644
> --- a/meta/lib/oe/sstatesig.py
> +++ b/meta/lib/oe/sstatesig.py
> @@ -94,6 +94,28 @@ class SignatureGeneratorOEBasicHash(bb.siggen.SignatureGeneratorBasicHash):
> self.machine = data.getVar("MACHINE", True)
> self.mismatch_msgs = []
> pass
> +
> + def tasks_resolved(self, virtmap, virtpnmap, dataCache):
> + # Translate virtual/xxx entries to PN values
> + newabisafe = []
> + for a in self.abisaferecipes:
> + if a in virtpnmap:
> + newabisafe.append(virtpnmap[a])
> + else:
> + newabisafe.append(a)
> + self.abisaferecipes = newabisafe
> + newsafedeps = []
> + for a in self.saferecipedeps:
> + a1, a2 = a.split("->")
> + if a1 in virtpnmap:
> + a1 = virtpnmap[a1]
> + if a2 in virtpnmap:
> + a2 = virtpnmap[a2]
> + newsafedeps.append(a1 + "->" + a2)
> + self.saferecipedeps = newsafedeps
> + bb.warn(str(self.abisaferecipes))
> + bb.warn(str(self.saferecipedeps))
Yes, I left some debug in here, I'll remove these two lines sorry!
Cheers,
Richard
prev parent reply other threads:[~2015-09-30 16:13 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-30 13:50 [PATCH] lib/oe/sstate: Add task_resolved handler for virtual/xxx mappings Richard Purdie
2015-09-30 16:12 ` Richard Purdie [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=1443629574.5162.129.camel@linuxfoundation.org \
--to=richard.purdie@linuxfoundation.org \
--cc=openembedded-core@lists.openembedded.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.