RE: Compiling a specific module without compiling whole of the kernel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----Original Message-----
From: kernelnewbies-bounce@xxxxxxxxxxxx
[mailto:kernelnewbies-bounce@xxxxxxxxxxxx] On Behalf Of kanishk rastogi
Sent: Tuesday, February 07, 2006 8:01 PM
To: kernelnewbies@xxxxxxxxxxxx
Subject: Compiling a specific module without compiling whole of the
kernel




> how do i compile a specific module without compiling
> the whole of the kernel

edit the Makefile in the directory where you had placed your file to
add:

obj-m  += yourfilename.o

(in your case edit Makefile of /drivers/scsi directory)

then compile it from inside that directory by :

make -C /lib/modules/`uname -r`/build   SUBDIRS=$PWD modules

Hope this will help

Thank you,

Kaustav Majumdar

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux