tools/kconfiglib: Add riot_kconfig to override default behaviours#13916
tools/kconfiglib: Add riot_kconfig to override default behaviours#13916aabadie merged 2 commits intoRIOT-OS:masterfrom
Conversation
841e735 to
f246a8c
Compare
|
@aabadie Do you mind give this your usual python quality check? :) |
aabadie
left a comment
There was a problem hiding this comment.
Just minor comments for the moment.
Do you think it would be possible to monkey patch the _main function of the menuconfig.py module in order to use standard_riot_kconfig instead of patching the file itself ?
In fact, I'm wondering why add kconfiglib as a package instead of asking it to be installed using pip (a bit off-topic in this PR) ?
Thanks for the suggestion. I added a
I added it as a package because it appeared to me as a ready-to-run solution, instead of burdening the user with installing an extra tool and adding another dependency. |
81ad7de to
80ef3b8
Compare
Thanks, I prefer this approach!
Ok |
|
I'm testing this PR but I don't understand what I'm supposed to get with "Check that the help string of a symbol with Doxygen markers (e.g. GNRC_NETIF_IPV6_ADDRS_NUMOF) does not show them." Any hint @leandrolanzieri ? |
Yeah sorry. What I mean is that in master you should see in the menuconfig interface the help strings with Doxygen markers, and with this PR those should not appear. The help string can be displayed either toggling the 'show-help' mode (
This PR Here |
|
@aabadie you can search for a symbol using |
aabadie
left a comment
There was a problem hiding this comment.
Thanks for providing more details on the testing procedure.
I could finally confirm that this PR is removing the doxygen markers from the detail info in menuconfig.
Code changes are also good. Let's go here!
ACK
|
And please squash! |
This also patches menuconfig.py to use the new class. For now it implements a version of _parse_help which removes Doxygen markers.
80ef3b8 to
ed38bd8
Compare
|
@aabadie squashed. Thanks for reviewing! |
Contribution description
This PR adds a
RiotKconfigclass which can be used to override behaviours from the baseKconfig. It also patches menuconfig.py to use the new class. For now it implements a version of_parse_helpwhich removes Doxygen markers.standard_riot_kconfigis taken from the originalstandard_kconfig.Testing procedure
make menuconfigstill works as usualGNRC_NETIF_IPV6_ADDRS_NUMOF) does not show them.Issues/PRs references
Solves issue presented here #13227 (comment)