All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Robert P. J. Day" <rpjday@crashcourse.ca>
To: Joe MacDonald <Joe_MacDonald@mentor.com>
Cc: Yocto discussion list <yocto@yoctoproject.org>
Subject: Re: kernel manual: confusing coverage of FILESEXTRAPATHS_prepend
Date: Thu, 26 Feb 2015 04:20:36 -0500 (EST)	[thread overview]
Message-ID: <alpine.LFD.2.11.1502260414430.27706@localhost> (raw)
In-Reply-To: <alpine.LFD.2.11.1502260402300.27160@localhost>

On Thu, 26 Feb 2015, Robert P. J. Day wrote:

  ... snip ...

>   sort of related to this, but in a *regular* recipe (not a bbappend),
> the default FILESPATH is set in base.bbclass:
>
> FILESPATH = "${@base_set_filespath(["${FILE_DIRNAME}/${BP}",
> "${FILE_DIRNAME}/${BPN}", "${FILE_DIRNAME}/files"], d)}"
>
> so that, by default, a regular recipe will look for SRC_URI entries in
> *all* of:
>
> 1) ${BP}/
> 2) ${BPN}/
> 3) "files/"
>
> it's not clear which is the preferred standard (not sure there even
> *is* a preferred standard), but in cases where more than one of the
> above exists, all of the relevant directories will be searched, but
> it's not clear why some recipes insist on breaking up the files over
> more than one directory.
>
>   in the case of subversion, i can see the logic:
>
> subversion/
> subversion_1.6.15.bb
> subversion-1.8.11/
> subversion_1.8.11.bb
>
> so that the generic "subversion/" directory will apply to *all*
> subversion recipes, but there is also the version-specific
> "subversion-1.8.11/", so that's fine.
>
>   busybox, though:
>
> busybox/
> busybox_1.23.1.bb
> busybox_git.bb
> busybox.inc
> files/
>
> won't both directories busybox/ and files/ always be consulted for
> SRC_URI entries, regardless of the version of busybox? so what is the
> rationale for breaking those files over two directories?
>
>   and i'm curious ... is there any recipe that contains all *three*
> types of SRC_URI subdirectories?

  just to follow up on this, as a demo of how to add a directory of
SRC_URI files to a basic recipe, i want to show a variety of
possibilities, from simple to complex.

  in the simplest case, there will be a single directory, which will
be named one of BP, BPN, or "files", all of which are equally valid --
lots of examples of this.

  slightly more complex -- a multi-version recipe directory with each
recipe version having its own version-specific directory, like
coreutils:

coreutils-6.9/
coreutils_6.9.bb
coreutils-8.23/
coreutils_8.23.bb

  more complicated -- recipes with *both* version-specific and generic
directories like, say, readline:

files/
readline-5.2/
readline_5.2.bb
readline-6.3/
readline_6.3.bb
readline.inc

etc, etc. when this is explained in the appropriate YP manual, is it
clear the variety you can have?

rday

-- 

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

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


  reply	other threads:[~2015-02-26  9:20 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-25  8:54 kernel manual: confusing coverage of FILESEXTRAPATHS_prepend Robert P. J. Day
2015-02-25 13:44 ` Joe MacDonald
2015-02-25 13:51   ` Gary Thomas
2015-02-25 15:49   ` Rifenbark, Scott M
2015-02-26  9:12   ` Robert P. J. Day
2015-02-26  9:20     ` Robert P. J. Day [this message]
2015-02-26 10:17     ` Paul Eggleton
2015-02-26 20:29       ` Robert P. J. Day
2015-02-25 17:08 ` Darren Hart

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.LFD.2.11.1502260414430.27706@localhost \
    --to=rpjday@crashcourse.ca \
    --cc=Joe_MacDonald@mentor.com \
    --cc=yocto@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.