-
-
Notifications
You must be signed in to change notification settings - Fork 345
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Kconfig support #2374
Add Kconfig support #2374
Conversation
7f3c7fc
to
618245b
Compare
Got the rough bones of this working, but choices need sorting out. For example, cannot set the DEBUG_VERBOSE_LEVEL value directly but need to work out which of the appropriate |
a602602
to
8c36a49
Compare
OK, seems to be working. |
Add cfgtool to convert between formats
Fix use of `SPIFF_FILEDESC_COUNT`
Cannot set `CONFIG_BOOTLOADER_LOG_LEVEL` directly, only through choice variables
8c36a49
to
9bbea2c
Compare
@mikee47 This PR so far looks great to me! Gradually we should add more visually configurable options to components, like for example SSL options and so on, but this can happen also in other PRs. Apart from fixing the codacy issues do you plan to add some more changes to this PR? |
0d68426
to
09a96cf
Compare
@slaff Tried and failed to resolve "No whitespaces allowed surrounding docstring text (D210)". (Looks like it's failed to pick up forced changes.) Also added fix so this works on Windows (paths issues). That should be all for now. |
Generate `kconfig.in` file using cfgtool, fix paths as required (e.g. "/s/path/to" -> "s:/path/to")
09a96cf
to
1f1180f
Compare
This PR introduces the
menuconfig
build target as per Slaff's idea in #1712 (comment).Sming configuration does not fully comply with Kconfig spec. For example, boolean values in Sming are typically '1', '0' or undefined but Kconfig requires them to be 'y' or 'n'. A small python program handles this conversion and merging Kconfig settings into the cached configuration data.
The current set of Kconfig files aren't complete but these can be added as required.