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í
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 config CHECK_INIT_PRIORITIES
bool "Build time initialization priorities check" bool "Build time initialization priorities check"
default y
help help
Check the build for initialization priority issues by comparing the Check the build for initialization priority issues by comparing the
initialization priority in the build with the device dependency initialization priority in the build with the device dependency

View file

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

View file

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

View file

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