[OE-core] one more question about FILESPATH and eglibc, if i might

Robert P. J. Day rpjday at crashcourse.ca
Mon Nov 11 11:09:05 UTC 2013


  as one more data point in what looks like weird and sometimes
unnecessary settings of FILESPATH in recipe files, i give you this
from eglibc_2.18.bb:

FILESPATH = "${@base_set_filespath([ '${FILE_DIRNAME}/eglibc-${PV}',
'${FILE_DIRNAME}/eglibc', '${FILE_DIRNAME}/files', '${FILE_DIRNAME}'
], d)}"

  first, it would seem that the first three elements in that list
match *exactly* what you'd get from the default setting of FILESPATH
from base.bbclass, would it not?

FILESPATH = "${@base_set_filespath(["${FILE_DIRNAME}/${BP}",
"${FILE_DIRNAME}/${BPN}", "${FILE_DIRNAME}/files"], d)}"

so it's not clear what the point of that explicit setting is.

  in addition, what's with the addition of that fourth list entry:
${FILE_DIRNAME}? all that's going to do is extend FILESPATH with the
OVERRIDES-related directories *immediately* under the eglibc
directory, and i don't see what value that has. here's the final value
of FILESPATH for eglibc as displayed by "bb show":

FILESPATH="/home/rpjday/oe/dora/poky-dora-10.0.0/meta/recipes-core/eglibc/eglibc-2.18/arm
/home/rpjday/oe/dora/poky-dora-10.0.0/meta/recipes-core/eglibc/eglibc-2.18/armv7a
/home/rpjday/oe/dora/poky-dora-10.0.0/meta/recipes-core/eglibc/eglibc-2.18/beagleboard
/home/rpjday/oe/dora/poky-dora-10.0.0/meta/recipes-core/eglibc/eglibc-2.18/poky
/home/rpjday/oe/dora/poky-dora-10.0.0/meta/recipes-core/eglibc/eglibc-2.18/
/home/rpjday/oe/dora/poky-dora-10.0.0/meta/recipes-core/eglibc/eglibc/arm
/home/rpjday/oe/dora/poky-dora-10.0.0/meta/recipes-core/eglibc/eglibc/armv7a
/home/rpjday/oe/dora/poky-dora-10.0.0/meta/recipes-core/eglibc/eglibc/beagleboard
/home/rpjday/oe/dora/poky-dora-10.0.0/meta/recipes-core/eglibc/eglibc/poky
/home/rpjday/oe/dora/poky-dora-10.0.0/meta/recipes-core/eglibc/eglibc/
/home/rpjday/oe/dora/poky-dora-10.0.0/meta/recipes-core/eglibc/files/arm
/home/rpjday/oe/dora/poky-dora-10.0.0/meta/recipes-core/eglibc/files/armv7a
/home/rpjday/oe/dora/poky-dora-10.0.0/meta/recipes-core/eglibc/files/beagleboard
/home/rpjday/oe/dora/poky-dora-10.0.0/meta/recipes-core/eglibc/files/poky
/home/rpjday/oe/dora/poky-dora-10.0.0/meta/recipes-core/eglibc/files/
/home/rpjday/oe/dora/poky-dora-10.0.0/meta/recipes-core/eglibc/arm
/home/rpjday/oe/dora/poky-dora-10.0.0/meta/recipes-core/eglibc/armv7a
/home/rpjday/oe/dora/poky-dora-10.0.0/meta/recipes-core/eglibc/beagleboard
/home/rpjday/oe/dora/poky-dora-10.0.0/meta/recipes-core/eglibc/poky
/home/rpjday/oe/dora/poky-dora-10.0.0/meta/recipes-core/eglibc/"

and i don't see the point of those last five entries. is the use of
${FILE_DIRNAME} as a fourth argument to base_set_filespath()
deliberate? and what is it for? thanks for your patience.

rday

-- 

========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================



More information about the Openembedded-core mailing list