From mboxrd@z Thu Jan 1 00:00:00 1970 From: bskmohan@gmail.com (sri) Date: Mon, 9 May 2011 11:50:42 +0530 Subject: building a specific driver in kernel src tree In-Reply-To: References: Message-ID: To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org Thank you. Am trying to compile the whole kernel again with CONFIG_E1000=m. On Mon, May 9, 2011 at 11:49 AM, Jeff Kirsher wrote: > On Sun, May 8, 2011 at 23:05, sri wrote: > > the config had it as CONFIG_E1000=y > > Does =y or =m make any difference? > > > > still not working. > > > > If you have CONFIG_E1000=y, it will build the e1000 driver into the > kernel binary and not as a separate module. If you want the e1000 > driver to build as a module, you will need to have CONFIG_E1000=m. > > > On Mon, May 9, 2011 at 11:32 AM, Jeff Kirsher < > jeffrey.t.kirsher at intel.com> > > wrote: > >> > >> On Sun, May 8, 2011 at 22:49, sri 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 > > > > > > > > -- > > -- > > Krishna Mohan B > > > > _______________________________________________ > > Kernelnewbies mailing list > > Kernelnewbies at kernelnewbies.org > > http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies > > > > > > > > -- > Cheers, > Jeff > -- -- Krishna Mohan B -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110509/95d898ff/attachment.html