Re: [yocto] Can SRC_URI look in the same place for two different machines?

2018-03-16 Thread Robert P. J. Day
On Fri, 16 Mar 2018, Giordon Stark wrote:

> Right, so the problem for me is that there seems to be two ways to
> do this: MACHINEOVERRIDES .= ":machine3" (for 3a, 3b)
>
> or
>
> FILESEXTRAPATHS_append_machine3a = "${THISDIR}/files/machine3/"
> FILESEXTRAPATHS_append_machine3b = "${THISDIR}/files/machine3/"
>
> But it's not clear to me which is better or fits with the
> philosophy of yocto/bitbake.

  i used something like this once upon a time, can't remember where i
wrote it up, but i asked about it in some detail back here:

https://lists.yoctoproject.org/pipermail/yocto/2016-March/028923.html

perhaps someone can verify if i made any sense back then.

rday
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] Can SRC_URI look in the same place for two different machines?

2018-03-16 Thread Giordon Stark
Right, so the problem for me is that there seems to be two ways to do this:

MACHINEOVERRIDES .= ":machine3" (for 3a, 3b)

or

FILESEXTRAPATHS_append_machine3a = "${THISDIR}/files/machine3/"
FILESEXTRAPATHS_append_machine3b = "${THISDIR}/files/machine3/"

But it's not clear to me which is better or fits with the philosophy of
yocto/bitbake.

Giordon

On Fri, Mar 16, 2018 at 11:48 AM Robert P. J. Day 
wrote:

