All of lore.kernel.org
 help / color / mirror / Atom feed
From: Richard Purdie <rpurdie@rpsys.net>
To: openembedded-devel@lists.openembedded.org
Subject: Re: [RFC] do we really need all OVERRIDES in FILESPATH?
Date: Mon, 18 Oct 2010 11:17:52 +0100	[thread overview]
Message-ID: <1287397072.1720.17.camel@rex> (raw)
In-Reply-To: <i9gshu$8r0$2@dough.gmane.org>

On Mon, 2010-10-18 at 09:21 +0200, Koen Kooi wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On 17-10-10 23:15, Martin Jansa wrote:
> > Currently
> > bitbake -e -b xserver-xorg-conf_0.1.bb | grep ^FILESPATH= | sed "s/:/\n/g" | wc -l
> > shows 65 directories where file:// from SRC_URI can be found.
> > 
> > base_do_unpack is looking for first directory where requested file
> > exists. Most files are IMHO found in FILESPATHPKG PN, files or P
> > (without an override used)
> > 
> > Number of directories tried before
> > PN:    38
> > files: 51
> > P:     25
> > 
> > I see many recipes really using that MACHINE or DISTRO is in FILESPATH,
> > few users of TARGET_ARCH and quick find/grep doesn't show any users of 
> > other OVERRIDES in FILESPATH.
> > 
> > BTW: ie initscripts have initscripts/files/arm/alignment.sh but that's only
> > alignment.sh and SRC_URI_append_arm = " file://alignment.sh" would work
> > ok even without arm in FILESPATH.
> > 
> > What about using only ${TARGET_ARCH}:${DISTRO}:${MACHINE} in FILESPATH
> > instead all OVERRIDES?
> 
> At least I additionally need BASE_PACKAGE_ARCH and SOC_FAMILY in it and
> sometimes libc-$LIBC.

I have to admit, the structure of FILESPATH is a little unwieldy to me.
I'd propose that we should have a small set of defaults like ${BPN} and
${BPN}-${PV} and if any recipe wants more than this, it should have a
variable it can append a list to.

I'd also suggest "files" should probably be deprecated in favour of BPN.

It becomes obvious how horrible the current structure is when you try
and use .bbappend and need to add some extra directory to the search
path.

Cheers,

Richard







  reply	other threads:[~2010-10-18 10:18 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-17 21:15 [RFC] do we really need all OVERRIDES in FILESPATH? Martin Jansa
2010-10-18  7:21 ` Koen Kooi
2010-10-18 10:17   ` Richard Purdie [this message]
2010-10-18 10:29     ` Frans Meulenbroeks
2010-10-18  7:33 ` Frans Meulenbroeks
2010-10-18  7:43   ` Martin Jansa

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=1287397072.1720.17.camel@rex \
    --to=rpurdie@rpsys.net \
    --cc=openembedded-devel@lists.openembedded.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.