<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Fri, Apr 22, 2016 at 3:48 PM Robert P. J. Day <<a href="mailto:rpjday@crashcourse.ca">rpjday@crashcourse.ca</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
i realize i should know the answer to this, but it's friday and i'm<br>
tired. i want to know the precise processing order for the bbappend<br>
files for a single recipe over multiple layers. (i realize it's<br>
already a bad design if i have so many bbappend files for the same<br>
recipe that i get confused knowing how they're processed. :-)<br>
<br>
if i have a recipe, say, <a href="http://rday_1.2.3.bb" rel="noreferrer" target="_blank">rday_1.2.3.bb</a>, and numerous rday*bbappend<br>
files spread across several layers, i already know that those layers<br>
are processed in increasing priority, so that higher-priority layers<br>
will overwrite the settings of lower-priority layers. so far, so good.<br>
<br>
now, in each layer, the selection of any bbappend file will be based<br>
on specificity, so in my case, selection order might be:<br>
<br>
* rday_1.2.3.bbappend<br>
* rday_1.%.bbappend<br>
* rday_%.bbappend<br>
<br>
and as long as that's true, i'm assuming that search order is<br>
restarted for each layer, so that if i have:<br>
<br>
* layer priority 5, rday_1.2.%.bbappend<br>
* layer priority 6, rday_1.%.bbappend<br>
<br>
the first of the above will be processed, but will be superseded by<br>
the second even though it is a more generic wildcard, correct?<br></blockquote><div><br></div><div>Yes, the specificity of the append isn't a factor in ordering today, as far as I know.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
finally, if i have multiple layers with the same priority, what is<br>
the processing order of bbappend files there? is it random? based on<br>
wildcard specificity?<br></blockquote><div><br></div><div>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.</div></div></div>