I download kernel source from git://kernel.ubuntu.com/.../ubuntu/ubuntu-trusty.git. I need to compile version 4.4.0-31-generic
on 14.04.4 lts 64bit, so I clone and checkout branch Ubuntu-lts-4.4.0-31.50-xxx-14.04.1.I
use config-4.4.0-31-generic
as config file from linux-image-4.4.0-31-generic
package. After I compiled, I realize kernel version is 4.4.13 in Makefile and I found arbitrary kernel version config item seems not take effect and installed modules is more than 5000 but package in linux-image-4.4.0-31-generic
just contain about 1000 modules. The modules I installed size is around 3G, the package just 39M. Am I did it a wrong way?
Asked
Active
Viewed 563 times
1

David Foerster
- 36,264
- 56
- 94
- 147

lihe
- 13
1 Answers
1
You built the kernel a wrong way. The Debian way to build a kernel is:
fakeroot debian/rules clean
fakeroot debian/rules binary-headers binary-generic
This will build the Ubuntu kernel 4.4.0-31 if you checked out the correct tag.

Pilot6
- 90,100
- 91
- 213
- 324
make
anddebian/rules
way a lot. – Pilot6 Jul 13 '17 at 21:40