[PATCH 07/19] test: cmd_exit_test depends on CONFIG_HUSH_PARSER

Heinrich Schuchardt heinrich.schuchardt at canonical.com
Sun Nov 23 23:56:59 CET 2025


The exit command is not available if CONFIG_HUSH_PARSER=n

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt at canonical.com>
---
 test/Kconfig      | 1 +
 test/cmd/Makefile | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/test/Kconfig b/test/Kconfig
index 77e7cad3984..6a4a5fc6708 100644
--- a/test/Kconfig
+++ b/test/Kconfig
@@ -3,6 +3,7 @@ menu "Testing"
 config UNIT_TEST
 	bool "Unit tests"
 	depends on CMDLINE
+	imply HEXDUMP
 	help
 	  Select this to compile in unit tests for various parts of
 	  U-Boot. Test suites will be subcommands of the "ut" command.
diff --git a/test/cmd/Makefile b/test/cmd/Makefile
index 841763fec02..d7ff11e458a 100644
--- a/test/cmd/Makefile
+++ b/test/cmd/Makefile
@@ -10,7 +10,7 @@ endif
 ifdef CONFIG_CONSOLE_RECORD
 obj-$(CONFIG_CMD_PAUSE) += test_pause.o
 endif
-obj-y += exit.o
+obj-$(CONFIG_HUSH_PARSER) += exit.o
 obj-$(CONFIG_X86) += cpuid.o msr.o
 obj-$(CONFIG_CMD_ADDRMAP) += addrmap.o
 ifdef CONFIG_CONSOLE_RECORD
-- 
2.51.0



More information about the U-Boot mailing list