DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm trying to debug a module in Debian, or at least learn something trying. Is there a way to make the module without adding it to the config for the source tree? Running "make M=whatever" doesn't seem to pick it up unless it's configged. What am I missing, or is it normal practice to run an "a" and a "b" directory to do this as protection against brain-fade? I have no real aspirations of actually getting this working and uploading it. I have working fallbacks in grub.
Thanks for the try, but I get about 7 bazillion warnings and errors when I try that. The subdir makefile is heavily dependent on info from the topdir one, I think.
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524
Rep:
Quote:
Originally Posted by Quakeboy02
"gcc -c module.c"
Thanks for the try, but I get about 7 bazillion warnings and errors when I try that. The subdir makefile is heavily dependent on info from the topdir one, I think.
Gcc spews more cryptic messages than you can imagine. It is pretty typical for gcc to warn of all kinds of things, even though the compile worked. It is possible you are missing a prototype header in /usr/include. In this case you can put the module in the kernel tree, according to the README file, and after you compile it run:
depmod
"In this case you can put the module in the kernel tree, according to the README file, and after you compile it run:"
This is what I was trying to avoid: putting the module in the kernel tree. Thanks anyway, guys. It's simple enough to just have a "clean" version of the kernel that I normally boot from, and another version with the module I'm messing with configured in. It's not like a few megabytes costs anything anymore.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.