All of lore.kernel.org
 help / color / mirror / Atom feed
From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Shane Wang <shane.wang@intel.com>
Cc: bitbake-devel@lists.openembedded.org
Subject: Re: [PATCH 1/1] bitbake: add description cache into cache_extra
Date: Fri, 27 Jan 2012 16:35:28 +0000	[thread overview]
Message-ID: <1327682128.19643.488.camel@ted> (raw)
In-Reply-To: <8895391158c0009ef8c76ae667df7c6bf5312661.1327059385.git.shane.wang@intel.com>

On Fri, 2012-01-20 at 19:39 +0800, Shane Wang wrote:
> enable bitbake to cache description into the extra cache file and Hob2 will get its value for core-image-foo.
> 
> Signed-off-by: Shane Wang <shane.wang@intel.com>
> ---
>  bitbake/lib/bb/cache_extra.py |   13 +++----------
>  bitbake/lib/bb/cooker.py      |    2 ++
>  2 files changed, 5 insertions(+), 10 deletions(-)
> 
> diff --git a/bitbake/lib/bb/cache_extra.py b/bitbake/lib/bb/cache_extra.py
> index 4c8841f..723b97f 100644
> --- a/bitbake/lib/bb/cache_extra.py
> +++ b/bitbake/lib/bb/cache_extra.py
> @@ -36,19 +36,12 @@ class HobRecipeInfo(RecipeInfoCommon):
>      cachefile = "bb_extracache_" + classname +".dat"        
>  
>      def __init__(self, filename, metadata):
> -
> -        self.summary = self.getvar('SUMMARY', metadata)
> -        self.license = self.getvar('LICENSE', metadata)
> -        self.section = self.getvar('SECTION', metadata)
> +        self.description = self.getvar('DESCRIPTION', metadata)
>  
>      @classmethod
>      def init_cacheData(cls, cachedata):
>          # CacheData in Hob RecipeInfo Class
> -        cachedata.summary = {}
> -        cachedata.license = {}
> -        cachedata.section = {}
> +        cachedata.description = {}
>  
>      def add_cacheData(self, cachedata, fn):
> -        cachedata.summary[fn] = self.summary
> -        cachedata.license[fn] = self.license
> -        cachedata.section[fn] = self.section
> +        cachedata.description[fn] = self.description

I think rather than remove the summary/license/section fromhere, we
should remove them from the main cache. There were added there as a
temporary measure before we had multiple cache support and we should
remove them now since they're only used by the hob UI, just like
description.

Cheers,

Richard




      reply	other threads:[~2012-01-27 16:43 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-20 11:39 [PATCH 0/1] bitbake: add description cache into cache_extra Shane Wang
2012-01-20 11:39 ` [PATCH 1/1] " Shane Wang
2012-01-27 16:35   ` 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=1327682128.19643.488.camel@ted \
    --to=richard.purdie@linuxfoundation.org \
    --cc=bitbake-devel@lists.openembedded.org \
    --cc=shane.wang@intel.com \
    /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.