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>
This commit is contained in:
parent
416ba35d50
commit
a4f74eb11c
1 changed files with 21 additions and 1 deletions
|
@ -25,6 +25,10 @@ PKG_INSTALL:=1
|
||||||
PKG_BUILD_PARALLEL:=1
|
PKG_BUILD_PARALLEL:=1
|
||||||
PKG_USE_MIPS16:=0
|
PKG_USE_MIPS16:=0
|
||||||
|
|
||||||
|
PKG_CONFIG_DEPENDS:= \
|
||||||
|
PACKAGE_COLLECTD_ENCRYPTED_NETWORK \
|
||||||
|
PACKAGE_COLLECTD_DEBUG_OUTPUT_ENABLE
|
||||||
|
|
||||||
COLLECTD_PLUGINS_DISABLED:= \
|
COLLECTD_PLUGINS_DISABLED:= \
|
||||||
amqp \
|
amqp \
|
||||||
ampq1 \
|
ampq1 \
|
||||||
|
@ -242,12 +246,20 @@ define Package/collectd/config
|
||||||
default n
|
default n
|
||||||
depends on PACKAGE_collectd
|
depends on PACKAGE_collectd
|
||||||
select PACKAGE_collectd-mod-network
|
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
|
endef
|
||||||
|
|
||||||
# common configure args
|
# common configure args
|
||||||
CONFIGURE_ARGS+= \
|
CONFIGURE_ARGS+= \
|
||||||
--disable-werror \
|
--disable-werror \
|
||||||
--disable-debug \
|
|
||||||
--enable-daemon \
|
--enable-daemon \
|
||||||
--with-nan-emulation \
|
--with-nan-emulation \
|
||||||
--with-libyajl=no \
|
--with-libyajl=no \
|
||||||
|
@ -273,6 +285,14 @@ CONFIGURE_ARGS+= \
|
||||||
--without-libgcrypt
|
--without-libgcrypt
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(CONFIG_PACKAGE_COLLECTD_DEBUG_OUTPUT_ENABLE),y)
|
||||||
|
CONFIGURE_ARGS+= \
|
||||||
|
--enable-debug
|
||||||
|
else
|
||||||
|
CONFIGURE_ARGS+= \
|
||||||
|
--disable-debug
|
||||||
|
endif
|
||||||
|
|
||||||
CONFIGURE_PLUGIN= \
|
CONFIGURE_PLUGIN= \
|
||||||
$(foreach m, $(1), \
|
$(foreach m, $(1), \
|
||||||
$(if $(CONFIG_PACKAGE_collectd-mod-$(subst _,-,$(m))),--enable-$(m),--disable-$(m)) \
|
$(if $(CONFIG_PACKAGE_collectd-mod-$(subst _,-,$(m))),--enable-$(m),--disable-$(m)) \
|
||||||
|
|
Loading…
Reference in a new issue