]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
test: run setexpr test only on sandbox
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sat, 1 Oct 2022 19:42:35 +0000 (21:42 +0200)
committerTom Rini <trini@konsulko.com>
Wed, 12 Oct 2022 12:56:24 +0000 (08:56 -0400)
The test relies on memory being available at 0x0. This in not valid for
many boards.

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

index b7b9bd43f6b6488209ec2b82151cddf18ace2639..f2a5f4ed808d274afdca1dd03b6f735ea52b11aa 100644 (file)
@@ -15,5 +15,7 @@ obj-$(CONFIG_CMD_LOADM) += loadm.o
 obj-$(CONFIG_CMD_MEM_SEARCH) += mem_search.o
 obj-$(CONFIG_CMD_PINMUX) += pinmux.o
 obj-$(CONFIG_CMD_PWM) += pwm.o
+ifdef CONFIG_SANDBOX
 obj-$(CONFIG_CMD_SETEXPR) += setexpr.o
+endif
 obj-$(CONFIG_CMD_TEMPERATURE) += temperature.o
index 11c219b48acc59e1dbbd3cdf75d243ace5b5865c..99e53dddc150fca0a670e0998184d8298b11e11b 100644 (file)
@@ -62,7 +62,7 @@ static struct cmd_tbl cmd_ut_sub[] = {
        U_BOOT_CMD_MKENT(log, CONFIG_SYS_MAXARGS, 1, do_ut_log, "", ""),
 #endif
        U_BOOT_CMD_MKENT(mem, CONFIG_SYS_MAXARGS, 1, do_ut_mem, "", ""),
-#ifdef CONFIG_CMD_SETEXPR
+#if defined(CONFIG_SANDBOX) && defined(CONFIG_CMD_SETEXPR)
        U_BOOT_CMD_MKENT(setexpr, CONFIG_SYS_MAXARGS, 1, do_ut_setexpr, "",
                         ""),
 #endif