All of lore.kernel.org
 help / color / mirror / Atom feed
From: Anshul Dalal <anshuld@ti.com>
To: Tom Rini <trini@konsulko.com>
Cc: <u-boot@lists.denx.de>, <vigneshr@ti.com>
Subject: Re: [PATCH v4] spl: remove usage of CMD_BOOT[IZ] from image parsing
Date: Fri, 14 Mar 2025 09:30:56 +0530	[thread overview]
Message-ID: <D8FOTRTJIAZO.3HCU80EKTZGCO@ti.com> (raw)
In-Reply-To: <20250313145152.GZ2640854@bill-the-cat>

On Thu Mar 13, 2025 at 8:21 PM IST, Tom Rini wrote:
> On Thu, Mar 13, 2025 at 08:58:42AM +0530, Anshul Dalal wrote:
>
> > Using CMD_* configs from spl doesn't make logical sense. Therefore this
> > patch replaces the checks for CMD_BOOT[IZ] with newly added configs
> > SPL_HAS_BOOT[IZ].
> > 
> > An imply clause has been added for CMD_BOOTZ to avoid breaking configs
> > that rely on CMD_BOOTZ in falcon boot. There is no such need for
> > CMD_BOOTI since it's already enabled by default for the platforms that
> > support the image format.
> > 
> > More info:
> > https://lore.kernel.org/u-boot/20250310135544.GV2640854@bill-the-cat/
> [snip]
> > diff --git a/cmd/Kconfig b/cmd/Kconfig
> > index a04fcaa0e08..9f2ba4d02f8 100644
> > --- a/cmd/Kconfig
> > +++ b/cmd/Kconfig
> > @@ -352,6 +352,7 @@ config BOOTM_ELF
> >  
> >  config CMD_BOOTZ
> >  	bool "bootz"
> > +	imply SPL_HAS_BOOTZ
> >  	help
> >  	  Boot the Linux zImage
> >  
> > diff --git a/common/spl/Kconfig b/common/spl/Kconfig
> > index 21a5cefee7a..49eb513f923 100644
> > --- a/common/spl/Kconfig
> > +++ b/common/spl/Kconfig
> > @@ -1153,6 +1153,19 @@ config SPL_OS_BOOT
> >  	  Enable booting directly to an OS from SPL.
> >  	  for more info read doc/README.falcon
> >  
> > +config SPL_HAS_BOOTZ
> > +	bool "Allow booting a zImage style Linux kernel from SPL"
> > +	depends on SPL_OS_BOOT
> > +	help
> > +	  Boot a linux zimage from memory in falcon boot.
>
> I was going to say this to v3 but you posted v4 already. The solution to
> existing platforms is "default y if ARM && !ARM64" here.

That makes sense, this keeps the defaults consistent between both
SPL_HAS_BOOTI and BOOTZ. I have addressed the changes in v5.

Thanks for the input :)

Anshul


  reply	other threads:[~2025-03-14  4:01 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-13  3:28 [PATCH v4] spl: remove usage of CMD_BOOT[IZ] from image parsing Anshul Dalal
2025-03-13 14:51 ` Tom Rini
2025-03-14  4:00   ` Anshul Dalal [this message]
2025-03-14  4:02 ` Anshul Dalal

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=D8FOTRTJIAZO.3HCU80EKTZGCO@ti.com \
    --to=anshuld@ti.com \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    --cc=vigneshr@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.