On Tue, Aug 03, 2004 at 10:52:17PM +0530, Anupam Kapoor wrote:
> hi all,
> 
> i have a bunch of source files that need to compiled together to
> create a kernel module. this is quite straightforward with the
> existing kbuild setup.
> 
> as part of creating the module, say foo.ko, i would also like to
> create a module foo-debug.ko that contains the debugging symbols.
> 
> doing both of these seems to be (at least to me) non-trivial. ideally,
> i would like to just invoke 'make' in the source dir, and have both
> foo.ko and foo-debug.ko built.
> 
> i have tried this:
> obj-m := foo.o foo-debug.o 

Adding:
CFLAGS_foo-debug.o := -g

should do the trick.

Se Documentation/kbuild/makefile.txt for reference.

        Sam


-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
_______________________________________________
kbuild-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/kbuild-devel

Reply via email to