Before the script I did always manual configuration and updated by "oldconfig". My issue was I did not know in retrospect why I set any specific setting? Did I set any specific setting? or maybe it's was default in previous kernel?
My solution now: kernel_cfg
https://github.com/bell07/bashscripts-kernel_cfg (GPL-3)
Basically they are config file snippets with additional comments in "cfg" folder, which are processed to the target "/usr/src/linux/.config" file. The base is the kernel provided "defconfig", then the config snippets are applied.
Own adjustments could be done by own snippet files (cfg/99_*.config)
It is possible to select which snippets should be used in CFG_MODULES parameter in "settings.txt" file.
1. clone the repo00* Default configuration adjustments that should be in any kernel
10* Disable stuff to get the kernel smaller by default. Useful for non-universal kernels bound to a hardware. Some parameters are re-activated in other config files
20* Try to support all hardware. Useful for live-media kernels that should work with any hardware
30_hwsupport_bluetooth.config Support the bluetooth stack
30_hwsupport_uefi_boot.config UEFI boot and framebuffer
30_hwsupport_wifi.config WIFI stack (Driver needs to be enabled in addition)
30_hardware_intel_MEI.config Support for Intel managemen Engine found on modern Intel devices
40_hardware_mmc_card.config Support for MMC card, found in modern devices
40_hardware_vmware_guest.config All required configuration needed for Vmware guest
50_docker.config Docker server support
50_lxc.config LXC server support
80_net_ebtables.config EBTables Bridge filtering, useful with LXC for example
2. copy the settings.txt.example and adjust to settings.txt
3. backup your "/usr/src/linux/.config"
4. run the "kernel_cfg.sh"
5. compare new "/usr/src/linux/.config" with backup
6. Enable additional settings related to your hardware or needs in cfg/99_my.config
7. repeat steps 4-7 if necessary
8. provide feedback
All additional config snippets and feedback to existing snippets welcome!



