From: Philip Oberfichtner <pro@denx.de>
To: Marek Vasut <marek.vasut@mailbox.org>
Cc: u-boot@lists.denx.de, Tom Rini <trini@konsulko.com>,
Andre Przywara <andre.przywara@arm.com>,
Anshul Dalal <anshuld@ti.com>,
Dario Binacchi <dario.binacchi@amarulasolutions.com>,
Greg Malysa <malysagreg@gmail.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 Kocialkowski <contact@paulk.fr>, Peng Fan <peng.fan@nxp.com>,
Peter Robinson <pbrobinson@gmail.com>,
Simon Glass <sjg@chromium.org>
Subject: Re: [PATCH v6 2/4] Makefile: Add size check for u-boot-with-spl.bin
Date: Mon, 11 Aug 2025 10:14:28 +0200 [thread overview]
Message-ID: <aJmmZNHaHm2YhsnY@antares> (raw)
In-Reply-To: <6ecb3a72-a6ba-4930-ab57-292f17020b96@mailbox.org>
On Fri, Aug 08, 2025 at 03:10:58PM +0200, Marek Vasut wrote:
> On 8/7/25 9:56 AM, Philip Oberfichtner wrote:
>
> [...]
>
> > +++ b/Makefile
> > @@ -1715,6 +1715,7 @@ OBJCOPYFLAGS_u-boot-with-spl.bin = -I binary -O binary \
> > --pad-to=$(CONFIG_SPL_PAD_TO)
> > u-boot-with-spl.bin: $(SPL_IMAGE) $(SPL_PAYLOAD) FORCE
> > $(call if_changed,pad_cat)
> > + @$(call size_check,$@,$(CONFIG_UBOOT_WITH_SPL_SIZE_LIMIT))
>
> It seems other size checks are not called unconditionally, see Makefile
> around line 1100 . Why is this one called unconditionally ? Won't this break
> boards which default this new option to 0 ?
No. Please see the
"test $$limit -gt 0"
in [PATCH 1/4].
>
> > ifeq ($(CONFIG_ARCH_LPC32XX)$(CONFIG_SPL),yy)
> > MKIMAGEFLAGS_lpc32xx-spl.img = -T lpc32xximage -a $(CONFIG_SPL_TEXT_BASE)
> > diff --git a/common/spl/Kconfig b/common/spl/Kconfig
> > index ab05536bd02..b5c0c60ff6b 100644
> > --- a/common/spl/Kconfig
> > +++ b/common/spl/Kconfig
> > @@ -36,6 +36,13 @@ config SPL_FRAMEWORK_BOARD_INIT_F
> > - initialize the serial (preloader_console_init)
> > Unless you want to provide your own board_init_f, you should say Y.
> > +config UBOOT_WITH_SPL_SIZE_LIMIT
> > + hex "Maximum size of u-boot-with-spl.bin"
> > + default 0x0
> > + help
> > + Specifies the maximum length of the u-boot-with-spl.bin image.
> > + If this value is zero, it is ignored.
> Why not set SPL_SIZE_LIMIT and BOARD_SIZE_LIMIT ?
Please refer to the commit message above, where I explained my
rationale.
--
=====================================================================
DENX Software Engineering GmbH,
Managing Director: Johanna Denk, Tabea Lutz
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
=====================================================================
next prev parent reply other threads:[~2025-08-11 8:14 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-07 7:56 [PATCH v6 0/4] Add Onion Omega2/2+ board support Philip Oberfichtner
2025-08-07 7:56 ` [PATCH v6 1/4] Makefile: Simplify size check Philip Oberfichtner
2025-08-07 7:56 ` [PATCH v6 2/4] Makefile: Add size check for u-boot-with-spl.bin Philip Oberfichtner
2025-08-08 13:10 ` Marek Vasut
2025-08-11 8:14 ` Philip Oberfichtner [this message]
2025-08-07 7:56 ` [PATCH v6 3/4] mips: serial: Silence "unused variable" warning Philip Oberfichtner
2025-08-08 11:16 ` Daniel Schwierzeck
2025-08-07 7:56 ` [PATCH v6 4/4] mips: mt7628: Add Onion Omega2/2+ board support Philip Oberfichtner
2025-08-08 11:16 ` Daniel Schwierzeck
2025-08-11 8:04 ` [PATCH v6 0/4] " Philip Oberfichtner
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=aJmmZNHaHm2YhsnY@antares \
--to=pro@denx.de \
--cc=Oliver.Gaskell@analog.com \
--cc=andre.przywara@arm.com \
--cc=anshuld@ti.com \
--cc=contact@paulk.fr \
--cc=dario.binacchi@amarulasolutions.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=pbrobinson@gmail.com \
--cc=peng.fan@nxp.com \
--cc=sjg@chromium.org \
--cc=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
/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