iotivity: modify Kconfig
authorsunghan <sh924.chang@samsung.com>
Tue, 12 Sep 2017 07:22:22 +0000 (16:22 +0900)
committersunghan <sh924.chang@samsung.com>
Tue, 12 Sep 2017 07:22:22 +0000 (16:22 +0900)
1. Move a comment location to show title when iotivity is enabled.
2. Iotivity is an one component of external so that it makes menuconfig.
3. Remove a dependancy from all of iotivity configs and make a conditional

external/Kconfig

index b1e3912..938cdf0 100644 (file)
@@ -66,9 +66,7 @@ endif #DM_WIFI
 
 endif
 
-menu "IOTIVITY Config Parameters"
-
-config ENABLE_IOTIVITY
+menuconfig ENABLE_IOTIVITY
        bool "enable / disable iotivity stack"
        default n
        select LIBC_NETDB
@@ -77,91 +75,83 @@ config ENABLE_IOTIVITY
        ---help---
                select to enable the iotivity stack in tinyara
 
+if ENABLE_IOTIVITY
+
+comment "IOTIVITY Config Parameters"
+
 config IOTIVITY_RELEASE_VERSION
        string "iotivity stack version"
        default "1.2-rel"
-       depends on ENABLE_IOTIVITY
        ---help---
                define this to iotivity stack release veriosn in use
 
 config IOTIVITY_ROUTING
        string "Enable routing, allowed values : 'EP' / 'GW' "
        default "EP"
-       depends on ENABLE_IOTIVITY
        ---help---
                define this to enable routing, allowed values : 'EP' / 'GW'
 
 config IOTIVITY_PTHREAD_STACKSIZE
        int "Default pthread stack size for iotivity threads"
        default 8192
-       depends on ENABLE_IOTIVITY
        ---help---
                Default pthread stack size for iotivity threads
 
 config IOTIVITY_QUEING_PTHREAD_STACKSIZE
        int "Default pthread stack size for the queing thread"
        default 3072
-       depends on ENABLE_IOTIVITY
        ---help---
                Default pthread stack size for the queing thread
 
 config IOTIVITY_RETRANSMIT_PTHREAD_STACKSIZE
        int "Default pthread stack size for the retransmission pthread"
        default 1024
-       depends on ENABLE_IOTIVITY
        ---help---
                Default pthread stack size for the retransmission pthread
 
 config IOTIVITY_TCPRECEIVE_PTHREAD_STACKSIZE
        int "Default pthread stack size for the TCP-receive thread"
        default 8192
-       depends on ENABLE_IOTIVITY
        ---help---
                Default pthread stack size for the TCP-receive thread
 
 config IOTIVITY_RECEIVEHANDLER_PTHREAD_STACKSIZE
        int "Default pthread stack size for the receive-handler thread"
        default 8192
-       depends on ENABLE_IOTIVITY
        ---help---
                Default pthread stack size for the receive-handler thread
 
 config ENABLE_IOTIVITY_SECURED
        bool "enable iotivity security"
        default n
-       depends on ENABLE_IOTIVITY
        ---help---
                select to enable the security for iotivity stack in tinyara
 
 config ENABLE_IOTIVITY_CLOUD
        bool "enable iotivity cloud"
        default n
-       depends on ENABLE_IOTIVITY
        ---help---
                select to enable the cloud for iotivity stack in tinyara
 
 config IOTIVITY_RELEASE
        bool "Set Iotivity to Release mode"
        default y
-       depends on ENABLE_IOTIVITY
        ---help---
                select to build IoTivity in Release mode. Code will be optimized.
 
 config IOTIVITY_DEBUG
         bool "enable iotivity stack logs"
         default n
-        depends on ENABLE_IOTIVITY
         ---help---
                 select to enable all iotivity stack logs (DEBUG / INFO etc.)
 
 config IOTIVITY_NS_PROVIDER
         bool "enable iotivity notification service(provider only)"
         default n
-        depends on ENABLE_IOTIVITY
         ---help---
                 select to enable iotivity Notification Provider Service
 
-endmenu #IOTIVITY Config Parameters
+endif # ENABLE_IOTIVITY
 
 config LIBTUV
        bool "libtuv"