building a specific driver in kernel src tree
Jeff Kirsher
jeffrey.t.kirsher at intel.com
Mon May 9 02:02:15 EDT 2011
On Sun, May 8, 2011 at 22:49, sri <bskmohan at gmail.com> wrote:
> Hi,
>
> As part of learning, I have added few debug statements to the code at
> drivers/net/e1000/e1000_main.c (e1000_probe function).
> Now to compile this, am doing make -C /lib/modules/2.6.18-194.el5PAE/build
> M=`pwd` modules under drivers/net/e1000 dir.
>
> That is not compiling anything. But the same thing when I do in
> drivers/net/e1000e, it is compiling and creating e1000e.ko file.
>
Check your kernel config file (which is .config) to make sure that
CONFIG_E1000=m
Then you should be able to run ` make drivers/net/e1000` to build the
e1000 driver as a module
> Any help on how to get e1000.ko?
>
> --Sri
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
>
--
Cheers,
Jeff
More information about the Kernelnewbies
mailing list