Now, let's quickly get started on creating a base kernel configuration for our new kernel by using the third approach we discussed previously – the localmodconfig technique. As mentioned, this existing kernel modules-only approach is a good one when the goal is to obtain a starting point for kernel config on an x86-based system by keeping it relatively small and thus make the build quicker as well.
Don't forget: the kernel configuration being performed right now is appropriate for your typical x86-based desktop/server systems. For embedded targets, the approach is different (as seen in the Kernel config for typical embedded Linux systems section). We further cover this practically in Chapter 3, Building the 5.x Linux Kernel from Source - Part 2, under the Kernel build for the Raspberry Pi section.
As described previously, first obtain a snapshot of the currently loaded kernel modules,...