From: Mattijs Korpershoek <mkorpershoek@kernel.org>
To: Mattijs Korpershoek <mkorpershoek@kernel.org>,
u-boot@lists.denx.de, George Chan <gchan9527@gmail.com>
Subject: Re: [PATCH] boot: bootmeth_android: Conditionally dependent on abootimg
Date: Mon, 03 Nov 2025 13:19:04 +0100 [thread overview]
Message-ID: <87tszb2ts7.fsf@kernel.org> (raw)
In-Reply-To: <176192343323.290092.16053648607478981549.b4-ty@kernel.org>
Hi George,
On Fri, Oct 31, 2025 at 16:10, Mattijs Korpershoek <mkorpershoek@kernel.org> wrote:
> Hi,
>
> On Tue, 21 Oct 2025 00:36:33 +0800, George Chan wrote:
>> If target u-boot img do not support androidboot v3 or greater,
>> abootimg might not be necessary.
>>
>> aarch64-linux-gnu-ld.bfd: boot/bootmeth_android.o: in function `boot_android_normal':
>> /home/user/sources/u-boot-next/boot/bootmeth_android.c:541:(.text.boot_android_normal+0xd0): undefined reference to `set_avendor_bootimg_addr'
>> aarch64-linux-gnu-ld.bfd: /home/user/sources/u-boot-next/boot/bootmeth_android.c:543:(.text.boot_android_normal+0xd8): undefined reference to `set_abootimg_addr'
>> Segmentation fault (core dumped)
>>
>> [...]
>
> Thanks, Applied to https://source.denx.de/u-boot/custodians/u-boot-dfu (u-boot-dfu)
>
> [1/1] boot: bootmeth_android: Conditionally dependent on abootimg
> https://source.denx.de/u-boot/custodians/u-boot-dfu/-/commit/4b493b9664390e16f61a6409ec60676df7759c7b
This patch causes CI to fail:
https://source.denx.de/u-boot/custodians/u-boot-dfu/-/jobs/1283315
"""
building current source for 1 boards (1 thread, 8 jobs per thread)
sandbox: + sandbox
+cmd/abootimg.c:26:6: error: redefinition of 'set_abootimg_addr'
+ 26 | void set_abootimg_addr(ulong addr)
+ | ^
+include/image.h:2042:13: note: previous definition is here
+ 2042 | void __weak set_abootimg_addr(ulong addr) {}
+ | ^
"""
This can also be reproduced locally by building sandbox:
$ make sandbox_defconfig
$ make
Can you have a look please? I will have to drop this from my branch
until the build error is resolved.
If you find a fix, please send a v2 of this patch with the fix included.
Thanks
Mattijs
>
> --
> Mattijs
next prev parent reply other threads:[~2025-11-03 12:19 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-20 16:36 [PATCH] boot: bootmeth_android: Conditionally dependent on abootimg George Chan via B4 Relay
2025-10-28 8:38 ` Mattijs Korpershoek
2025-10-31 15:10 ` Mattijs Korpershoek
2025-11-03 12:19 ` Mattijs Korpershoek [this message]
2025-11-04 10:40 ` george chan
2025-11-06 8:54 ` 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=87tszb2ts7.fsf@kernel.org \
--to=mkorpershoek@kernel.org \
--cc=gchan9527@gmail.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