From: Evgeny Bachinin Date: Mon, 2 Dec 2024 13:45:24 +0000 (+0300) Subject: test: sandbox: fix link error with do_ut_bloblist if BLOBLIST=n X-Git-Tag: v2025.04-rc1~17^2~39^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6970eeb78858478d62fc96859f29c28376f9c5e1;p=thirdparty%2Fu-boot.git test: sandbox: fix link error with do_ut_bloblist if BLOBLIST=n 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 Reviewed-by: Simon Glass --- diff --git a/test/cmd_ut.c b/test/cmd_ut.c index 195b7ea50ac..842c2c3e7f6 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