All of lore.kernel.org
 help / color / mirror / Atom feed
From: Saul Wold <sgw@linux.intel.com>
To: Patches and discussions about the oe-core layer
	<openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH] base.bbclass: fix PACKAGECONFIG handling code
Date: Thu, 16 Aug 2012 13:02:30 -0700	[thread overview]
Message-ID: <502D51D6.9060804@linux.intel.com> (raw)
In-Reply-To: <502D325C.8020405@linux.intel.com>

On 08/16/2012 10:48 AM, Saul Wold wrote:
> On 08/02/2012 09:06 AM, Yao Zhao wrote:
>> PACKAGECONFIG flag code only handles that when it has 3 or 4 items in
>> flag,
>> it may have a stale data if some flags doesn't need DEPENDS and RDEPENDS.
>>
>> Signed-off-by: Yao Zhao <yao.zhao@windriver.com>
>> ---
>>   meta/classes/base.bbclass |   25 ++++++++++++-------------
>>   1 file changed, 12 insertions(+), 13 deletions(-)
>>
>> diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
>> index e15fa26..3e6a7de 100644
>> --- a/meta/classes/base.bbclass
>> +++ b/meta/classes/base.bbclass
>> @@ -364,20 +364,19 @@ python () {
>>               if flag == "defaultval":
>>                   continue
>>               items = flagval.split(",")
>> -            if len(items) == 3:
>> -                enable, disable, depend = items
>> -                rdepend = ""
>> -            elif len(items) == 4:
>> -                enable, disable, depend, rdepend = items
>> +            num = len(items)
>> +            if num > 4:
>> +                bb.error("Only enable,disable,depend,rdepend can be
>> specified!")
>> +
>>               if flag in pkgconfig:
>> -                if depend:
>> -                    extradeps.append(depend)
>> -                if rdepend:
>> -                    extrardeps.append(rdepend)
>> -                if enable:
>> -                    extraconf.append(enable)
>> -            elif disable:
>> -                    extraconf.append(disable)
>> +                if num >= 3 and items[2]:
>> +                    extradeps.append(items[2])
>> +                if num >= 4 and items[3]:
>> +                    extrardeps.append(items[3])
>> +                if num >= 1 and items[0]:
>> +                    extraconf.append(items[0])
>> +            elif num >= 2 and items[1]:
>> +                    extraconf.append(items[1])
>>           appendVar('DEPENDS', extradeps)
>>           appendVar('RDEPENDS_${PN}', extrardeps)
>>           appendVar('EXTRA_OECONF', extraconf)
>>
>
> Merged into OE-Core
>
My mistake not merged.

Sau!

> Thanks
>      Sau!
>
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>
>



      reply	other threads:[~2012-08-16 20:14 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-02 16:06 [PATCH] base.bbclass: fix PACKAGECONFIG handling code Yao Zhao
2012-08-16 17:48 ` Saul Wold
2012-08-16 20:02   ` Saul Wold [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=502D51D6.9060804@linux.intel.com \
    --to=sgw@linux.intel.com \
    --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.