All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dimi Tomov <dimi@tpm.dev>
To: buildroot@buildroot.org
Cc: Dimitar Tomov <dimi@tpm.dev>,
	Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Subject: [Buildroot] [PATCH 2/2] package/wolftpm: Add new config option to enable debug output
Date: Wed, 12 Oct 2022 10:54:23 +0300	[thread overview]
Message-ID: <20221012075423.14729-2-dimi@tpm.dev> (raw)
In-Reply-To: <20221012075423.14729-1-dimi@tpm.dev>

From: Dimitar Tomov <dimi@tpm.dev>

Signed-off-by: Dimitar Tomov <dimi@tpm.dev>
---
 package/wolftpm/Config.in  | 5 +++++
 package/wolftpm/wolftpm.mk | 6 ++++++
 2 files changed, 11 insertions(+)

diff --git a/package/wolftpm/Config.in b/package/wolftpm/Config.in
index 7ebb253857..4e712d0afb 100644
--- a/package/wolftpm/Config.in
+++ b/package/wolftpm/Config.in
@@ -35,6 +35,11 @@ config BR2_PACKAGE_WOLFTPM_NUVOTON
 	  Enable support of TPM 2.0 extra functionality offered by the
 	  Nuvoton NPCT750 chip.
 
+config BR2_PACKAGE_WOLFTPM_DEBUG
+	bool "Debug output"
+	help
+	  Enable debug messages in wolfTPM.
+
 comment "wolfCrypt hooks need a toolchain w/ threads, dynamic library"
 	depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS
 
diff --git a/package/wolftpm/wolftpm.mk b/package/wolftpm/wolftpm.mk
index f217322545..398fa668af 100644
--- a/package/wolftpm/wolftpm.mk
+++ b/package/wolftpm/wolftpm.mk
@@ -47,4 +47,10 @@ else
 WOLFTPM_CONF_OPTS += --disable-nuvoton
 endif
 
+ifeq ($(BR2_PACKAGE_WOLFTPM_DEBUG),y)
+WOLFTPM_CONF_OPTS += --enable-debug
+else
+WOLFTPM_CONF_OPTS += --disable-debug
+endif
+
 $(eval $(autotools-package))
-- 
2.27.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

  reply	other threads:[~2022-10-12  7:54 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-12  7:54 [Buildroot] [PATCH 1/2] package/wolftpm: Update version to v2.6.0 Dimi Tomov
2022-10-12  7:54 ` Dimi Tomov [this message]
2022-10-30 21:32   ` [Buildroot] [PATCH 2/2] package/wolftpm: Add new config option to enable debug output Thomas Petazzoni via buildroot
2022-10-13 12:17 ` [Buildroot] [PATCH 1/2] package/wolftpm: Update version to v2.6.0 Dimi Tomov
2022-10-30 21:29 ` Thomas Petazzoni via buildroot

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=20221012075423.14729-2-dimi@tpm.dev \
    --to=dimi@tpm.dev \
    --cc=buildroot@buildroot.org \
    --cc=thomas.petazzoni@bootlin.com \
    /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.