<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Fri, Mar 11, 2016 at 5:08 AM 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"> not sure why i never noticed this before, but what is the search order<br>
or precedence or priority for resolving recipe file directives "include"<br>
or "require"? i was just perusing the bitbake user manual, and noticed<br>
the explanation that those directives use BBPATH to track down the first<br>
include file by a given name.<br>
<br>
but AIUI, BBPATH is supposed to represent an ordered set of *layers*<br>
(i just examined BBPATH for a current [wind river linux] build, and that<br>
is exactly what it seems to contain). so when a recipe file like<br>
<a href="http://busybox.whatever.bb" rel="noreferrer" target="_blank">busybox.whatever.bb</a> contains the line:<br>
<br>
require busybox.inc<br>
<br>
i always just assumed the search would look in the current busybox<br>
directory, but that directory is not technically a layer directory --<br>
it's not a directory specified on the alleged BBPATH search path.<br>
<br>
i never thought about this until i noticed some .bbappend files<br>
specifically using directives like:<br>
<br>
require recipes-bsp/u-boot/u-boot.inc<br>
<br>
where that file reference *does* refer to a file relative to some<br>
actual layer directory somewhere.<br>
<br>
what am i missing here?<br></blockquote><div><br></div><div>BBPATH is temporarily prepended to include the directory the recipe lives in, as a special case.</div><div><br></div><div>-Chris </div></div></div>