diff options
author | Florian Eckert <fe@dev.tdt.de> | 2021-03-08 14:40:34 +0100 |
---|---|---|
committer | Florian Eckert <fe@dev.tdt.de> | 2021-03-16 13:23:08 +0100 |
commit | a4f74eb11c1bfa6d708934b3885be589e39e8851 (patch) | |
tree | 3833457bca6ef4c00637f6bf82420ca2ec5f2bb3 /utils/collectd | |
parent | 416ba35d50e3381a23caf0ee0d0758a26e29a4f5 (diff) |
collectd: make compile time debug option configurable
Enables the compiler option that collectd is compiled with
debugging support. This is used at development stages to get
more messages from the collectd during development.
This option is default disabled.
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Diffstat (limited to 'utils/collectd')
-rw-r--r-- | utils/collectd/Makefile | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/utils/collectd/Makefile b/utils/collectd/Makefile index 3ff08596a..4c3a055ac 100644 --- a/utils/collectd/Makefile +++ b/utils/collectd/Makefile @@ -25,6 +25,10 @@ PKG_INSTALL:=1 PKG_BUILD_PARALLEL:=1 PKG_USE_MIPS16:=0 +PKG_CONFIG_DEPENDS:= \ + PACKAGE_COLLECTD_ENCRYPTED_NETWORK \ + PACKAGE_COLLECTD_DEBUG_OUTPUT_ENABLE + COLLECTD_PLUGINS_DISABLED:= \ amqp \ ampq1 \ @@ -242,12 +246,20 @@ define Package/collectd/config default n depends on PACKAGE_collectd select PACKAGE_collectd-mod-network + + config PACKAGE_COLLECTD_DEBUG_OUTPUT_ENABLE + bool "Enable debug output" + default n + depends on PACKAGE_collectd + help + Enables the compiler option that collectd is compiled with + debugging support. This is used at development stages to get + more messages from the collectd during development. endef # common configure args CONFIGURE_ARGS+= \ --disable-werror \ - --disable-debug \ --enable-daemon \ --with-nan-emulation \ --with-libyajl=no \ @@ -273,6 +285,14 @@ CONFIGURE_ARGS+= \ --without-libgcrypt endif +ifeq ($(CONFIG_PACKAGE_COLLECTD_DEBUG_OUTPUT_ENABLE),y) +CONFIGURE_ARGS+= \ + --enable-debug +else +CONFIGURE_ARGS+= \ + --disable-debug +endif + CONFIGURE_PLUGIN= \ $(foreach m, $(1), \ $(if $(CONFIG_PACKAGE_collectd-mod-$(subst _,-,$(m))),--enable-$(m),--disable-$(m)) \ |