Kconfig.zephyr: check priorities by default

Enable build time initialization priority check by default.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
This commit is contained in:
Fabio Baltieri 2023-03-10 17:26:35 +00:00 committed by Carles Cufí
parent f45e7eddaa
commit 058f256ea1
4 changed files with 5 additions and 0 deletions

View File

@ -746,6 +746,7 @@ config BUILD_OUTPUT_STRIP_PATHS
config CHECK_INIT_PRIORITIES
bool "Build time initialization priorities check"
default y
help
Check the build for initialization priority issues by comparing the
initialization priority in the build with the device dependency

View File

@ -2,3 +2,4 @@ CONFIG_ZTEST=y
CONFIG_I2C=n
CONFIG_ZTEST_NEW_API=y
CONFIG_DEVICE_DEPS=y
CONFIG_CHECK_INIT_PRIORITIES=n

View File

@ -1,2 +1,4 @@
# Required to force 2 stage linking
CONFIG_DEVICE_DEPS=y
CONFIG_CHECK_INIT_PRIORITIES=n

View File

@ -6,3 +6,4 @@ CONFIG_ZTEST=y
CONFIG_ZTEST_NEW_API=y
CONFIG_SENSOR=y
CONFIG_BMI160_TRIGGER_NONE=y
CONFIG_CHECK_INIT_PRIORITIES=n