* Please explain the logic on the MACHINEOVERRIDES ordering for meta-fsl-ppc:qoriq
@ 2015-02-11 17:20 Bob Cochran
2015-02-13 0:53 ` Otavio Salvador
0 siblings, 1 reply; 2+ messages in thread
From: Bob Cochran @ 2015-02-11 17:20 UTC (permalink / raw)
To: meta-freescale@yoctoproject.org
Hi,
For the past few months, I have patched out the way meta-fsl-ppc qoriq
constructs MACHINEOVERRIDES because I don't see the logic in it. It's
my preference that the overrides I set for my specific machine (e.g.,
p1010rdb, t1040rdb, or custom-machine) are found over the default
overrides in meta-fsl-ppc (e.g., init-ifupdown/qoriq-ppc/interfaces).
By default, if I set "p1010rdb" as the MACHINE in local.conf I get:
MACHINEOVERRIDES="p1010:p1010rdb:qoriq-ppc:e500v2"
As you know, FILESPATH is in part built by using MACHINEOVERRIDES and
the path is built working right to left, so a file in an e500v2 override
is found before one under p1010rdb.
Shouldn't the more specific override be to the right?
I would think we want to produce the following:
MACHINEOVERRIDES="e500v2:qoriq-ppc:p1010:p1010rdb"
If I'm wrong, please help me to understand why.
If there is agreement, then I would like to submit patches to change the
meta-fsl-ppc conf files.
Thanks
Bob
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Please explain the logic on the MACHINEOVERRIDES ordering for meta-fsl-ppc:qoriq
2015-02-11 17:20 Please explain the logic on the MACHINEOVERRIDES ordering for meta-fsl-ppc:qoriq Bob Cochran
@ 2015-02-13 0:53 ` Otavio Salvador
0 siblings, 0 replies; 2+ messages in thread
From: Otavio Salvador @ 2015-02-13 0:53 UTC (permalink / raw)
To: Bob Cochran; +Cc: meta-freescale@yoctoproject.org
Hello Bob,
On Wed, Feb 11, 2015 at 3:20 PM, Bob Cochran <yocto@mindchasers.com> wrote:
> For the past few months, I have patched out the way meta-fsl-ppc qoriq
> constructs MACHINEOVERRIDES because I don't see the logic in it. It's my
> preference that the overrides I set for my specific machine (e.g., p1010rdb,
> t1040rdb, or custom-machine) are found over the default overrides in
> meta-fsl-ppc (e.g., init-ifupdown/qoriq-ppc/interfaces).
>
> By default, if I set "p1010rdb" as the MACHINE in local.conf I get:
>
> MACHINEOVERRIDES="p1010:p1010rdb:qoriq-ppc:e500v2"
>
> As you know, FILESPATH is in part built by using MACHINEOVERRIDES and the
> path is built working right to left, so a file in an e500v2 override is
> found before one under p1010rdb.
>
> Shouldn't the more specific override be to the right?
>
> I would think we want to produce the following:
>
> MACHINEOVERRIDES="e500v2:qoriq-ppc:p1010:p1010rdb"
>
> If I'm wrong, please help me to understand why.
>
> If there is agreement, then I would like to submit patches to change the
> meta-fsl-ppc conf files.
Your assumption is right. I fixed this long time ago in meta-fsl-arm:
commit 74af82332fcec03f19f278024ad131c7c6eb3f53
Author: Otavio Salvador <otavio@ossystems.com.br>
Date: Thu Apr 11 10:06:55 2013 -0300
Fix use of SOC_FAMILY as the most right value is preferred
The SOC_FAMILY uses the MACHINEOVERRIDES and it evaluates from left to
right. In this case, the most SoC specific value needs to be kept in
the right so it take precedence.
This has been catch when finding out why i.MX6SL EVK where using the
wrong value as entry point, and this was the root cause.
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
--
Otavio Salvador O.S. Systems
http://www.ossystems.com.br http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-02-13 0:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-11 17:20 Please explain the logic on the MACHINEOVERRIDES ordering for meta-fsl-ppc:qoriq Bob Cochran
2015-02-13 0:53 ` Otavio Salvador
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.