Re: compiling select modules with kernel 2.6.x

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

 



Greg,

Thank you for getting back to me.  Yes I have tried this and unfortunately I
get the error that there is "No rule to make target drivers/block/cciss.ko".
I looked at the drivers/block/Makefile and the targe is listed as
"obj-$(CONFIG_BLK_CPQ_CISS_DA) += cciss.o.
I therefore tried "make drivers/block/cciss.o" which produced a large amount
of compile errors not just from the cciss.c file, but also from the header
files included in cciss.c.  I captured the output and I believe this is
because the compile line seems to only be
"CC [M] drivers/block/cciss.o" and does not include the additional flags
needed for the compile.

Do you have any further suggestions?  Once again your help is greatly
appreciated.

Thanks,
Chase
----- Original Message ----- 
From: "Greg KH" <greg@kroah.com>
To: <chase.maupin@sbcglobal.net>
Cc: <kernelnewbies@nl.linux.org>
Sent: Friday, April 09, 2004 9:05 PM
Subject: Re: compiling select modules with kernel 2.6.x


> On Fri, Apr 09, 2004 at 05:38:59PM -0500, chase.maupin@sbcglobal.net
wrote:
> > Hello,
> >
> > I am looking for advice on how to compile only a single module in the
> > 2.6 kernel.  Previously, in the 2.4 kernel I could do a "make modules
> > --dry-run" and select the compile line for the module I wished to
> > compile.  I could then run this line and the module would be compiled.
> > However, in the 2.6 kernels I have noticed that the kernel generates a
> > .mod.c file.  As yet I have not found a way to generate this file
> > without doing a full "make modules".
>
> make path/to/driver/foo.ko
>
> doesn't that work?
>
> greg k-h


--
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