From fada6de8b0798f896626723c3cc6a7aea4521d48 Mon Sep 17 00:00:00 2001 From: Dimitar Tomov Date: Wed, 12 Oct 2022 10:54:23 +0300 Subject: [PATCH] package/wolftpm: add config option to enable debug output Signed-off-by: Dimitar Tomov Signed-off-by: Thomas Petazzoni --- 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))