U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Philip Oberfichtner <pro@denx.de>
To: Marek Vasut <marek.vasut@mailbox.org>
Cc: u-boot@lists.denx.de, Andre Przywara <andre.przywara@arm.com>,
	Anshul Dalal <anshuld@ti.com>,
	Dario Binacchi <dario.binacchi@amarulasolutions.com>,
	Gary Bisson <bisson.gary@gmail.com>,
	Greg Malysa <malysagreg@gmail.com>,
	Heinrich Schuchardt <heinrich.schuchardt@canonical.com>,
	Ilias Apalodimas <ilias.apalodimas@linaro.org>,
	Jerome Forissier <jerome.forissier@linaro.org>,
	Nathan Barrett-Morrison <nathan.morrison@timesys.com>,
	Oliver Gaskell <Oliver.Gaskell@analog.com>,
	Paul Barker <paul.barker.ct@bp.renesas.com>,
	Paul Kocialkowski <contact@paulk.fr>, Peng Fan <peng.fan@nxp.com>,
	Quentin Schulz <quentin.schulz@cherry.de>,
	Simon Glass <sjg@chromium.org>, Tom Rini <trini@konsulko.com>,
	Trevor Woerner <twoerner@gmail.com>, Ye Li <ye.li@nxp.com>
Subject: Re: [PATCH v2 3/3] Image size checks: Simplify help text
Date: Tue, 12 Aug 2025 11:51:44 +0200	[thread overview]
Message-ID: <aJsOsEqa912RQUzg@antares> (raw)
In-Reply-To: <63434f64-3633-49a7-91cf-69f52b43c0e7@mailbox.org>

On Mon, Aug 11, 2025 at 04:25:03PM +0200, Marek Vasut wrote:
> On 8/11/25 10:57 AM, Philip Oberfichtner wrote:
> > On Thu, Aug 07, 2025 at 03:41:57PM +0200, Marek Vasut wrote:
> > > On 8/7/25 12:24 PM, Philip Oberfichtner wrote:
> > > > For coherency, use the same help text for all related size checks
> > > > options. Furthermore, simplify the depends-on logic.
> > > > 
> > > > Signed-off-by: Philip Oberfichtner <pro@denx.de>
> > > > ---
> > > > 
> > > > Notes:
> > > >       Changes in v2: new
> > > > 
> > > >    Kconfig | 8 +++-----
> > > >    1 file changed, 3 insertions(+), 5 deletions(-)
> > > > 
> > > > diff --git a/Kconfig b/Kconfig
> > > > index ec20603883b..490a706101a 100644
> > > > --- a/Kconfig
> > > > +++ b/Kconfig
> > > > @@ -543,10 +543,8 @@ config BOARD_SIZE_LIMIT
> > > >    	default 1048576 if RCAR_64
> > > >    	default 0
> > > >    	help
> > > > -	  Maximum size of the U-Boot image. When defined, the build system
> > > > -	  checks that the actual size does not exceed it.  This does not
> > > > -	  include SPL nor TPL, on platforms that use that functionality, they
> > > > -	  have separate options to restrict size.
> > > > +	  Specifies the maximum length of the U-Boot image.
> > > > +	  If this value is zero, it is ignored.
> > > 
> > > This makes the description less accurate, sorry, NAK.
> > 
> > What about using just the first half:
> > 
> > 	Maximum size of the U-Boot image. When defined, the build system
> > 	checks that the actual size does not exceed it.
> > 	[plus/minus treatment of the value zero]
> > 
> > And dropping the remainder "This does not include ..."?
> Why would removing the SPL/TPL clarification be any improvement ?

This statement used to be sensible, as long as all those size limit
options were spread out over many different Kconfig files. Now having
them all together in on place, I find it rather obvious.

Furthermore, if you want maximum accuracy, you'd have to extend the text
to also include a reference to VPL and u-boot-with-spl config options.
But even then, you still won't be able to fully grasp the functioning of
BOARD_SIZE_LIMIT without consulting the Makefile.

Well, that's what I thought. If you don't agree, I'm also fine to just
leave it as is.

      reply	other threads:[~2025-08-12  9:51 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-07 10:24 [PATCH v2 0/3] Simplify image size checks Philip Oberfichtner
2025-08-07 10:24 ` [PATCH v2 1/3] Image size checks: Remove HAS_BOARD_SIZE_LIMIT Philip Oberfichtner
2025-08-07 13:41   ` Marek Vasut
2025-08-07 16:21     ` Tom Rini
2025-08-07 19:41       ` Marek Vasut
2025-08-07 20:11         ` Tom Rini
2025-08-07 23:15           ` Marek Vasut
2025-08-07 23:24             ` Tom Rini
2025-08-11  8:50               ` Philip Oberfichtner
2025-08-18  9:29                 ` Philip Oberfichtner
2025-08-25  8:59                   ` Philip Oberfichtner
2025-08-28 21:44                 ` Marek Vasut
2025-09-01  9:38                   ` Philip Oberfichtner
2025-09-01 19:41                     ` Marek Vasut
2025-08-11  8:30     ` Philip Oberfichtner
2025-08-07 10:24 ` [PATCH v2 2/3] Image size checks: Move all configs in one place Philip Oberfichtner
2025-08-07 10:24 ` [PATCH v2 3/3] Image size checks: Simplify help text Philip Oberfichtner
2025-08-07 13:41   ` Marek Vasut
2025-08-11  8:57     ` Philip Oberfichtner
2025-08-11 10:28       ` Heinrich Schuchardt
2025-08-11 14:25       ` Marek Vasut
2025-08-12  9:51         ` Philip Oberfichtner [this message]

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=aJsOsEqa912RQUzg@antares \
    --to=pro@denx.de \
    --cc=Oliver.Gaskell@analog.com \
    --cc=andre.przywara@arm.com \
    --cc=anshuld@ti.com \
    --cc=bisson.gary@gmail.com \
    --cc=contact@paulk.fr \
    --cc=dario.binacchi@amarulasolutions.com \
    --cc=heinrich.schuchardt@canonical.com \
    --cc=ilias.apalodimas@linaro.org \
    --cc=jerome.forissier@linaro.org \
    --cc=malysagreg@gmail.com \
    --cc=marek.vasut@mailbox.org \
    --cc=nathan.morrison@timesys.com \
    --cc=paul.barker.ct@bp.renesas.com \
    --cc=peng.fan@nxp.com \
    --cc=quentin.schulz@cherry.de \
    --cc=sjg@chromium.org \
    --cc=trini@konsulko.com \
    --cc=twoerner@gmail.com \
    --cc=u-boot@lists.denx.de \
    --cc=ye.li@nxp.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox