I'm using Linux Mint 13 MATE 32bit, I'm trying to build the kernel (primarily for experience and for fun).
For now, I like to build it with the same configuration as precompiled kernel, so firstly I've installed precompiled kernel 3.16.0-031600rc6 from kernel.ubuntu.com, booted to it successfully.
Then I've downloaded 3.16.rc6 kernel from kernel.org, unpacked it, configured it to use config from existing precompiled kernel:
$ make oldconfig
It didn't ask me anything, so, precompiled kernel contains all necessary information. Then I've built it (it took about 6 hours) :
And then installed:
$ sudo make modules_install install
Then I've booted into my manually-compiled kernel, and it works, boot process is somewhat slower though. But then I've found out that all the binaries (
/boot/initrd.img-3.16.0-rc6 and all the
*.ko modules in
/lib/modules/3.16.0-rc6/kernel are about 10 times larger than precompiled versions! Say,
160 658 665 bytes, but precompiled
16 819 611 bytes. Each
*.ko module is similarly larger.
Why is this? I haven't specified any special options for build (I typed exactly the same commands as I mentioned above). How to build it "correctly"?