diff options
author | Heinrich Schuchardt | 2022-10-01 21:42:35 +0200 |
---|---|---|
committer | Tom Rini | 2022-10-12 08:56:24 -0400 |
commit | 0b154c8e8c726c68a28847aaa93756f0612995dc (patch) | |
tree | 9afbaac9ae4e4bb937bbe472e850e280befe4e2c /test | |
parent | eebb967dce04426b5f4b5f4fda51fbf95dea4c32 (diff) |
test: run setexpr test only on sandbox
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>
Diffstat (limited to 'test')
-rw-r--r-- | test/cmd/Makefile | 2 | ||||
-rw-r--r-- | test/cmd_ut.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/test/cmd/Makefile b/test/cmd/Makefile index b7b9bd43f6b..f2a5f4ed808 100644 --- a/test/cmd/Makefile +++ b/test/cmd/Makefile @@ -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 diff --git a/test/cmd_ut.c b/test/cmd_ut.c index 11c219b48ac..99e53dddc15 100644 --- a/test/cmd_ut.c +++ b/test/cmd_ut.c @@ -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 |