pmbootstrap kconfig merge
It would be nice, if we had pmbotostrap kconfig merge
, which would accept a kernel config fragment as parameter, along with a list of kernels. Then it would merge the existing kernel config with the fragment, using scripts/kconfig/merge_config.sh
(shipped in the kernel source trees), copy back the changed config file and update the checksum.
A fragment can look like this:
CONFIG_CRYPTO_XTS=y
I've started a WIP patch. However, it only worked with the first kernel, it had too many changes with the second kernel I've tried it with. So I'm doing the desired changes manually for now, as this is distracting from my original goal and eating up too much time.
In order to do it properly, we probably need to regenerate the kernel config once with make for all kernels, and enforce that this is done. Then the merge_config.sh script will probably always produce a clean diff.