mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Eduard Bloch <edi@gmx.de>
To: linux-kernel@vger.kernel.org
Subject: [2.6] building extra modules, with r/o source
Date: Sat, 27 Dec 2003 02:11:53 +0100	[thread overview]
Message-ID: <20031227011153.GA8961@zombie.inka.de> (raw)

[-- Attachment #1: Type: text/plain, Size: 1691 bytes --]

#include <hallo.h>

I have a general question to the new kernel build system which is
claimed to be very generic: how does someone build external modules
having the MINIMAL SET of the kernel headers and other configuration
files? With Kernel 2.4, it was mostly feasible:

 - compiler calls were identical and portable
 - MODVERSIONS setting and modified compiler command could be configured
   using the .config file and few kernel headers
 - compiler name could be extracted from the configured headers
 - kernel headers only were enough to build the most modules out there

With 2.6, I see two major flaws:

 - module writers are encouraged to use the kernel build system to
   compile modules. Problem: apparently the whole build system must be
   shipped together with the headers. Solution: unknown. I would like to
   see something like the gtk-config script generated during the
   complete kernel build which would provide all needed information
   including compiler command. External modules could get the complete
   command line by running 
   sh /usr/src/kernel-foo-headers/kmod-build --compile foo.c

 - the build system also tries to write in the kernel source directory.
   This is simply not acceptable if /usr is mounted read-only or if you
   try to build external modules as user. The only good solution I see
   is using some temporary directory to write run-time files. I tried
   setting different variables in Makefile but that did not help, and
   the build scripts are not documented consistent enough to be easy to
   understand.

MfG,
Eduard.
-- 
Wußten Sie schon...
... daß "finish" gar nicht finnisch ist, sondern englisch?

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

                 reply	other threads:[~2003-12-27  1:12 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=20031227011153.GA8961@zombie.inka.de \
    --to=edi@gmx.de \
    --cc=linux-kernel@vger.kernel.org \
    /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

all inboxes | Powered by JetHome®