Skip to content

Commit

Permalink
os:Kconfig Add new menuconfigs(Runtime, Device Manage)
Browse files Browse the repository at this point in the history
  • Loading branch information
pillip8282 committed Sep 15, 2017
1 parent fe787c0 commit 121a464
Show file tree
Hide file tree
Showing 5 changed files with 62 additions and 33 deletions.
37 changes: 4 additions & 33 deletions external/Kconfig
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#
# For a description of the syntax of this configuration file,
# see kconfig-language at https://www.kernel.org/doc/Documentation/kbuild/kconfig-language.txt
#

config LWM2M_WAKAAMA
bool "LWM2M_WAKAAMA"
Expand Down Expand Up @@ -33,39 +37,6 @@ config LWM2M_LITTLE_ENDIAN
BIG_ENDIAN will be used instead of it
endif

config DM
bool "DM"
default n
depends on NET
select LWM2M_WAKAAMA
---help---
enable the DM functionality

if DM
menuconfig DM_WIFI
bool "Set Up Wifi Info For DM Demo"
default y
---help---
Enable the artik demo example

if DM_WIFI

config DM_AP_SSID
string "wifi ap ssid"
default "SSID"

config DM_AP_PASS
string "wifi ap password"
default "PASSWORD"

config DM_AP_SECURITY
string "wifi join security"
default "wpa2_aes"

endif #DM_WIFI

endif

menuconfig ENABLE_IOTIVITY
bool "enable / disable iotivity stack"
default n
Expand Down
37 changes: 37 additions & 0 deletions framework/src/dm/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#
# For a description of the syntax of this configuration file,
# see kconfig-language at https://www.kernel.org/doc/Documentation/kbuild/kconfig-language.txt
#

config DM
bool "DM"
default n
depends on NET
select LWM2M_WAKAAMA
---help---
enable the DM functionality

if DM
menuconfig DM_WIFI
bool "Set Up Wifi Info For DM Demo"
default y
---help---
Enable the artik demo example

if DM_WIFI

config DM_AP_SSID
string "wifi ap ssid"
default "SSID"

config DM_AP_PASS
string "wifi ap password"
default "PASSWORD"

config DM_AP_SECURITY
string "wifi join security"
default "wpa2_aes"

endif #DM_WIFI

endif
9 changes: 9 additions & 0 deletions os/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -501,3 +501,12 @@ endmenu
menu "Application Configuration"
source "$APPSDIR/Kconfig"
endmenu

menu "Runtime Environment"
source Kconfig.runtime
endmenu

menu "Device Management"
source Kconfig.devmng
endmenu

7 changes: 7 additions & 0 deletions os/Kconfig.devmng
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#
# For a description of the syntax of this configuration file,
# see kconfig-language at https://www.kernel.org/doc/Documentation/kbuild/kconfig-language.txt
#

source ../framework/src/dm/Kconfig

5 changes: 5 additions & 0 deletions os/Kconfig.runtime
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#
# For a description of the syntax of this configuration file,
# see kconfig-language at https://www.kernel.org/doc/Documentation/kbuild/kconfig-language.txt
#

0 comments on commit 121a464

Please sign in to comment.