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

Giordon Stark kratsg at gmail.com
Fri Mar 16 09:51:16 PDT 2018


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 <rpjday at crashcourse.ca>
wrote:

> On Fri, 16 Mar 2018, Burton, Ross wrote:
>
> > On 15 March 2018 at 14:07, Giordon Stark <kratsg at gmail.com> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20180316/7320f3cd/attachment.html>


More information about the yocto mailing list