> On Fri, 16 Mar 2018, Burton, Ross wrote:
>
> > On 15 March 2018 at 14:07, Giordon Stark  wrote:
> >   So for my device trees, I'm finding some files are duplicated. In
> particular some of my
> >   dtsi files are going to be the same amongst a few boards we're
> using, so I would like
> >   to have each machine name distinct so that
> >
> > FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
> >
> > files/${MACHINE}/${MACHINE}.dts
> >
> > is picked up, while still having
> >
> > files/common/*.dtsi picked up as well. As an example of my SRC_URI
> appends:
> >
> > SRC_URI_append_gfex-prototype1b = " \
> > file://skeleton.dtsi  \
> > file://pl.dtsi\
> > file://zynq-7000.dtsi \
> > file://system.dts \
> > "
> >
> > SRC_URI_append_gfex-prototype2  = " \
> > file://skeleton.dtsi   \
> > file://pl.dtsi \
> > file://zynq-7000.dtsi  \
> > file://system.dts  \
> > "
> >
> > I suspect I do something with OVERRIDES in the
> > conf/machine/${MACHINE}.conf file but not sure...
> >
> >
> > Can't you just put common files in files/file.dtsi and then the
> > machine-specific ones in files/[machine]/?
>
>   isn't this precisely what MACHINEOVERRIDES is for?
>
> rday

-- 
Giordon Stark
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] Can SRC_URI look in the same place for two different machines?

2018-03-16 Thread Robert P. J. Day
On Fri, 16 Mar 2018, Burton, Ross wrote:

> On 15 March 2018 at 14:07, Giordon Stark  wrote:
>   So for my device trees, I'm finding some files are duplicated. In 
> particular some of my
>   dtsi files are going to be the same amongst a few boards we're using, 
> so I would like
>   to have each machine name distinct so that 
>
> FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
>
> files/${MACHINE}/${MACHINE}.dts
>
> is picked up, while still having
>
> files/common/*.dtsi picked up as well. As an example of my SRC_URI appends:
>
> SRC_URI_append_gfex-prototype1b = " \
>     file://skeleton.dtsi  \
>     file://pl.dtsi        \
>     file://zynq-7000.dtsi \
>     file://system.dts     \
> "
>
> SRC_URI_append_gfex-prototype2  = " \
>     file://skeleton.dtsi   \
>     file://pl.dtsi         \
>     file://zynq-7000.dtsi  \
>     file://system.dts      \
> "
>
> I suspect I do something with OVERRIDES in the
> conf/machine/${MACHINE}.conf file but not sure...
>
>
> Can't you just put common files in files/file.dtsi and then the
> machine-specific ones in files/[machine]/?

  isn't this precisely what MACHINEOVERRIDES is for?

rday-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] Can SRC_URI look in the same place for two different machines?

2018-03-16 Thread Burton, Ross
Extend FILESEXTRAPATHS using machine-overrides to add common groupings?

Ross

On 16 March 2018 at 16:45, Giordon Stark  wrote:

> Hi,
>
> I would do that, but what I want to do is something like this:
>
> Machine1
> Machine2
> Machine3a
> Machine3b
> Machine4
>
> I want 3a/3b to have some shared dtsi files, but these should not be
> shared with machines 1, 2, 4. I'm not sure it's just a matter of placing it
> under files/ because I don't want those picked up by the non-3 machines.
>
> G
>
> On Fri, Mar 16, 2018 at 11:42 AM Burton, Ross 
> wrote:
>
>> On 15 March 2018 at 14:07, Giordon Stark  wrote:
>>
>>> So for my device trees, I'm finding some files are duplicated. In
>>> particular some of my dtsi files are going to be the same amongst a few
>>> boards we're using, so I would like to have each machine name distinct so
>>> that
>>>
>>> FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
>>>
>>> files/${MACHINE}/${MACHINE}.dts
>>>
>>> is picked up, while still having
>>>
>>> files/common/*.dtsi picked up as well. As an example of my SRC_URI
>>> appends:
>>>
>>> SRC_URI_append_gfex-prototype1b = " \
>>> file://skeleton.dtsi  \
>>> file://pl.dtsi\
>>> file://zynq-7000.dtsi \
>>> file://system.dts \
>>> "
>>>
>>> SRC_URI_append_gfex-prototype2  = " \
>>> file://skeleton.dtsi   \
>>> file://pl.dtsi \
>>> file://zynq-7000.dtsi  \
>>> file://system.dts  \
>>> "
>>>
>>> I suspect I do something with OVERRIDES in the
>>> conf/machine/${MACHINE}.conf file but not sure...
>>>
>>
>> Can't you just put common files in files/file.dtsi and then the
>> machine-specific ones in files/[machine]/?
>>
>> Ross
>>
> --
> Giordon Stark
>
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] Can SRC_URI look in the same place for two different machines?

2018-03-16 Thread Giordon Stark
Hi,

I would do that, but what I want to do is something like this:

Machine1
Machine2
Machine3a
Machine3b
Machine4

I want 3a/3b to have some shared dtsi files, but these should not be shared
with machines 1, 2, 4. I'm not sure it's just a matter of placing it under
files/ because I don't want those picked up by the non-3 machines.

G

On Fri, Mar 16, 2018 at 11:42 AM Burton, Ross  wrote:

> On 15 March 2018 at 14:07, Giordon Stark  wrote:
>
>> So for my device trees, I'm finding some files are duplicated. In
>> particular some of my dtsi files are going to be the same amongst a few
>> boards we're using, so I would like to have each machine name distinct so
>> that
>>
>> FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
>>
>> files/${MACHINE}/${MACHINE}.dts
>>
>> is picked up, while still having
>>
>> files/common/*.dtsi picked up as well. As an example of my SRC_URI
>> appends:
>>
>> SRC_URI_append_gfex-prototype1b = " \
>> file://skeleton.dtsi  \
>> file://pl.dtsi\
>> file://zynq-7000.dtsi \
>> file://system.dts \
>> "
>>
>> SRC_URI_append_gfex-prototype2  = " \
>> file://skeleton.dtsi   \
>> file://pl.dtsi \
>> file://zynq-7000.dtsi  \
>> file://system.dts  \
>> "
>>
>> I suspect I do something with OVERRIDES in the
>> conf/machine/${MACHINE}.conf file but not sure...
>>
>
> Can't you just put common files in files/file.dtsi and then the
> machine-specific ones in files/[machine]/?
>
> Ross
>
-- 
Giordon Stark
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] Can SRC_URI look in the same place for two different machines?

2018-03-16 Thread Burton, Ross
On 15 March 2018 at 14:07, Giordon Stark  wrote:

> So for my device trees, I'm finding some files are duplicated. In
> particular some of my dtsi files are going to be the same amongst a few
> boards we're using, so I would like to have each machine name distinct so
> that
>
> FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
>
> files/${MACHINE}/${MACHINE}.dts
>
> is picked up, while still having
>
> files/common/*.dtsi picked up as well. As an example of my SRC_URI appends:
>
> SRC_URI_append_gfex-prototype1b = " \
> file://skeleton.dtsi  \
> file://pl.dtsi\
> file://zynq-7000.dtsi \
> file://system.dts \
> "
>
> SRC_URI_append_gfex-prototype2  = " \
> file://skeleton.dtsi   \
> file://pl.dtsi \
> file://zynq-7000.dtsi  \
> file://system.dts  \
> "
>
> I suspect I do something with OVERRIDES in the
> conf/machine/${MACHINE}.conf file but not sure...
>

Can't you just put common files in files/file.dtsi and then the
machine-specific ones in files/[machine]/?

Ross
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] Can SRC_URI look in the same place for two different machines?

2018-03-15 Thread Giordon Stark
Hi,

So for my device trees, I'm finding some files are duplicated. In
particular some of my dtsi files are going to be the same amongst a few
boards we're using, so I would like to have each machine name distinct so
that

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

files/${MACHINE}/${MACHINE}.dts

is picked up, while still having

files/common/*.dtsi picked up as well. As an example of my SRC_URI appends:

SRC_URI_append_gfex-prototype1b = " \
file://skeleton.dtsi  \
file://pl.dtsi\
file://zynq-7000.dtsi \
file://system.dts \
"

SRC_URI_append_gfex-prototype2  = " \
file://skeleton.dtsi   \
file://pl.dtsi \
file://zynq-7000.dtsi  \
file://system.dts  \
"

I suspect I do something with OVERRIDES in the conf/machine/${MACHINE}.conf
file but not sure...

Thanks,

Giordon
-- 
Giordon Stark
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto