[OE-core] [PATCH] base.bbclass: Don't warn about "invalid" PACKAGECONFIGs by default

Robert Yang liezhi.yang at windriver.com
Thu Jul 30 15:21:19 UTC 2015



On 07/30/2015 07:24 PM, Olof Johansson wrote:
> Excerpts from Robert Yang's message of 2015-07-30 12:08:37 +0200:
>> I have a new patch for this, it will be moved into insane.bbclass,
>> and the recipe can set INSANE_SKIP:
>> +
>> +    # Check invalid PACKAGECONFIG
>> +    pkgconfig = (d.getVar("PACKAGECONFIG", True) or "").split()
>> +    if pkgconfig:
>> +        pkgconfigflags = d.getVarFlags("PACKAGECONFIG") or {}
>> +        for pconfig in pkgconfig:
>> +            if pconfig not in pkgconfigflags:
>> +                pn = d.getVar('PN', True)
>> +                error_msg = "%s: invalid PACKAGECONFIG: %s" % (pn, pconfig)
>> +                package_qa_handle_error("invalid-pkgconfig", error_msg, d)
>>
>> I'm testing it, and will send it out sooner.
>
> Thanks, such a patch would work nicely with my use case!

You're welcome, sent:

http://lists.openembedded.org/pipermail/openembedded-core/2015-July/108119.html

// Robert

>



More information about the Openembedded-core mailing list