* [PATCH] boot: fix missing dependency for BOOTMETH_ANDROID
@ 2025-12-18 12:19 Quentin Schulz
2025-12-18 13:44 ` Mattijs Korpershoek
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Quentin Schulz @ 2025-12-18 12:19 UTC (permalink / raw)
To: Julien Masson, Simon Glass, Mattijs Korpershoek, u-boot
Cc: Tom Rini, Kory Maincent (TI.com), Casey Connolly, Martin Schwan,
Anshul Dalal, Marek Vasut, Wolfgang Wallner, Quentin Schulz
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>
---
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>
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] boot: fix missing dependency for BOOTMETH_ANDROID
2025-12-18 12:19 [PATCH] boot: fix missing dependency for BOOTMETH_ANDROID Quentin Schulz
@ 2025-12-18 13:44 ` Mattijs Korpershoek
2025-12-18 14:11 ` Kory Maincent
2026-01-09 8:25 ` Mattijs Korpershoek
2 siblings, 0 replies; 4+ messages in thread
From: Mattijs Korpershoek @ 2025-12-18 13:44 UTC (permalink / raw)
To: Quentin Schulz, Julien Masson, Simon Glass, Mattijs Korpershoek,
u-boot
Cc: Tom Rini, Kory Maincent (TI.com), Casey Connolly, Martin Schwan,
Anshul Dalal, Marek Vasut, Wolfgang Wallner, Quentin Schulz
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>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] boot: fix missing dependency for BOOTMETH_ANDROID
2025-12-18 12:19 [PATCH] boot: fix missing dependency for BOOTMETH_ANDROID Quentin Schulz
2025-12-18 13:44 ` Mattijs Korpershoek
@ 2025-12-18 14:11 ` Kory Maincent
2026-01-09 8:25 ` Mattijs Korpershoek
2 siblings, 0 replies; 4+ messages in thread
From: Kory Maincent @ 2025-12-18 14:11 UTC (permalink / raw)
To: Quentin Schulz
Cc: Julien Masson, Simon Glass, Mattijs Korpershoek, u-boot, Tom Rini,
Casey Connolly, Martin Schwan, Anshul Dalal, Marek Vasut,
Wolfgang Wallner, Quentin Schulz
On Thu, 18 Dec 2025 13:19:07 +0100
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: Kory Maincent <kory.maincent@bootlin.com>
Thank you!
--
Köry Maincent, Bootlin
Embedded Linux and kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] boot: fix missing dependency for BOOTMETH_ANDROID
2025-12-18 12:19 [PATCH] boot: fix missing dependency for BOOTMETH_ANDROID Quentin Schulz
2025-12-18 13:44 ` Mattijs Korpershoek
2025-12-18 14:11 ` Kory Maincent
@ 2026-01-09 8:25 ` Mattijs Korpershoek
2 siblings, 0 replies; 4+ messages in thread
From: Mattijs Korpershoek @ 2026-01-09 8:25 UTC (permalink / raw)
To: Julien Masson, Simon Glass, u-boot, Quentin Schulz
Cc: Tom Rini, Kory Maincent (TI.com), Casey Connolly, Martin Schwan,
Anshul Dalal, Marek Vasut, Wolfgang Wallner, Quentin Schulz
Hi,
On Thu, 18 Dec 2025 13:19:07 +0100, Quentin Schulz wrote:
> 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
>
> [...]
Thanks, Applied to https://source.denx.de/u-boot/custodians/u-boot-dfu (u-boot-dfu)
[1/1] boot: fix missing dependency for BOOTMETH_ANDROID
https://source.denx.de/u-boot/custodians/u-boot-dfu/-/commit/1cd0a441066d3003c63fc90d936f6c4e1b47c896
--
Mattijs
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-01-09 8:25 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-18 12:19 [PATCH] boot: fix missing dependency for BOOTMETH_ANDROID Quentin Schulz
2025-12-18 13:44 ` Mattijs Korpershoek
2025-12-18 14:11 ` Kory Maincent
2026-01-09 8:25 ` Mattijs Korpershoek
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.