File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,13 +17,13 @@ target_sources(app PRIVATE src/main.c)
1717
1818# Include mandatory module source folders
1919add_subdirectory (src/modules/network )
20- add_subdirectory (src/modules/cloud )
21- add_subdirectory (src/modules/location )
22- add_subdirectory (src/modules/fota )
2320add_subdirectory (src/modules/button )
2421add_subdirectory (src/cbor )
2522
2623# Optional modules
2724add_subdirectory_ifdef (CONFIG_APP_POWER src/modules/power )
2825add_subdirectory_ifdef (CONFIG_APP_ENVIRONMENTAL src/modules/environmental )
2926add_subdirectory_ifdef (CONFIG_APP_LED src/modules/led )
27+ add_subdirectory_ifdef (CONFIG_APP_LOCATION src/modules/location )
28+ add_subdirectory_ifdef (CONFIG_APP_CLOUD src/modules/cloud )
29+ add_subdirectory_ifdef (CONFIG_APP_FOTA src/modules/fota )
Original file line number Diff line number Diff line change 44# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
55#
66
7- menu "Cloud module"
8- depends on NRF_CLOUD_COAP
7+ menuconfig APP_CLOUD
8+ bool "Cloud module"
9+ default y if NRF_CLOUD_COAP
10+
11+ if APP_CLOUD
912
1013config APP_CLOUD_SHELL
1114 bool "Enable cloud shell"
@@ -112,4 +115,4 @@ module = APP_CLOUD
112115module-str = Cloud
113116source "subsys/logging/Kconfig.template.log_config"
114117
115- endmenu # Cloud
118+ endif # APP_CLOUD
Original file line number Diff line number Diff line change 66
77menuconfig APP_FOTA
88 bool "FOTA"
9- select FOTA
10- default y if !BOARD_NATIVE_POSIX
9+ default y if (!BOARD_NATIVE_POSIX && NRF_CLOUD_FOTA_POLL)
10+
11+ if APP_FOTA
1112
1213config APP_FOTA_THREAD_STACK_SIZE
1314 int "Thread stack size"
@@ -33,8 +34,6 @@ config APP_FOTA_MSG_PROCESSING_TIMEOUT_SECONDS
3334 Maximum time allowed for processing a single message in the module's state machine.
3435 The value must be smaller than CONFIG_APP_FOTA_WATCHDOG_TIMEOUT_SECONDS.
3536
36- if APP_FOTA
37-
3837module = APP_FOTA
3938module-str = FOTA
4039source "subsys/logging/Kconfig.template.log_config"
Original file line number Diff line number Diff line change 33# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
44#
55
6- menu "Location"
7- depends on LOCATION
8- depends on LOCATION_DATA_DETAILS
6+ menuconfig APP_LOCATION
7+ bool "Location"
8+ default y if LOCATION
9+ select LOCATION_DATA_DETAILS
10+
11+ if APP_LOCATION
912
1013config APP_LOCATION_THREAD_STACK_SIZE
1114 int "Thread stack size"
@@ -35,4 +38,4 @@ module = APP_LOCATION
3538module-str = Location
3639source "subsys/logging/Kconfig.template.log_config"
3740
38- endmenu # Network
41+ endif # APP_LOCATION
You can’t perform that action at this time.
0 commit comments