Configuration to include .....module.c files in Asset_trcaker_v2

I working on Asset_tracker_v2. I found in the project : 

target_sources_ifdef(CONFIG_CLOUD_MODULE app PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/cloud_module.c)

in file at

 C:\nrc\v1.7.1\nrf\applications\asset_tracker_v2\src\modules\CMakeLists.txt 

But could not find the file where CONFIG_CLOUD_MODULE  is declared ? Simlalry for other module files.

  • Hi,

    CONFIG_CLOUD_MODULE is declared at the top of asset_tracker_v2\src\modules\Kconfig.cloud_module
    CONFIG_*_MODULE for the other modules are similarly declared in modules\Kconfig.*_module files

  • I'm sorry, I don't fully understand what you are asking.

    Did you mean to attach a screenshot to your reply?
    You can attach files to your reply using Insert->Image/video/file.

    Or are you unable to locate the files I mentioned in my previous reply?

  • Hi, the src/modules\Kconfig.cloud_module file is attached. I did not find CONFIG_CLOUD_MODULE as such in this file, but following is written in this file 

    menuconfig CLOUD_MODULE
    bool "Cloud module"
    default y 

    So, I was asking : is CONFIG_CLOUD_MODULE defined as menuconfig CLOUD_MODULE

     

    #
    # Copyright (c) 2021 Nordic Semiconductor
    #
    # SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
    #
    
    menuconfig CLOUD_MODULE
    	bool "Cloud module"
    	default y
    
    if CLOUD_MODULE
    
    config CLOUD_THREAD_STACK_SIZE
    	int "Cloud module thread stack size"
    	default 6144 if NRF_CLOUD_MQTT && DEBUG_MODULE_MEMFAULT_USE_EXTERNAL_TRANSPORT
    	default 4096 if NRF_CLOUD_MQTT || DEBUG_MODULE_MEMFAULT_USE_EXTERNAL_TRANSPORT
    	default 2688
    
    config CLOUD_CLIENT_ID_USE_CUSTOM
    	bool "Use custom cloud client ID"
    	help
    	  By default the device's IMEI is used as the client ID
    	  for the cloud connection. This allows to use a fixed
    	  value instead. This is mostly useful when providing
    	  firmware builds to continuous integration tests on
    	  real hardware.
    	  Note: you must only run this firmware build on one
    	  device at a time.
    
    config CLOUD_CLIENT_ID
    	depends on CLOUD_CLIENT_ID_USE_CUSTOM
    	string	"Cloud client ID"
    
    config CLOUD_CONNECT_RETRIES
    	int "Cloud reconnection attempts"
    	default 10
    	help
    	  If the cloud module exceeds the number of reconnection attempts it will
    	  send out a reboot request event.
    
    rsource "../cloud/Kconfig"
    
    endif # CLOUD_MODULE
    
    module = CLOUD_MODULE
    module-str = Cloud module
    source "subsys/logging/Kconfig.template.log_config"
    

Related