iotivity: make logging configurable
Before this change logging was always activated and then IoTivity wrote a lot of debug messages. Make it now configurable. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
This commit is contained in:
parent
a2bc69df69
commit
0c5eb5aff1
|
@ -66,6 +66,12 @@ define Package/iotivity/config
|
||||||
help
|
help
|
||||||
Activate security support.
|
Activate security support.
|
||||||
|
|
||||||
|
config PACKAGE_iotivity_LOGGING
|
||||||
|
bool "IoTivity with logging support"
|
||||||
|
default y
|
||||||
|
help
|
||||||
|
Activate logging support.
|
||||||
|
This will make IoTivity write a lot of log messages to stdout.
|
||||||
endif
|
endif
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
@ -178,7 +184,6 @@ SCONS_OPTIONS += \
|
||||||
TARGET_TRANSPORT=IP \
|
TARGET_TRANSPORT=IP \
|
||||||
TARGET_ARCH=$(ARCH) \
|
TARGET_ARCH=$(ARCH) \
|
||||||
STAGING_DIR=$(STAGING_DIR) \
|
STAGING_DIR=$(STAGING_DIR) \
|
||||||
LOGGING=true \
|
|
||||||
WITH_ENV=true \
|
WITH_ENV=true \
|
||||||
octbstack oc \
|
octbstack oc \
|
||||||
$(if $(CONFIG_PACKAGE_iotivity-oic-middle),examples) \
|
$(if $(CONFIG_PACKAGE_iotivity-oic-middle),examples) \
|
||||||
|
@ -203,6 +208,10 @@ else
|
||||||
SCONS_OPTIONS += SECURED=0
|
SCONS_OPTIONS += SECURED=0
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(CONFIG_PACKAGE_iotivity_LOGGING),y)
|
||||||
|
SCONS_OPTIONS += LOGGING=true
|
||||||
|
endif
|
||||||
|
|
||||||
ifneq ($(findstring c,$(OPENWRT_VERBOSE)),)
|
ifneq ($(findstring c,$(OPENWRT_VERBOSE)),)
|
||||||
SCONS_OPTIONS += VERBOSE=true
|
SCONS_OPTIONS += VERBOSE=true
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in New Issue