[OE-core] [PATCH] classes: Apply libc-${LIBC} overrides to target recipes only

Richard Purdie richard.purdie at linuxfoundation.org
Wed Nov 30 23:26:08 UTC 2011


On Tue, 2011-11-29 at 14:46 -0800, Khem Raj wrote:
> Currently these overrides are enabled for native and nativesdk
> recipes as well when inheriting native and nativesdk classes. This patch
> filters these from OVERRIDES variables for native and nativesdk
> recipes.
> 
> oe_filter_out and oe_filter functions currently only operated on
> space separated strings. Since OVERRIDES are separated using ':'
> these functions are enhanced to take and additional parameter
> called 'sep' which defaults to None if not specified which means we keep
> the existing behaviour.
> 
> Drop the last parameter 'd' from filter functions since it was not being
> used.

This last piece worries me a lot. It requires a flag day where everyone
changes, particularly layers. I don't think that is something that is
acceptable.

I'd like to think simpler. How about we change tclibc*.inc to do
something like:

LIBCOVERRIDE = ":libc-glibc"
OVERRIDES .= "${LIBCOVERRIDE}"

and then native.bbclass can just do:

LIBCOVERRIDE = ""

Cheers,

Richard





More information about the Openembedded-core mailing list