Bug#702625: linux-source-3.2: Custom kernel built from Debian source gives a package with huge size
Package: linux-source-3.2
Version: 3.2.35-2
Severity: normal
Dear Maintainer,
Upgrading from Squeeze to Wheezy and using TuxOnIce hibernation system,
I installed the Wheezy's linux-source-3.2 package, and build a cusom kernel
following recommendations as in :
http://kernel-handbook.alioth.debian.org/ch-common-tasks.html#s-common-building
(I used to do this also on my Squeeze system).
I applied the TuxOnIce and RT patches, copy the config of the Debian package linux-image-3.2.0-rt-amd64, done a 'make oldconfig' to answer new config about TOI,
and run the compilation with :
time ionice -c 3 nice env KBUILD_PKG_ROOTCMD="fakeroot -u" make -j 3 KDEB_PKGVERSION=3.2-3.2.35-2 KERNELRELEASE=3.2-rt-toi deb-pkg
After a while, I get a debian package, but with a huge size, about 500 MB,
whereas official Debian is about 20 MB !
It seems the modules are built with symbols. Looking around on the web,
I saw people telling to look at CONFIG_DEBUG_INFO config parameter, and
it's actually set :
$ grep CONFIG_DEBUG_INFO .config
CONFIG_DEBUG_INFO=y
# CONFIG_DEBUG_INFO_REDUCED is not set
But it's also set in the official Debian configs :
$ grep CONFIG_DEBUG_INFO /boot/config-3.2.0-4-*
/boot/config-3.2.0-4-amd64:CONFIG_DEBUG_INFO=y
/boot/config-3.2.0-4-amd64:# CONFIG_DEBUG_INFO_REDUCED is not set
/boot/config-3.2.0-4-rt-amd64:CONFIG_DEBUG_INFO=y
/boot/config-3.2.0-4-rt-amd64:# CONFIG_DEBUG_INFO_REDUCED is not set
What should I do to get a 'standard size' Debian package ?
Disable this parameter in the kernel config ? Or doing an action / setup
I forgot ?
Thanks for your support,
Fred.
-- System Information:
Debian Release: 7.0
APT prefers testing
APT policy: (990, 'testing'), (800, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 3.2.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages linux-source-3.2 depends on:
ii binutils 2.22-8
ii bzip2 1.0.6-4
Versions of packages linux-source-3.2 recommends:
ii gcc 4:4.7.2-1
ii libc6-dev [libc-dev] 2.13-38
ii make 3.81-8.2
Versions of packages linux-source-3.2 suggests:
ii libncurses5-dev [ncurses-dev] 5.9-10
pn libqt4-dev <none>
ii pkg-config 0.26-1
-- no debconf information
Reply to: