Enclosed please find a patch which when applied to the files in
/usr/share/kernel-package, will make the linux-image file manageable
even if CONFIG_DEBUG_INFO is set to yes.    What this does is add
INSTALL_MOD_STRIP=1 to the "make modules_install" command, which will
strip out the debugging information from the modules installed in
/lib/modules/<kver>.

What I do if I want to use systemtap (which requires the debugging
symbols) is I run the command from the build tree: "make
INSTALL_MOD_PATH=/usr/lib/debug modules_install".   This is a big help
because on my systems /lib is on the root partition, and doesn't have
the space for multiple kernels with 600 megs worth of modules.  However,
I *do* have the space in the /usr partition.   On my todo list is to
hack make-kpkg to create a linux-debuginfo dpkg, much like Red Hat does.
If someone does that ahead of me, please let me know; to be honest it's
relatively low on my priority list.  Hopefully this patch is helpful,
though!

** Attachment added: "Patch to make the kernel packages be manageable even with 
CONFIG_DEBUG_INFO=y"
   http://launchpadlibrarian.net/16145151/add-strip-command

-- 
make-kpkg with ubuntu sources creates gigantic package
https://bugs.launchpad.net/bugs/90283
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to