#
# Copyright (c) 2021 Nordic Semiconductor ASA
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#

# Asset Tracker v2 requires UART_INTERRUPT_DRIVEN to be enabled when SERIAL is used in order to
# receive AT Commands.
config UART_INTERRUPT_DRIVEN
	default y if SERIAL

menu "Asset Tracker v2"

config ASSET_TRACKER_V2_APP_VERSION
	string "Asset Tracker application firmware version"
	default "0.0.0-development"

config ASSET_TRACKER_V2_APP_VERSION_MAX_LEN
	int "Maximum length of the application firmware version"
	default 150

config ASSET_TRACKER_V2_LTO
	bool "Enable link time optimization"
	default y if (SIZE_OPTIMIZATIONS && !NATIVE_LIBRARY)
	# not for NATIVE_LIBRARY as otherwise the native simulator build will produce a warning when
	# mixing lto and non lto code causing twister runs to fail
	help
	  Compile the Asset Tracker application code with link time optimization enabled. This
	  option is only applied for the application code and not the libraries and external modules
	  that are linked in.

rsource "src/modules/Kconfig.modules_common"
rsource "src/modules/Kconfig.cloud_module"
rsource "src/cloud/Kconfig.lwm2m_integration"
rsource "src/modules/Kconfig.data_module"
rsource "src/modules/Kconfig.location_module"
rsource "src/modules/Kconfig.modem_module"
rsource "src/modules/Kconfig.sensor_module"
rsource "src/modules/Kconfig.ui_module"
rsource "src/modules/Kconfig.util_module"
rsource "src/modules/Kconfig.led_module"
rsource "src/modules/Kconfig.debug_module"

rsource "src/cloud/cloud_codec/Kconfig"
rsource "src/watchdog/Kconfig"
rsource "src/events/Kconfig"

endmenu

menu "Zephyr Kernel"
source "Kconfig.zephyr"
endmenu

module = APPLICATION_MODULE
module-str = Application module
source "subsys/logging/Kconfig.template.log_config"
