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

Non-global alternative to --modules #230

Open
6b6279 opened this issue Feb 25, 2023 · 2 comments
Open

Non-global alternative to --modules #230

6b6279 opened this issue Feb 25, 2023 · 2 comments

Comments

@6b6279
Copy link

6b6279 commented Feb 25, 2023

Hello,

I was wondering if there is a way to pre-set a tristate symbol to m while calling klocalizer without the --modules flag. Not all tristate symbols I want to pre-set have the value m, so using --modules isn’t adequate. I was expecting something along the lines of the -U or the -D option.

Thanks in advance.

@paulgazz
Copy link
Owner

I don't think we this capability through the interface, but it should be possible to add via get_config_from_model. Could you say a little more about what behavior you are looking for? -D and -U tell klocalizer to force the configuration option on or off (respectively). Is this the behavior you'd like (but with the option set to m, e.g., with a -M flag) or would you just like the option set to m only when klocalizer determines the option to be enabled (i.e., it is either m or n)?

@6b6279
Copy link
Author

6b6279 commented Mar 1, 2023

I am using klocalizer to test the validity of configuration files corresponding to an arbitrary Kconfig file (i.e. the Kconfig files aren’t necessarily from the Linux kernel source). I feed klocalizer with the output of kextract and kclause on a given Kconfig file and then enter the configuration to test over the -D and -U flags. There are of course Kconfig files with multiple tristate symbols and in that case there are configurations where one of the tristate symbols is set to m, and the other possibly to t. In that case I can’t give klocalizer the configuration using the --modules flag, because not all tristate symbols are set to m. So I am quite precisely looking for an -M option as you have described it in your comment.

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

No branches or pull requests

2 participants