All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Denys Dmytriyenko" <denis@denix.org>
To: Nishanth Menon <nm@ti.com>
Cc: yogeshs@ti.com, Praneeth Bajjuri <praneeth@ti.com>,
	Denys Dmytriyenko <denys@konsulko.com>,
	meta-ti@lists.yoctoproject.org
Subject: Re: [meta-ti][dunfell/master][PATCH V3] linux-ti-staging: Add extra dtc flags to support dtb overlays
Date: Wed, 26 May 2021 00:21:50 -0400	[thread overview]
Message-ID: <20210526042150.GI1528@denix.org> (raw)
In-Reply-To: <20210525115552.5kqo5mcdwonarnjc@retriever>

On Tue, May 25, 2021 at 06:55:52AM -0500, Nishanth Menon wrote:
> On 21:51-20210524, Denys Dmytriyenko wrote:
> > On Mon, May 24, 2021 at 05:40:36PM -0500, Yogesh Siraswar via lists.yoctoproject.org wrote:
> > > Added KERNEL_DTB_OVERLAY_SUPPORT to individual MACHINE conf to
> > > compile dtbs with symbols. This fixes the issue where the dtbs
> > > are build without symbols causing issue with overlays.
> > > 
> > > Enabling overlay support increases the size of the dtb, hence
> > > it is done at a platform level rather than globally to allow custom
> > > boards disable it from local.conf to reduce size.
> > > 
> 
> ^^
> 
> > > Signed-off-by: Yogesh Siraswar <yogeshs@ti.com>
> > > ---
> > >  conf/machine/am335x-evm.conf                  | 2 ++
> > >  conf/machine/am335x-hs-evm.conf               | 2 ++
> > >  conf/machine/am437x-evm.conf                  | 2 ++
> > >  conf/machine/am437x-hs-evm.conf               | 2 ++
> > >  conf/machine/am57xx-evm.conf                  | 2 ++
> > >  conf/machine/am57xx-hs-evm.conf               | 3 +++
> > >  conf/machine/am65xx-evm.conf                  | 2 ++
> > >  conf/machine/am65xx-hs-evm.conf               | 2 ++
> > >  conf/machine/dra7xx-evm.conf                  | 2 ++
> > >  conf/machine/dra7xx-hs-evm.conf               | 3 +++
> > >  conf/machine/j7-evm.conf                      | 2 ++
> > >  conf/machine/j7-hs-evm.conf                   | 2 ++
> > >  conf/machine/j7200-evm.conf                   | 2 ++
> > >  conf/machine/k2g-evm.conf                     | 2 ++
> > >  conf/machine/k2g-hs-evm.conf                  | 2 ++
> > 
> > First question:
> > If you are weakly assigning KERNEL_DTB_OVERLAY_SUPPORT in most of the machine 
> > configs, should it instead be done in SoC include files, like ti33x.inc, 
> > k3.inc or even ti-soc.inc?
> 
> You would want the default behavior as default dtb, not the bloated
> symbol loaded overlay capable dtb, no?

Well, but from the list above the only machines missing are AM64 and legacy 
K2 HK/L/E. And since the assignment is weak (?=), it can still be changed 
from local.conf, as the commit message says.

Anyway, if you don't think making it a bit more generic for ease of 
maintenance is not worth it, then I'm fine with current approach.


> > > +
> > > +def get_extra_dtc_args(d):
> > > +    if d.getVar('KERNEL_DTB_OVERLAY_SUPPORT') == "1":
> > > +        return "DTC_FLAGS=-@"
> > > +    else:
> > > +        return ""
> > > +
> > > +EXTRA_DTC_ARGS += "${@get_extra_dtc_args(d)}"
> > 
> > Second question:
> > Are there any specific future plans for EXTRA_DTC_ARGS? As it seems to be 
> > an unused intermediary variable right now - you can directly append to 
> > KERNEL_EXTRA_ARGS here...
> 
> dtc changes are always incoming, does'nt make sense to keep that
> separated out?

Fair enough.

Acked-by: Denys Dmytriyenko <denys@konsulko.com>

-- 
Regards,
Denys Dmytriyenko <denis@denix.org>
PGP: 0x420902729A92C964 - https://denix.org/0x420902729A92C964
Fingerprint: 25FC E4A5 8A72 2F69 1186  6D76 4209 0272 9A92 C964

  reply	other threads:[~2021-05-26  4:21 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-24 22:40 [meta-ti][dunfell/master][PATCH V3] linux-ti-staging: Add extra dtc flags to support dtb overlays Yogesh Siraswar
2021-05-25  1:51 ` Denys Dmytriyenko
2021-05-25 11:55   ` Nishanth Menon
2021-05-26  4:21     ` Denys Dmytriyenko [this message]
2021-05-26 13:18       ` Nishanth Menon
2021-05-26 16:14         ` Yogesh Siraswar
  -- strict thread matches above, loose matches on Subject: below --
2021-05-26 19:31 [meta-ti][dunfell/master][PATCH v3] " Yogesh Siraswar

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=20210526042150.GI1528@denix.org \
    --to=denis@denix.org \
    --cc=denys@konsulko.com \
    --cc=meta-ti@lists.yoctoproject.org \
    --cc=nm@ti.com \
    --cc=praneeth@ti.com \
    --cc=yogeshs@ti.com \
    /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.