浏览代码

package/chrony: add option for debug logging

Add a BR2_PACKAGE_CHRONY_DEBUG_LOGGING config option to allow enabling
compiled-in support for debug logging in Chrony.

Signed-off-by: Robert Hancock <hancock@sedsystems.ca>
[Arnout: don't enable by default]
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Robert Hancock 6 年之前
父节点
当前提交
4cef093f66
共有 2 个文件被更改,包括 10 次插入1 次删除
  1. 8 0
      package/chrony/Config.in
  2. 2 1
      package/chrony/chrony.mk

+ 8 - 0
package/chrony/Config.in

@@ -6,3 +6,11 @@ config BR2_PACKAGE_CHRONY
 	  accuracy of the system clock.
 
 	  http://chrony.tuxfamily.org/
+
+config BR2_PACKAGE_CHRONY_DEBUG_LOGGING
+	bool "enable debug logging support"
+	depends on BR2_PACKAGE_CHRONY
+	help
+	  Enable support for debug logging output from Chrony when
+	  enabled at runtime. If disabled, code for debug logging will
+	  not be compiled in.

+ 2 - 1
package/chrony/chrony.mk

@@ -13,7 +13,8 @@ CHRONY_CONF_OPTS = \
 	--host-system=Linux \
 	--host-machine=$(BR2_ARCH) \
 	--prefix=/usr \
-	--without-tomcrypt
+	--without-tomcrypt \
+	$(if $(BR2_PACKAGE_CHRONY_DEBUG_LOGGING),--enable-debug,--disable-debug)
 
 ifeq ($(BR2_PACKAGE_LIBCAP),y)
 CHRONY_DEPENDENCIES += libcap