-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
tools/kconfig2html.c: Add missing parse logic #3611
base: master
Are you sure you want to change the base?
Conversation
This is marked a draft because additional effort will be required to get this through nxstyle, mostly because there are many long lines reported. This PR does at least provide a fix to the problem if this ever becomes an issue for anyone who is more motivated than I to deal with the nxstyle complaints. |
This error is related to this
|
Thanks. I didn't look at all of the of BTW: The other
are unnecessary and redundant since the Kconfig file begins with:
Everything from there to the matching endif has the that dependency. |
I have not looked into the other reported error, but here is a little more information from running within debug output enabled:
It is probably complaining about this:
|
No problem, I can submit a PR to remove the comments. I was used to working with Buildroot and I thought it could be interesting to add.
Thanks for the tip, I'll address that as well. |
The following was supported config FOO int "Enable foo" But not this equivalent form: config FOO int prompt "Enable foo" Also, conditional comments of the following form are now supported: comment "Isn't foo great?" depends on FOO And support was added for comments following dependencies like: depends on FOO # We all depend on FOO Should have not impact since this is not a critical build tool. NOTE: There is one other, unrelated issues: $ tools/mkconfigvars.sh Unrecognized garbage after default value This is due to missing logic to handle default values that are expressions. Speifically, the problem is caused by this in graphics/Kconfig: config NX_UPDATE bool "Display update hooks" default FB_UPDATE && !NX_LCDDRIVER This is not currently addressed by this PR. Tested using tools/mkconfigvars.sh
No problem. I updated the tool skip over # comments at the end of the line.
There are other issues as well. For example, people have begun using default values that are expressions of other configuration settings. The tool would not need to parse the expressions other than to know when they end. But clearly this tools has not been used for many years and it would take more effort to get it back "up to snuff" and passing nxstyle issues. If the tools is truly unused, then should just be deleted rather than supported and fixed. All of the other documentation has moved away from HTML. |
Summary
I tried running tools/mkconfigars.sh for the first time in a long time and it failed due to some missing support in the parser: The following was supported
But not this equivalent form:
Also, conditional comments of the following form are now supported:
And support was added for comments following dependencies like:
Impact
Should have no impact since this is not a critical build tool.
NOTE: There is one other, unrelated issues:
This is due to missing logic to handle default values that are expressions. Specifically, the problem is caused by this in graphics/Kconfig:
This is not currently addressed by this PR.
Testing
Tested using tools/mkconfigvars.sh