[yocto] Using files from package dependencies

Paul Eggleton paul.eggleton at linux.intel.com
Mon Dec 5 12:03:29 PST 2016


On Mon, 05 Dec 2016 09:42:42 Nicolas Dechesne wrote:
> On Mon, Dec 5, 2016 at 7:59 AM, Paulo Neves <ptsneves at gmail.com> wrote:
> > I have a recipe which depends on another package's file to do it's
> > job. How can I arbitrarily access a file from another package which my
> > recipe depends on?
> > 
> > I searched for this kind of problem but did not find it
> 
> you can't access (reliably) temporary files from another package. Each
> package is built independently in their own 'sandbox'. If files from
> one package are needed for other packages they need to be exported in
> the sysroot (through the -dev package typically).

Just to clear up a bit of confusion, packaging (e.g. the -dev package) has 
nothing to do with populating files into the sysroot, other than that files 
for each are originally pulled from the same location (i.e. files that get 
installed into ${D} during do_install). So the determining factors for a file 
going into the sysroot are (a) it has been installed into ${D} during 
do_install and (b) it has been installed under one of a list of specific paths 
as controlled by SYSROOT_DIRS.

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre



More information about the yocto mailing list