mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-09 10:12:55 +00:00
We are getting all of those Kconfigs related to logging even without having logging enabled, make the variables depend on LOG for all users of the template. Signed-off-by: Anas Nashif <anas.nashif@intel.com>
31 lines
589 B
Plaintext
31 lines
589 B
Plaintext
choice
|
|
prompt "Max compiled-in log level for $(module-str)"
|
|
default $(module)_LOG_LEVEL_INF
|
|
depends on LOG
|
|
|
|
config $(module)_LOG_LEVEL_OFF
|
|
bool "Off"
|
|
|
|
config $(module)_LOG_LEVEL_ERR
|
|
bool "Error"
|
|
|
|
config $(module)_LOG_LEVEL_WRN
|
|
bool "Warning"
|
|
|
|
config $(module)_LOG_LEVEL_INF
|
|
bool "Info"
|
|
|
|
config $(module)_LOG_LEVEL_DBG
|
|
bool "Debug"
|
|
|
|
endchoice
|
|
|
|
config $(module)_LOG_LEVEL
|
|
int
|
|
depends on LOG
|
|
default 0 if $(module)_LOG_LEVEL_OFF
|
|
default 1 if $(module)_LOG_LEVEL_ERR
|
|
default 2 if $(module)_LOG_LEVEL_WRN
|
|
default 3 if $(module)_LOG_LEVEL_INF
|
|
default 4 if $(module)_LOG_LEVEL_DBG
|