From: Gary Thomas <gary@mlbassoc.com>
To: yocto@yoctoproject.org
Subject: Re: what's the "standard" for adding .dts patches to a BSP layer?
Date: Thu, 28 Apr 2016 14:40:42 +0200 [thread overview]
Message-ID: <572204CA.1090309@mlbassoc.com> (raw)
In-Reply-To: <alpine.LFD.2.20.1604280808070.25680@localhost.localdomain>
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
------------------------------------------------------------
next prev parent reply other threads:[~2016-04-28 12:40 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-28 12:14 what's the "standard" for adding .dts patches to a BSP layer? Robert P. J. Day
2016-04-28 12:40 ` Gary Thomas [this message]
2016-04-29 12:06 ` Robert P. J. Day
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=572204CA.1090309@mlbassoc.com \
--to=gary@mlbassoc.com \
--cc=yocto@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.