lkml.org 
[lkml]   [2004]   [May]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectWhat is needed to build an external module
In a private mail Dev Mazumdar suggested to create a system for 
building external modules without the necessity to have the
full kernel source available.

I decided to take this to LKML since it may be a questions
other people had.

The reason why one must use the kbuild infrastructure when
building external modules are the CONFIG choices that either
impact gcc options or the include files.
If a seperate system for buiding modules were made that
part should be copied over for each and every change, and only
one particular version of the 'building external modules' would
be compatible with a given kernel version. So having a
seperate system is a no-go.

What one should realize what is actually needed to build an
external module.
A full copy of:
root of kernel src
include/
scripts/
and a copy of the Makefile for the selected architecture.
Thats all needed to build a well behaving external module.
This could very well be what a distribution places in
/lib/modules/linux-<version>/build
and not a full kernel tree.

Hope this clarifies,

Sam
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:02    [W:0.122 / U:0.216 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site