log: correct CONFIG_LOG_TEST prerequisites
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Wed, 26 Feb 2020 20:48:15 +0000 (21:48 +0100)
committerSimon Glass <sjg@chromium.org>
Thu, 16 Apr 2020 14:07:57 +0000 (08:07 -0600)
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>
Reviewed-by: Simon Glass <sjg@chromium.org>
common/Kconfig

index 307265108263aa4dd663651ee8d1f039d2d74b98..40da8fa7a3d9f8445a1a806696f3f5ac061a766d 100644 (file)
@@ -777,7 +777,7 @@ config TPL_LOG_CONSOLE
 
 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