From: Sam Ravnborg <sam@ravnborg.org>
To: linux-kernel@vger.kernel.org,
4Front Technologies <dev@opensound.com>,
Hannu Savolainen <hannu@opensound.com>,
Andrew Morton <akpm@osdl.org>,
Rusty Russell <rusty@rustcorp.com.au>
Subject: What is needed to build an external module
Date: Thu, 6 May 2004 19:48:13 +0200 [thread overview]
Message-ID: <20040506174813.GA2387@mars.ravnborg.org> (raw)
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
reply other threads:[~2004-05-06 17:42 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040506174813.GA2387@mars.ravnborg.org \
--to=sam@ravnborg.org \
--cc=akpm@osdl.org \
--cc=dev@opensound.com \
--cc=hannu@opensound.com \
--cc=linux-kernel@vger.kernel.org \
--cc=rusty@rustcorp.com.au \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome