The test relies on memory being available at 0x0. This in not valid for many boards.
Signed-off-by: Heinrich Schuchardt <heinrich.schucha...@canonical.com> --- test/cmd/Makefile | 2 ++ test/cmd_ut.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/test/cmd/Makefile b/test/cmd/Makefile index c331757425..d084494bd5 100644 --- a/test/cmd/Makefile +++ b/test/cmd/Makefile @@ -12,4 +12,6 @@ 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 diff --git a/test/cmd_ut.c b/test/cmd_ut.c index 63443cfa6f..634dc193fb 100644 --- a/test/cmd_ut.c +++ b/test/cmd_ut.c @@ -55,7 +55,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 -- 2.37.2