1# Copyright (c) 2022 Nordic Semicoductor ASA 2# SPDX-License-Identifier: Apache-2.0 3 4# Usage: 5# This template allow module to use the parent module log level by default. 6# 7# The following arguments are mandatory: 8# - module: 9# Name of the new log module. 10# Example: "BT_HCI_CORE" 11# - parent-module: 12# Name of the module that will be inherited by the new module. 13# Example: "BT" 14 15choice "$(module)_LOG_LEVEL_CHOICE" 16 default $(module)_LOG_LEVEL_INHERIT if y 17 18config $(module)_LOG_LEVEL_INHERIT 19 bool "Inherit $(parent-module)_LOG_LEVEL" 20 21endchoice 22 23config $(module)_LOG_LEVEL 24 default $(parent-module)_LOG_LEVEL if $(module)_LOG_LEVEL_INHERIT 25 26module := $(module) 27source "subsys/logging/Kconfig.template.log_config" 28