My normal way of building a mainline kernel has been:

$ sudo apt build-dep linux
$ git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
$ cd linux
$ make localmodconfig
$ make -j`nproc` deb-pkg

And off I go. However, I'd like to build a kernel that includes the same modules that a default Ubuntu install would include. the make localmodconfig only includes active modules, and I want all standard modules to handle future hardware. A lot is missing:

$ cd /lib/modules
$ find 4.20.15-042015-generic |wc -l
$ find 5.0.0+ |wc -l

So what is the config command to mirror the standard distribution?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.