瀏覽代碼

package/wolftpm: add config option to enable debug output

Signed-off-by: Dimitar Tomov <dimi@tpm.dev>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Dimitar Tomov 2 年之前
父節點
當前提交
fada6de8b0
共有 2 個文件被更改,包括 11 次插入0 次删除
  1. 5 0
      package/wolftpm/Config.in
  2. 6 0
      package/wolftpm/wolftpm.mk

+ 5 - 0
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
 

+ 6 - 0
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))