All of lore.kernel.org
 help / color / mirror / Atom feed
From: Heinrich Schuchardt <xypron.glpk@gmx.de>
To: u-boot@lists.denx.de
Subject: [PATCH v4 1/6] log: correct CONFIG_LOG_TEST prerequisites
Date: Mon, 17 Feb 2020 07:43:09 +0100	[thread overview]
Message-ID: <20200217064314.67584-2-xypron.glpk@gmx.de> (raw)
In-Reply-To: <20200217064314.67584-1-xypron.glpk@gmx.de>

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>
---
v4:
	no change
---
 common/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/common/Kconfig b/common/Kconfig
index 4bc3df4e1b..cfeb6ea648 100644
--- a/common/Kconfig
+++ b/common/Kconfig
@@ -775,7 +775,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
--
2.25.0

  reply	other threads:[~2020-02-17  6:43 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-17  6:43 [PATCH v4 0/6] log: syslog logging driver Heinrich Schuchardt
2020-02-17  6:43 ` Heinrich Schuchardt [this message]
2020-02-17  6:43 ` [PATCH v4 2/6] log: syslog driver Heinrich Schuchardt
2020-02-17  6:43 ` [PATCH v4 3/6] log: output for CONFIG_LOG=n Heinrich Schuchardt
2020-02-17  6:43 ` [PATCH v4 4/6] test: log functions with CONFIG_LOG=n Heinrich Schuchardt
2020-02-17  6:43 ` [PATCH v4 5/6] test: log: test syslog logging driver Heinrich Schuchardt
2020-02-17  6:43 ` [PATCH v4 6/6] configs: sandbox: enable LOG_SYSLOG Heinrich Schuchardt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200217064314.67584-2-xypron.glpk@gmx.de \
    --to=xypron.glpk@gmx.de \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.