[PATCH 3/5] test: sandbox: fix link error with do_ut_bloblist if BLOBLIST=n
Simon Glass
sjg at chromium.org
Fri Dec 6 16:31:20 CET 2024
On Mon, 2 Dec 2024 at 06:46, Evgeny Bachinin
<EABachinin at salutedevices.com> wrote:
>
> Having CONFIG_OF_EMBED=y && CONFIG_BLOBLIST=n leads to the link
> error:
> ```
> ld: /tmp/ccwtRVty.ltrans28.ltrans.o:(.data.rel+0x4b0): undefined \
> reference to `do_ut_bloblist'
> ```
>
> Fixes: 6ea5df39e8d ("test: Only enable bloblist test when supported")
> Signed-off-by: Evgeny Bachinin <EABachinin at salutedevices.com>
> ---
> test/cmd_ut.c | 2 ++
> 1 file changed, 2 insertions(+)
Reviewed-by: Simon Glass <sjg at chromium.org>
>
> diff --git a/test/cmd_ut.c b/test/cmd_ut.c
> index 195b7ea50accde470a739771e058c1d664df3f0b..842c2c3e7f65eb9fe017fa1949eb2390be171487 100644
> --- a/test/cmd_ut.c
> +++ b/test/cmd_ut.c
> @@ -104,8 +104,10 @@ static struct cmd_tbl cmd_ut_sub[] = {
> "", ""),
> #endif
> #ifdef CONFIG_SANDBOX
> +#if CONFIG_IS_ENABLED(BLOBLIST)
> U_BOOT_CMD_MKENT(bloblist, CONFIG_SYS_MAXARGS, 1, do_ut_bloblist,
> "", ""),
> +#endif
> U_BOOT_CMD_MKENT(bootm, CONFIG_SYS_MAXARGS, 1, do_ut_bootm, "", ""),
> #endif
> #ifdef CONFIG_CMD_ADDRMAP
>
> --
> 2.34.1
>
More information about the U-Boot
mailing list