Expand kconfig check to include more options, including device-specific kconfig
I've been thinking about how to ensure that there are no kconfig regressions across device kernels. Ideally kconfig fragments would be used so that it is easy to spot regressions in review, but I think that relying more on kconfig check in pmb might be good even if we have fragments support later on.
I'd like to get feedback on this, specifically:
-
continue to add more kconfig options that multiple kernels rely on, to the kconfig check, like I did in !2075 (merged), for nftables, and @minlexx did in !2060 (merged)
-
add a new mechanism to kconfig check that looks in the kernel package for a file like
kconfig_required_options
(or call it something better), which (if present) provides a list of required kconfig options for the kernel. This can be things like the wifi driver options, graphics options, input device driver options, etc. -
Continue to run kconfig check on all kernels, including the kernel-specific check options from above
This wouldn't necessarily replace the need for kconfig fragment support, and could even be used to continue validating kernel config even after we eventually have fragments.
The goal is to prevent problems with rebasing config (which I do often on the L5 kernel... which is still seeing very active development) or making other changes to config where some required option might be accidentally disabled. Existing kconfig covers a lot, so this issue is really to get feedback on the above points and maybe formalize it since I think we're starting to use kconfig check more recently to do a lot of that (except the 2nd point since that required pmb changes).