[oe] Is it possible for a recipe to include/require something from a subdirectory?

Chris Larson clarson at kergoth.com
Thu Aug 20 15:26:37 UTC 2009


On Thu, Aug 20, 2009 at 7:31 AM, Ulf Samuelsson<ulf.samuelsson at atmel.com> wrote:
> I just finished a nice gnome script which allows me to automatically
> generate SRC_URI_append's
>
> I select the files[1-4] in <recipy-dir>/<recipy>/<xxx>/<yyy>",
> and then run the script
>
> result is:
>
> SRC_URI_append_<board> = "\
>        file://<file1>  \
>        file://<file2>  \
>        file://<file3>  \
>        file://<file4>  \
>        "
>
> Now, in <recipy-dir>/<recipy>.bb I want to include the file using
>
> require <xxx>/<yyy>/SRC_URI_append
>
> This did not work, so I tried symlinking - bad move...
> I'd hate having to move it to the top directory of the recipe.
>
> Any ideas?

include/require obey BBPATH.  As far as I know, the parser should be
temporarily changing bbpath to facilitate includes relative to the
file doing the including.  If that isn't working, you could try
require ${FILE_DIRNAME}/foo/bar instead.
-- 
Chris Larson
clarson at kergoth dot com
clarson at mvista dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Software Engineer
MontaVista Software, Inc.




More information about the Openembedded-devel mailing list