0

I'm using the "canonical way" to build ubuntu kernel with ./debian/rules binary-generic. On my machine the build takes more than half an hour. Is there a way to quickly build only vmlinuz? In fact I need only the kernel binary image. After installing the new kernel from a deb package I update the kernel by replacing vmlinuz.

  • For reasons that I have never understood, the "canonical way" always does a build clean. There is no need to do that. I do not use the "cononical way" and incremental compiles, with only small change takes only a few minutes (on my computer, where a clean compile takes ~26 minutes). – Doug Smythies Sep 14 '17 at 16:22
  • So you do make, right? A different question then. How to use the configuration produced by debian/rules updateconfigs when building with make? – Al Izi Sep 14 '17 at 16:35
  • I use this method. – Doug Smythies Sep 14 '17 at 16:41
  • I did not see that you edited your comment. Just steal the Ubuntu kernel configuration for the kernel version you are trying to build. Example: cp /boot/config-4.4.0-93-generic .config but disable debug. – Doug Smythies Sep 14 '17 at 16:52
  • So presumably I can make a "canonical ubuntu build" once, install the packages to the target machine and copy the resulting /boot/config file to the kernel sources folder and continue with "make build". This will allow to use both kinds of build. – Al Izi Sep 14 '17 at 17:00

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.