All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mattijs Korpershoek <mkorpershoek@kernel.org>
To: Quentin Schulz <foss+uboot@0leil.net>,
	Julien Masson <jmasson@baylibre.com>,
	Simon Glass <sjg@chromium.org>,
	Mattijs Korpershoek <mkorpershoek@kernel.org>,
	u-boot@lists.denx.de
Cc: Tom Rini <trini@konsulko.com>,
	"Kory Maincent (TI.com)" <kory.maincent@bootlin.com>,
	Casey Connolly <casey.connolly@linaro.org>,
	Martin Schwan <m.schwan@phytec.de>, Anshul Dalal <anshuld@ti.com>,
	Marek Vasut <marek.vasut+renesas@mailbox.org>,
	Wolfgang Wallner <wolfgang.wallner@at.abb.com>,
	Quentin Schulz <quentin.schulz@cherry.de>
Subject: Re: [PATCH] boot: fix missing dependency for BOOTMETH_ANDROID
Date: Thu, 18 Dec 2025 14:44:38 +0100	[thread overview]
Message-ID: <875xa3dhvd.fsf@kernel.org> (raw)
In-Reply-To: <20251218-bootmeth_android-deps-v1-1-0113c804f951@cherry.de>

Hi Quentin,

Thank you for the patch.

On Thu, Dec 18, 2025 at 13:19, Quentin Schulz <foss+uboot@0leil.net> wrote:

> From: Quentin Schulz <quentin.schulz@cherry.de>
>
> The code depends on set_avendor_bootimg_addr and set_abootimg_addr
> functions which are only defined in cmd/abootimg.c, only built when
> CMD_ABOOTIMG=y so let's add a dependency.
>
> It should be "depends on" to be properly implemented, but we get a
> circular dependency otherwise:
> boot/Kconfig:566:error: recursive dependency detected!
> boot/Kconfig:566:	symbol BOOTMETH_ANDROID depends on CMD_ABOOTIMG
> cmd/Kconfig:504:	symbol CMD_ABOOTIMG depends on ANDROID_BOOT_IMAGE
> boot/Kconfig:7:	symbol ANDROID_BOOT_IMAGE is selected by BOOTMETH_ANDROID
>
> so instead we do a select. It is safe because CMD_ABOOTIMG depends on
> ANDROID_BOOT_IMAGE which we select here as well.
>
> Fixes: 125d9f3306ea ("bootstd: Add a bootmeth for Android")
> Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de>

Reviewed-by: Mattijs Korpershoek <mkorpershoek@kernel.org>

> ---
>  boot/Kconfig | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/boot/Kconfig b/boot/Kconfig
> index 245e120c70b..aa135a4e1a5 100644
> --- a/boot/Kconfig
> +++ b/boot/Kconfig
> @@ -568,6 +568,7 @@ config BOOTMETH_ANDROID
>  	depends on X86 || ARM || SANDBOX
>  	depends on CMDLINE
>  	select ANDROID_BOOT_IMAGE
> +	select CMD_ABOOTIMG
>  	select CMD_BCB
>  	imply CMD_FASTBOOT
>  	imply FASTBOOT if !NET_LWIP
>
> ---
> base-commit: 47b50fb1125c539d80ed3e7f739c02c6486e1b52
> change-id: 20251218-bootmeth_android-deps-a16555d168e5
>
> Best regards,
> -- 
> Quentin Schulz <quentin.schulz@cherry.de>

  reply	other threads:[~2025-12-18 13:44 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-12-18 12:19 [PATCH] boot: fix missing dependency for BOOTMETH_ANDROID Quentin Schulz
2025-12-18 13:44 ` Mattijs Korpershoek [this message]
2025-12-18 14:11 ` Kory Maincent
2026-01-09  8:25 ` Mattijs Korpershoek

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=875xa3dhvd.fsf@kernel.org \
    --to=mkorpershoek@kernel.org \
    --cc=anshuld@ti.com \
    --cc=casey.connolly@linaro.org \
    --cc=foss+uboot@0leil.net \
    --cc=jmasson@baylibre.com \
    --cc=kory.maincent@bootlin.com \
    --cc=m.schwan@phytec.de \
    --cc=marek.vasut+renesas@mailbox.org \
    --cc=quentin.schulz@cherry.de \
    --cc=sjg@chromium.org \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    --cc=wolfgang.wallner@at.abb.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.