All of lore.kernel.org
 help / color / mirror / Atom feed
From: John Rama <john.rama01@gmail.com>
To: yocto@yoctoproject.org
Subject: Q on how to keep the debug information for kernel module
Date: Sat, 7 Jan 2017 22:53:54 +0900	[thread overview]
Message-ID: <5870F2F2.4060508@gmail.com> (raw)

Dear Yocto specialists

I have one question. 
When building the kernel module and install to rootfs with Yocto, I got the kernel module without debug information.
Investigating a little bit revealed that it seems do_package process remove the debug information from binary, 
as the file size indicates as shown below.

-rw-r--r-- 1 atmark atmark    321 12月 14 17:15 ./3.14.28-r0/git/drivers/net/usb/.usbnet.ko.cmd
-rw-r--r-- 1 atmark atmark 278101 12月 14 17:15 ./3.14.28-r0/git/drivers/net/usb/usbnet.ko
-rw-r--r-- 1 atmark atmark 278101 12月 14 20:08 ./3.14.28-r0/image/lib/modules/3.14.28-rt25-1.0.0_ga-avb_1_0_0+g91cf351/kernel/drivers/net/usb/usbnet.ko
-rw-r--r-- 2 atmark atmark  45328 12月 14 20:08 ./3.14.28-r0/package/lib/modules/3.14.28-rt25-1.0.0_ga-avb_1_0_0+g91cf351/kernel/drivers/net/usb/usbnet.ko
-rw-r--r-- 2 atmark atmark  45328 12月 14 20:08 ./3.14.28-r0/packages-split/kernel-module-usbnet/lib/modules/3.14.28-rt25-1.0.0_ga-avb_1_0_0+g91cf351/kernel/drivers/net/usb/usbnet.ko

I would like to kept debug information preserved.
I've check the manual but could not find out how to control this behavior.

Does anyone know how to do that ?
Any information is highly appreciated.

Kind Regars,
John Rama


             reply	other threads:[~2017-01-07 13:53 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-07 13:53 John Rama [this message]
2017-01-09 18:38 ` Q on how to keep the debug information for kernel module Khem Raj

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5870F2F2.4060508@gmail.com \
    --to=john.rama01@gmail.com \
    --cc=yocto@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.