Skip to content
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

Support a getconfig module #137

Open
nikhildevshatwar opened this issue Mar 12, 2024 · 1 comment
Open

Support a getconfig module #137

nikhildevshatwar opened this issue Mar 12, 2024 · 1 comment

Comments

@nikhildevshatwar
Copy link

I really like the Kconfig language and how it provides simple mechanism to configure a project.
With this library, I could use the Kconfig files in any non-Linux project as well and integrate everything into the build system easily.

I use the following commands
python3 -m defconfig /path/to/defconfig
python3 -m menuconfig
python3 -m genconfig

These allow me to use the different modules as-is to do most of the tasks, except currently I am not able to read values of config items.

I would like to use following

python3 -m getconfig CONFIG_XYZ

This way, I can also integrate above commands in the Makefiles and other places to quickly take decisions based on if a Kconfig is enabled or not?

Depending on the type of the symbol, expectation is that the output returns
y/n for bool
y/n/m for tristate
actual Kconfig selected for choice

I am not sure if this was intended usage of the library or not, but this has been very helpful to use the Kconfig based configuration in any project. Adding a genconfig module would fill a gap.

@nikhildevshatwar
Copy link
Author

@ulfalizer what do you think ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant