]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
test: CONFIG_UT_BOOTSTD must depend on CONFIG_BOOTSTD
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sat, 16 Dec 2023 15:46:31 +0000 (16:46 +0100)
committerTom Rini <trini@konsulko.com>
Fri, 12 Jan 2024 02:19:25 +0000 (21:19 -0500)
Building sandbox_defconfig with

    CONFIG_BOOTSTD=n
    CONFIG_UT_BOOTSTD=y

leads to an error

    /usr/bin/ld: test/cmd_ut.o:(.data.rel.cmd_ut_sub+0xc0):
    undefined reference to `do_ut_bootstd'

Add the missing dependency.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
test/Kconfig

index e842c01308f99da48826a69347b8380fa1941994..e2ec0994a2e467565ad865b9793ad5b363ddacf4 100644 (file)
@@ -67,7 +67,7 @@ endif
 
 config UT_BOOTSTD
        bool "Unit tests for standard boot"
-       depends on UNIT_TEST && SANDBOX
+       depends on UNIT_TEST && BOOTSTD && SANDBOX
        default y
 
 config UT_COMPRESSION