Skip to content
This repository was archived by the owner on Jan 6, 2023. It is now read-only.

Conversation

@luisfponce
Copy link
Contributor

Display if any of the keys in MUST_BE_SET Dict is not contained in the
kernel config file.

Display if any of the keys in MUST_BE_SET Dict is not contained in the
kernel config file.
@fenrus75
Copy link
Collaborator

fenrus75 commented Oct 2, 2018

the current behavior is different; it means that you can run the check on kernels that do not have the option at all.

your new behavior would ban this basically; I am not 100% convinced yet that this si a good idea

@fenrus75
Copy link
Collaborator

fenrus75 commented Oct 2, 2018

(the commit message describes the what, not the why, so I'm guessing at intent, might be better to just say here explicitly why you want this)

@luisfponce
Copy link
Contributor Author

luisfponce commented Oct 4, 2018

My apologizes for the lack of information.
The use case here is to get all those keys that are in defaults.py but are not in kernel config file.
But why? Well, I believe this could be useful for QA for example.
By the way the CC_STACKPROTECTOR changed to STACKPROTECTOR commit was found because this was executed and then, turned out that CONFIG_STACKPROTECTOR wasn't in the config file.

@fenrus75
Copy link
Collaborator

fenrus75 commented Oct 5, 2018

thinking more about this we really have 2 separate cases, and we likely should split this one list into two lists:

Case 1) If this variable exists, it must be =y
Case 2) The variable both must exist and must be =y

current code is case 1, your patch turns it into case 2,
but I think we can legitimately argue that both cases are valid....
so how about adding case 2 while leaving case 1 in place?

@miguelinux
Copy link
Contributor

The both cases are supported in the new feature:

Current behavior without arguments:

$ kcc config
$

New behavior with --missing argument

$ kcc --missing config

Is not in config file and must be set:
CONFIG_CC_STACKPROTECTOR
CONFIG_STRICT_DEVMEM
CONFIG_IO_STRICT_DEVMEM
CONFIG_SLAB_FREELIST_HARDENED
CONFIG_DEBUG_SET_MODULE_RONX
$

This list shows which config must be set and are not found.

Maybe we should change the --missing argument.

@fenrus75
Copy link
Collaborator

fenrus75 commented Oct 9, 2018 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants