[OE-core] require/include a .bb file in the same directory?

Chris Larson clarson at kergoth.com
Fri Mar 30 19:54:06 UTC 2012


On Fri, Mar 30, 2012 at 12:50 PM, Denys Dmytriyenko <denis at denix.org> wrote:
> On Fri, Mar 30, 2012 at 05:59:22AM -0400, Robert P. J. Day wrote:
>>
>>   couple questions about the require/include directives.  first, can
>> you include *any* valid text file?  not just your standard .inc file
>> (even though that is of course the most common thing to do).
>>
>>   and second, i'm looking at this example in meta/recipes-core/images,
>> where the recipe file core-image-minimal-mtdutils.bb is defined as:
>>
>> require core-image-minimal.bb
>> IMAGE_INSTALL += "mtd-utils"
>>
>> that looks perfectly reasonable since that required .bb file is in the
>> same directory, and this is clearly just defining a new image recipe
>> by adding one more package.
>>
>>   but the explanation of include/require in the bitbake manual is:
>>
>> "if the path specified on the include line is a relative path,
>> BitBake will locate the first one it can find within BBPATH."
>>
>>   that suggests that, by some massively unlikely fluke, i might
>> unknowingly have an identically-named recipe file earlier in my BBPATH
>> variable and that earlier one is the one that would be included.  is
>> that correct?

The directory the recipe lives in gets temporarily injected into
BBPATH as the first element.
-- 
Christopher Larson




More information about the Openembedded-core mailing list