All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bob Cochran <yocto@mindchasers.com>
To: "meta-freescale@yoctoproject.org" <meta-freescale@yoctoproject.org>
Subject: meta-fsl-ppc: question on the use of appending MACHINEOVERRIDES instead of prepending...
Date: Mon, 01 Dec 2014 01:44:49 -0500	[thread overview]
Message-ID: <547C0E61.3000900@mindchasers.com> (raw)

Hi,

It's fairly common to see the use of file overrides in meta-fsl-ppc 
bbappend files so a customized conf file can get picked up during a 
build.  In the paths below, qoriq-ppc is a MACHINEOVERRIDE:

./recipes-core/init-ifupdown/init-ifupdown/qoriq-ppc
./recipes-core/udev/udev-extraconf/qoriq-ppc
./virtualization-layer/recipes-extended/libvirt/libvirt/qoriq-ppc


FILESPATH is built using FILESOVERRIDES, and FILESOVERIDES is 
constructed as follows:

"${TRANSLATED_TARGET_ARCH}:${MACHINEOVERRIDES}:${DISTROOVERRIDES}"

Overrides are applied from right to left when constructing FILESPATH; 
therefore, overrides to the right have higher precedence.

In various meta-fsl-ppc conf/*.inc files, MACHINEOVERRIDES are added 
using appends, which sets the override to the right of the MACHINE being 
built, which was set in local.conf.

In my case (where t1040rdb-64b is my MACHINE):

FILESOVERRIDES="powerpc64:t1:t1040:t1040rdb-64b:qoriq-ppc:e5500-64b:poky"		


Therefore, if I put a file under 
./recipes-core/init-ifupdown/init-ifupdown/t1040rdb-64b, it will be 
searched after ./recipes-core/init-ifupdown/init-ifupdown/qoriq-ppc or 
not at all.

Also, a file under e5500-64b will be found before the same file under 
qoriq-ppc.

I don't think this is what we want, since a less specific folder is 
being picked up before a more specific folder.

Please let me know if I'm wrong about something here.  If not, can we 
make a change?

Thanks,

Bob


                 reply	other threads:[~2014-12-01  6:45 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=547C0E61.3000900@mindchasers.com \
    --to=yocto@mindchasers.com \
    --cc=meta-freescale@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.