All of lore.kernel.org
 help / color / mirror / Atom feed
* building kernel modules for linux differnet version
@ 2014-03-11 15:46 Saket Sinha
  2014-03-11 16:40 ` Yann Droneaud
  0 siblings, 1 reply; 6+ messages in thread
From: Saket Sinha @ 2014-03-11 15:46 UTC (permalink / raw)
  To: kernelnewbies

Hi,

         I have a scenario where I need to build a driver for
different kernel versions.
I have kernel-headers of different version in /lib/modules/
2.6.32-xxxx
2.6.39-xxxx

and currently I am booted into 2.6.32-xxxx(which I find out by uname -r)

Now in my driver makefile, I generate .ko of driver
make  -C   /lib/modules/$(shell uname -r)/build  M=$(PWD)  modules

but I notice that the driver .ko gets generated for 2.6.39-xxxx though
I am booted into  2.6.32-xxxx. Can anyone help me figure out why this
is happening?

Regards,
Saket Sinha

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-03-11 18:41 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-11 15:46 building kernel modules for linux differnet version Saket Sinha
2014-03-11 16:40 ` Yann Droneaud
2014-03-11 17:12   ` Saket Sinha
2014-03-11 17:39     ` Yann Droneaud
2014-03-11 18:13       ` Saket Sinha
2014-03-11 18:41         ` Laurent Navet

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.