[yocto] what's the "standard" for adding .dts patches to a BSP layer?

Gary Thomas gary at mlbassoc.com
Thu Apr 28 05:40:42 PDT 2016


On 2016-04-28 14:14, Robert P. J. Day wrote:
>
>    looking for common practice here ... what's the canonical way that
> one should add content to a .dts file for a new board -- all at once,
> or broken into patches associated with corresponding .scc files that
> come into play only if one selects that functionality?
>
>    i ask since i'm a big fan of modularity, but that doesn't seem to
> work very well here. if i start with a baseline .dts file, and break
> the rest into optional patches, then based on what a developer selects
> for his build, some of those patches simply aren't going to apply very
> cleanly.
>
>    it would, of course, be easier to just add everything even
> potentially necessary to the single .dts file, since that's not really
> adding any actual functionality, just adding more detailed information
> about the target board (even if it's never used).
>
>    thoughts? am i overthinking this?

One common way is to have a .dts (or .dtsi) file that includes all
of the sections you might want, but leave them disabled, hence not
changing the actual setup.  Then add snippets (via .scc or patch)
that enable the sections.  This is how the i.MX6 space (FreeScale/NXP
boards and products) is managed.

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------



More information about the yocto mailing list