[OE-core] slightly confused about .bbappend file and FILESPATH

Martin Jansa martin.jansa at gmail.com
Mon Dec 10 23:03:53 UTC 2012


On Thu, Dec 06, 2012 at 01:19:57PM -0500, Robert P. J. Day wrote:
> On Thu, 6 Dec 2012, Mark Hatle wrote:
> 
> > On 12/6/12 12:03 PM, Robert P. J. Day wrote:
> > >
> > >    currently writing a tutorial page on how .bbappend files and
> > > FILESPATH work, and i wanted to use a live example, but now i'm
> > > confused.
> >
> > The way it works is the same way as PATH in the shell.  It's just a set of
> > search paths.
> >
> > >    using meta-ti layer, i chose to build core-image-minimal for a
> > > beagleboard, for which the meta-ti layer has the following under
> > > recipes-core/netbase/ that i want to use as an example:
> > >
> > > $ find
> > > .
> > > ./netbase_5.0.bbappend
> > > ./netbase-5.0
> > > ./netbase-5.0/beagleboard
> > > ./netbase-5.0/beagleboard/interfaces
> > > $
> > >
> > > where the .bbappend file contains only:
> > >
> > > THISDIR := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}"
> >
> > I believe this is the default value of 'THISDIR' already, so there is no
> > reason to specify it in the .bbappend itself.
> >
> > > FILESPATH =. "${@base_set_filespath(["${THISDIR}/${PN}"], d)}:"
> >
> > In this example, it's incorrect.  As you have a directory named
> > "netbase-5.0", so your FILESPATH should be: ${THISDIR}/${PN}-${PV}
> 
>   ok, so that's just a bug in the setting of FILESPATH in that one
> example?  whew.  i was seriously wondering how badly i misunderstood
> how this feature worked.
> 
>   as soon as my beagle core-image-minimal finishes building, i should
> be able to trivially check that the interfaces file used to populate
> the rootfs image is the one from oe-core and not the one that should
> have come from meta-ti.

See FILESEXTRAPATHS in other bbappends and

meta/classes/base.bbclass:FILESPATH = "${@base_set_filespath(["${FILE_DIRNAME}/${BP}","${FILE_DIRNAME}/${BPN}", "${FILE_DIRNAME}/files"], d)}"

+ definition of fce base_set_filespath:
meta/classes/utils.bbclass:def base_set_filespath(path, d):

Cheers,

> 
>   thanks.
> 
> rday
> 
> -- 
> 
> ========================================================================
> Robert P. J. Day                                 Ottawa, Ontario, CANADA
>                         http://crashcourse.ca
> 
> Twitter:                                       http://twitter.com/rpjday
> LinkedIn:                               http://ca.linkedin.com/in/rpjday
> ========================================================================
> 
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20121211/510fdc1c/attachment-0002.sig>


More information about the Openembedded-core mailing list