[PATCH 1/1] log: correct CONFIG_LOG_TEST prerequisites

An error
undefined reference to `do_log_test'
occurs for CONFIG_CMD_LOG=y, CONFIG_LOG_TEST=y, CONGIG_UNIT_TEST=n
Make CONFIG_UNIT_TEST a prerequisite.
Signed-off-by: Heinrich Schuchardt xypron.glpk@gmx.de --- common/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/common/Kconfig b/common/Kconfig index 16a67f5f76..5ad23ce2c4 100644 --- a/common/Kconfig +++ b/common/Kconfig @@ -782,7 +782,7 @@ config LOG_SYSLOG
config LOG_TEST bool "Provide a test for logging" - depends on LOG + depends on LOG && UNIT_TEST default y if SANDBOX help This enables a 'log test' command to test logging. It is normally -- 2.24.1

On Sun, Feb 9, 2020 at 6:17 AM Heinrich Schuchardt xypron.glpk@gmx.de wrote:
An error
undefined reference to `do_log_test'
occurs for CONFIG_CMD_LOG=y, CONFIG_LOG_TEST=y, CONGIG_UNIT_TEST=n
Make CONFIG_UNIT_TEST a prerequisite.
Signed-off-by: Heinrich Schuchardt xypron.glpk@gmx.de
common/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by: Bin Meng bmeng.cn@gmail.com

On Sat, 8 Feb 2020 at 15:17, Heinrich Schuchardt xypron.glpk@gmx.de wrote:
An error
undefined reference to `do_log_test'
occurs for CONFIG_CMD_LOG=y, CONFIG_LOG_TEST=y, CONGIG_UNIT_TEST=n
Make CONFIG_UNIT_TEST a prerequisite.
Signed-off-by: Heinrich Schuchardt xypron.glpk@gmx.de
common/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by: Simon Glass sjg@chromium.org
participants (3)
-
Bin Meng
-
Heinrich Schuchardt
-
Simon Glass