* compiling only one module in kernel version 2.6?
@ 2005-08-17 2:09 Fong Vang
2005-08-17 3:18 ` Steven Rostedt
0 siblings, 1 reply; 9+ messages in thread
From: Fong Vang @ 2005-08-17 2:09 UTC (permalink / raw)
To: linux-kernel
What's the easiest way to compile just one module in the Linux 2.6 kernel tree?
This no longer seem to work:
$ cd /usr/src/linux
$ make SUBDIRS=fs/reiserfs modules
Building modules, stage 2.
MODPOST
I don't see any .ko generated.
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: compiling only one module in kernel version 2.6? 2005-08-17 2:09 compiling only one module in kernel version 2.6? Fong Vang @ 2005-08-17 3:18 ` Steven Rostedt 2005-08-17 5:41 ` Randy.Dunlap 0 siblings, 1 reply; 9+ messages in thread From: Steven Rostedt @ 2005-08-17 3:18 UTC (permalink / raw) To: Fong Vang; +Cc: linux-kernel On Tue, 2005-08-16 at 19:09 -0700, Fong Vang wrote: > What's the easiest way to compile just one module in the Linux 2.6 kernel tree? > > This no longer seem to work: > > $ cd /usr/src/linux > $ make SUBDIRS=fs/reiserfs modules > Building modules, stage 2. > MODPOST > > I don't see any .ko generated. It worked for me. Is your reiserfs turned on as a module, and not compiled into the kernel. (<M> not <*> nor < >) -- Steve ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: compiling only one module in kernel version 2.6? 2005-08-17 3:18 ` Steven Rostedt @ 2005-08-17 5:41 ` Randy.Dunlap 2005-08-17 5:48 ` Steven Rostedt 0 siblings, 1 reply; 9+ messages in thread From: Randy.Dunlap @ 2005-08-17 5:41 UTC (permalink / raw) To: Steven Rostedt; +Cc: sudoyang, linux-kernel On Tue, 16 Aug 2005 23:18:49 -0400 Steven Rostedt wrote: > On Tue, 2005-08-16 at 19:09 -0700, Fong Vang wrote: > > What's the easiest way to compile just one module in the Linux 2.6 kernel tree? > > > > This no longer seem to work: > > > > $ cd /usr/src/linux > > $ make SUBDIRS=fs/reiserfs modules > > Building modules, stage 2. > > MODPOST > > > > I don't see any .ko generated. > > It worked for me. Is your reiserfs turned on as a module, and not > compiled into the kernel. (<M> not <*> nor < >) Sam only added make .ko build support very recently, so it could easily depend on what kernel verison Fong is using. --- ~Randy ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: compiling only one module in kernel version 2.6? 2005-08-17 5:41 ` Randy.Dunlap @ 2005-08-17 5:48 ` Steven Rostedt 2005-08-17 5:54 ` Steven Rostedt 0 siblings, 1 reply; 9+ messages in thread From: Steven Rostedt @ 2005-08-17 5:48 UTC (permalink / raw) To: Randy.Dunlap; +Cc: sudoyang, linux-kernel On Tue, 2005-08-16 at 22:41 -0700, Randy.Dunlap wrote: > > Sam only added make .ko build support very recently, > so it could easily depend on what kernel verison Fong is using. That could very well explain it. I'm doing this on 2.6.13-rc6-rt6 (2.6.13-rc6 with Ingo's rt6 patch applied). So I really do have a recent kernel. -- Steve ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: compiling only one module in kernel version 2.6? 2005-08-17 5:48 ` Steven Rostedt @ 2005-08-17 5:54 ` Steven Rostedt 2005-08-17 6:06 ` Randy.Dunlap 2005-08-18 17:42 ` Sam Ravnborg 0 siblings, 2 replies; 9+ messages in thread From: Steven Rostedt @ 2005-08-17 5:54 UTC (permalink / raw) To: Randy.Dunlap; +Cc: linux-kernel, sudoyang On Wed, 2005-08-17 at 01:48 -0400, Steven Rostedt wrote: > On Tue, 2005-08-16 at 22:41 -0700, Randy.Dunlap wrote: > > > > Sam only added make .ko build support very recently, > > so it could easily depend on what kernel verison Fong is using. > > That could very well explain it. I'm doing this on 2.6.13-rc6-rt6 > (2.6.13-rc6 with Ingo's rt6 patch applied). So I really do have a > recent kernel. > I just did this on a 2.6.9 vanilla kernel, and it still worked. How "recent" did Sam do this? -- Steve ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: compiling only one module in kernel version 2.6? 2005-08-17 5:54 ` Steven Rostedt @ 2005-08-17 6:06 ` Randy.Dunlap 2005-08-18 17:42 ` Sam Ravnborg 1 sibling, 0 replies; 9+ messages in thread From: Randy.Dunlap @ 2005-08-17 6:06 UTC (permalink / raw) To: Steven Rostedt; +Cc: linux-kernel, sudoyang On Wed, 17 Aug 2005 01:54:50 -0400 Steven Rostedt wrote: > On Wed, 2005-08-17 at 01:48 -0400, Steven Rostedt wrote: > > On Tue, 2005-08-16 at 22:41 -0700, Randy.Dunlap wrote: > > > > > > Sam only added make .ko build support very recently, > > > so it could easily depend on what kernel verison Fong is using. > > > > That could very well explain it. I'm doing this on 2.6.13-rc6-rt6 > > (2.6.13-rc6 with Ingo's rt6 patch applied). So I really do have a > > recent kernel. > > > > I just did this on a 2.6.9 vanilla kernel, and it still worked. How > "recent" did Sam do this? 2.6.9 did not handle "make one_module.ko" (for me on x86). 2005-july-08: http://www.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=155ad605b3c9c5874ff068f23c6ea8537190e0a8 --- ~Randy ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: compiling only one module in kernel version 2.6? 2005-08-17 5:54 ` Steven Rostedt 2005-08-17 6:06 ` Randy.Dunlap @ 2005-08-18 17:42 ` Sam Ravnborg 2005-08-18 17:54 ` Steven Rostedt 1 sibling, 1 reply; 9+ messages in thread From: Sam Ravnborg @ 2005-08-18 17:42 UTC (permalink / raw) To: Steven Rostedt; +Cc: Randy.Dunlap, linux-kernel, sudoyang On Wed, Aug 17, 2005 at 01:54:50AM -0400, Steven Rostedt wrote: > On Wed, 2005-08-17 at 01:48 -0400, Steven Rostedt wrote: > > On Tue, 2005-08-16 at 22:41 -0700, Randy.Dunlap wrote: > > > > > > Sam only added make .ko build support very recently, > > > so it could easily depend on what kernel verison Fong is using. > > > > That could very well explain it. I'm doing this on 2.6.13-rc6-rt6 > > (2.6.13-rc6 with Ingo's rt6 patch applied). So I really do have a > > recent kernel. > > > > I just did this on a 2.6.9 vanilla kernel, and it still worked. Hi Steve. make fs/reiserfs/ and make fs/reiserfs/resiserfs.ko does not do the same thing. Only the latter result in a .ko file. Sam ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: compiling only one module in kernel version 2.6? 2005-08-18 17:42 ` Sam Ravnborg @ 2005-08-18 17:54 ` Steven Rostedt 2005-08-18 18:11 ` Randy.Dunlap 0 siblings, 1 reply; 9+ messages in thread From: Steven Rostedt @ 2005-08-18 17:54 UTC (permalink / raw) To: Sam Ravnborg; +Cc: Randy.Dunlap, linux-kernel, sudoyang On Thu, 2005-08-18 at 19:42 +0200, Sam Ravnborg wrote: > On Wed, Aug 17, 2005 at 01:54:50AM -0400, Steven Rostedt wrote: > > On Wed, 2005-08-17 at 01:48 -0400, Steven Rostedt wrote: > > > On Tue, 2005-08-16 at 22:41 -0700, Randy.Dunlap wrote: > > > > > > > > Sam only added make .ko build support very recently, > > > > so it could easily depend on what kernel verison Fong is using. > > > > > > That could very well explain it. I'm doing this on 2.6.13-rc6-rt6 > > > (2.6.13-rc6 with Ingo's rt6 patch applied). So I really do have a > > > recent kernel. > > > > > > > I just did this on a 2.6.9 vanilla kernel, and it still worked. > > Hi Steve. > > make fs/reiserfs/ > and > make fs/reiserfs/resiserfs.ko > > does not do the same thing. Only the latter result in a .ko file. I never said I did a "make fs/reiserfs". I did a "make SUBDIRS=fs/reiserfs" which does produce a .ko file. But even shorter is to do a "make M=fs/reiserfs", which also works. But, I guess what was added was the ability to just type the module itself. That's cool, but I haven't had the need to do that (yet). -- Steve ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: compiling only one module in kernel version 2.6? 2005-08-18 17:54 ` Steven Rostedt @ 2005-08-18 18:11 ` Randy.Dunlap 0 siblings, 0 replies; 9+ messages in thread From: Randy.Dunlap @ 2005-08-18 18:11 UTC (permalink / raw) To: Steven Rostedt; +Cc: Sam Ravnborg, Randy.Dunlap, linux-kernel, sudoyang On Thu, 18 Aug 2005, Steven Rostedt wrote: > On Thu, 2005-08-18 at 19:42 +0200, Sam Ravnborg wrote: > > On Wed, Aug 17, 2005 at 01:54:50AM -0400, Steven Rostedt wrote: > > > On Wed, 2005-08-17 at 01:48 -0400, Steven Rostedt wrote: > > > > On Tue, 2005-08-16 at 22:41 -0700, Randy.Dunlap wrote: > > > > > > > > > > Sam only added make .ko build support very recently, > > > > > so it could easily depend on what kernel verison Fong is using. > > > > > > > > That could very well explain it. I'm doing this on 2.6.13-rc6-rt6 > > > > (2.6.13-rc6 with Ingo's rt6 patch applied). So I really do have a > > > > recent kernel. > > > > > > > > > > I just did this on a 2.6.9 vanilla kernel, and it still worked. > > > > Hi Steve. > > > > make fs/reiserfs/ > > and > > make fs/reiserfs/resiserfs.ko > > > > does not do the same thing. Only the latter result in a .ko file. > > I never said I did a "make fs/reiserfs". I did a > "make SUBDIRS=fs/reiserfs" which does produce a .ko file. That command uses an implicit target of all (which is bzImage + modules), and then SUBDIRS (or M) limits it to the specified subdir., so it builds all modules in the specified subdir. As opposed to what I thought(?) the OP was asking about: how to build one module only. I think that we have nailed it enough now, yes? :) > But even shorter is to do a "make M=fs/reiserfs", which also works. > > But, I guess what was added was the ability to just type the module > itself. That's cool, but I haven't had the need to do that (yet). -- ~Randy ^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2005-08-18 18:11 UTC | newest] Thread overview: 9+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2005-08-17 2:09 compiling only one module in kernel version 2.6? Fong Vang 2005-08-17 3:18 ` Steven Rostedt 2005-08-17 5:41 ` Randy.Dunlap 2005-08-17 5:48 ` Steven Rostedt 2005-08-17 5:54 ` Steven Rostedt 2005-08-17 6:06 ` Randy.Dunlap 2005-08-18 17:42 ` Sam Ravnborg 2005-08-18 17:54 ` Steven Rostedt 2005-08-18 18:11 ` Randy.Dunlap
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.