Resolving Indirect Inclusion Conflicts in Kconfig Files #85713
Unanswered
PragatiGarg-eaton
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi All,
I have a scenario where the main Kconfig file includes the following sources:
The
Kconfig-1
file includes:And the
Kconfig-2
file includes:This setup results in
Kconfig.zephyr
being included twice indirectly, causing conflicts.I cannot remove
Kconfig.zephyr
fromKconfig-2
becauseKconfig-2
is used in the mcuboot application, which can be built standalone as well. And neither "Kconfig.zephyr" from Main Kconfig file, since I need to provide two diff features based on user selection from a config.In simpler words, I need to enable either of the feature using Config value from prj.conf, but it is causing conflicts.
Since, Kconfig lacks an 'if' condition model, so I can't make the inclusion conditional. Ref: https://docs.zephyrproject.org/latest/build/kconfig/tips.html#lack-of-conditional-includes
How can I resolve this conflict? Any help would be much appreciated.
Beta Was this translation helpful? Give feedback.
All reactions