I am trying to compile the kernel in branch master-next of repository git://kernel.ubuntu.com/ubuntu/ubuntu-yakkety.git. The kernel has added a lot of options vs the 4.4 kernel I currently have installed, and after copying my current .config from /boot, the command fakeroot make-kpkg --initrd kernel_image kernel_headers -j 4 is asking me a lot of questions. Where can I find Ubuntu's official updated .config for this kernel? It doesn't seem like they keep it in the git repo.
2 Answers
You don't need the .config file if you're building from the Ubuntu kernel git repo! If you follow the correct, modern build process the .config file will be generated automatically for the different Ubuntu architectures and flavors from a set of templates located in debian.master/config/.
To make edits to the default config interactively, run fakeroot debian/rules editconfigs before building (instead of make menuconfig)
Or edit debian.master/config/config.common.ubuntu (or an architecture- or flavor- specific config file) and run fakeroot debian/rules updateconfigs.
Use the Ubuntu mainline PPA as a way to obtain a starting point .config file. Figure out which kernel in there is the closest to what you are trying to compile, install it and then steal it's config file from your /boot directory. Note that it can be difficult to figure out Ubuntu's naming convention verses the mainline naming convention, but the Ubuntu to Mainline kernel version mapping web page might be of help.
- 16,146