EXTRA_ZEPHYR_MODULES causes lots of 'the choice symbol' warnings #89998
-
Hello everyone.
My project requires additional non-existing display driver. I have created new zephyr module with Kconfig and CMakeLists.txt - let's assume, that they are correct. When I recompile (pristine) the project, I get tons of warnings from default Zephyr drivers, like:
Compilation fails, because Zephyr treats that warnings as errors. Kind regards, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @RobbieKhan , Perhaps you can compare this test with your app and module? Best regards
|
Beta Was this translation helpful? Give feedback.
Hi, @DerekSnell.
Thank you for your tip! I started looking into it and finally found the issue.
That was actually a bad guess :)
The root of the problem was lying in my Kconfig files.
I was attaching source Kconfigs relatively to the module folder, like this:
source "drivers/Kconfig"
But I forgot, that
source
is expecting files relatively to thezephyr
path. That's why it was sourcing Kconfig fromF:/Work/Zephyr/zephyrproject/zephyr/drivers/Kconfig
leading to duplicate inclusion of everything that is mentioned there and tons of that drivers related warnings.Now I actually need to und…