Openembedded Core Discussions
 help / color / mirror / Atom feed
* two variations for distro-specific FILESEXTRAPATHS prepending
@ 2014-07-16 11:26 Robert P. J. Day
  2014-07-16 16:36 ` Christopher Larson
  0 siblings, 1 reply; 3+ messages in thread
From: Robert P. J. Day @ 2014-07-16 11:26 UTC (permalink / raw)
  To: OE Core mailing list


  just ran across this in the meta-yocto layer but it's a general OE
question -- the psplash_git.bbappend file contains the following
distro-conditional line:

  FILESEXTRAPATHS_prepend_poky := "${THISDIR}/files:"

and the accompanying files/ directory has, unsurprisingly, a
poky-specific splash image file, "psplash-poky-img.h".

  but based on how FILESEXTRAPATHS is processed by incorporating all
of the FILESOVERRIDES variations (one of which is the distro name),
would it not have been entirely equivalent to have used simply

    FILESEXTRAPATHS_prepend := "${THISDIR}/files:"

and placed that splash file in the accompanying directory files/poky/?
would these two approaches do the same thing? is there a preferred
way? that's the only example of that i've seen in all the layers i've
played with.

rday

-- 

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

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



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: two variations for distro-specific FILESEXTRAPATHS prepending
  2014-07-16 11:26 two variations for distro-specific FILESEXTRAPATHS prepending Robert P. J. Day
@ 2014-07-16 16:36 ` Christopher Larson
  2014-07-16 19:26   ` Robert P. J. Day
  0 siblings, 1 reply; 3+ messages in thread
From: Christopher Larson @ 2014-07-16 16:36 UTC (permalink / raw)
  To: Robert P. J. Day; +Cc: OE Core mailing list

[-- Attachment #1: Type: text/plain, Size: 1252 bytes --]

On Wed, Jul 16, 2014 at 4:26 AM, Robert P. J. Day <rpjday@crashcourse.ca>
wrote:

>   just ran across this in the meta-yocto layer but it's a general OE
> question -- the psplash_git.bbappend file contains the following
> distro-conditional line:
>
>   FILESEXTRAPATHS_prepend_poky := "${THISDIR}/files:"
>
> and the accompanying files/ directory has, unsurprisingly, a
> poky-specific splash image file, "psplash-poky-img.h".
>
>   but based on how FILESEXTRAPATHS is processed by incorporating all
> of the FILESOVERRIDES variations (one of which is the distro name),
> would it not have been entirely equivalent to have used simply
>
>     FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
>
> and placed that splash file in the accompanying directory files/poky/?
> would these two approaches do the same thing? is there a preferred
> way? that's the only example of that i've seen in all the layers i've
> played with.
>

Both would do the same thing, I'm personally of the opinion that the latter
would be more consistent with how such things are normally done.
-- 
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics

[-- Attachment #2: Type: text/html, Size: 1742 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: two variations for distro-specific FILESEXTRAPATHS prepending
  2014-07-16 16:36 ` Christopher Larson
@ 2014-07-16 19:26   ` Robert P. J. Day
  0 siblings, 0 replies; 3+ messages in thread
From: Robert P. J. Day @ 2014-07-16 19:26 UTC (permalink / raw)
  To: Christopher Larson; +Cc: OE Core mailing list

[-- Attachment #1: Type: TEXT/PLAIN, Size: 2052 bytes --]

On Wed, 16 Jul 2014, Christopher Larson wrote:

>
> On Wed, Jul 16, 2014 at 4:26 AM, Robert P. J. Day <rpjday@crashcourse.ca> wrote:
>         just ran across this in the meta-yocto layer but it's a general OE
>       question -- the psplash_git.bbappend file contains the following
>       distro-conditional line:
>
>         FILESEXTRAPATHS_prepend_poky := "${THISDIR}/files:"
>
>       and the accompanying files/ directory has, unsurprisingly, a
>       poky-specific splash image file, "psplash-poky-img.h".
>
>         but based on how FILESEXTRAPATHS is processed by incorporating all
>       of the FILESOVERRIDES variations (one of which is the distro name),
>       would it not have been entirely equivalent to have used simply
>
>           FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
>
>       and placed that splash file in the accompanying directory files/poky/?
>       would these two approaches do the same thing? is there a preferred
>       way? that's the only example of that i've seen in all the layers i've
>       played with.
>
>
> Both would do the same thing, I'm personally of the opinion that the
> latter would be more consistent with how such things are normally
> done.

  i was ready to bet internal organs that they had the same effect,
but i've perused the OE code base enough that i trip over oddities and
i just really want to make sure i know what i'm looking at.

rday

p.s. if someone wants to submit a poky patch that changes that, feel
free. otherwise, i'll just use it in class as a "check out what
someone did *here*!" example. :-)

-- 

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

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-07-16 19:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-16 11:26 two variations for distro-specific FILESEXTRAPATHS prepending Robert P. J. Day
2014-07-16 16:36 ` Christopher Larson
2014-07-16 19:26   ` Robert P. J. Day

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox