* precise details on processing of multiple .bbappend files across multiple layers?
@ 2016-04-22 22:47 Robert P. J. Day
2016-04-22 23:18 ` Christopher Larson
0 siblings, 1 reply; 2+ messages in thread
From: Robert P. J. Day @ 2016-04-22 22:47 UTC (permalink / raw)
To: OE Core mailing list
i realize i should know the answer to this, but it's friday and i'm
tired. i want to know the precise processing order for the bbappend
files for a single recipe over multiple layers. (i realize it's
already a bad design if i have so many bbappend files for the same
recipe that i get confused knowing how they're processed. :-)
if i have a recipe, say, rday_1.2.3.bb, and numerous rday*bbappend
files spread across several layers, i already know that those layers
are processed in increasing priority, so that higher-priority layers
will overwrite the settings of lower-priority layers. so far, so good.
now, in each layer, the selection of any bbappend file will be based
on specificity, so in my case, selection order might be:
* rday_1.2.3.bbappend
* rday_1.%.bbappend
* rday_%.bbappend
and as long as that's true, i'm assuming that search order is
restarted for each layer, so that if i have:
* layer priority 5, rday_1.2.%.bbappend
* layer priority 6, rday_1.%.bbappend
the first of the above will be processed, but will be superseded by
the second even though it is a more generic wildcard, correct?
finally, if i have multiple layers with the same priority, what is
the processing order of bbappend files there? is it random? based on
wildcard specificity?
thanks muchly.
rday
--
========================================================================
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca
Twitter: http://twitter.com/rpjday
LinkedIn: http://ca.linkedin.com/in/rpjday
========================================================================
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: precise details on processing of multiple .bbappend files across multiple layers?
2016-04-22 22:47 precise details on processing of multiple .bbappend files across multiple layers? Robert P. J. Day
@ 2016-04-22 23:18 ` Christopher Larson
0 siblings, 0 replies; 2+ messages in thread
From: Christopher Larson @ 2016-04-22 23:18 UTC (permalink / raw)
To: Robert P. J. Day, OE Core mailing list
[-- Attachment #1: Type: text/plain, Size: 1772 bytes --]
On Fri, Apr 22, 2016 at 3:48 PM Robert P. J. Day <rpjday@crashcourse.ca>
wrote:
>
> i realize i should know the answer to this, but it's friday and i'm
> tired. i want to know the precise processing order for the bbappend
> files for a single recipe over multiple layers. (i realize it's
> already a bad design if i have so many bbappend files for the same
> recipe that i get confused knowing how they're processed. :-)
>
> if i have a recipe, say, rday_1.2.3.bb, and numerous rday*bbappend
> files spread across several layers, i already know that those layers
> are processed in increasing priority, so that higher-priority layers
> will overwrite the settings of lower-priority layers. so far, so good.
>
> now, in each layer, the selection of any bbappend file will be based
> on specificity, so in my case, selection order might be:
>
> * rday_1.2.3.bbappend
> * rday_1.%.bbappend
> * rday_%.bbappend
>
> and as long as that's true, i'm assuming that search order is
> restarted for each layer, so that if i have:
>
> * layer priority 5, rday_1.2.%.bbappend
> * layer priority 6, rday_1.%.bbappend
>
> the first of the above will be processed, but will be superseded by
> the second even though it is a more generic wildcard, correct?
>
Yes, the specificity of the append isn't a factor in ordering today, as far
as I know.
> finally, if i have multiple layers with the same priority, what is
> the processing order of bbappend files there? is it random? based on
> wildcard specificity?
>
You should treat it as undefined. Don't rely on it. I *think* a recent
patch went in to at least make it deterministic by sorting in some fashion,
but afaik that's not guaranteed, and wasn't true in the past.
[-- Attachment #2: Type: text/html, Size: 2359 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-04-22 23:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-22 22:47 precise details on processing of multiple .bbappend files across multiple layers? Robert P. J. Day
2016-04-22 23:18 ` Christopher Larson
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.