linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Alistair J Strachan <alistair@devzero.co.uk>
To: linux-kernel@vger.kernel.org
Subject: Re: [RFC] KBUILD 2.5 issues/regressions
Date: Fri, 11 Jul 2003 18:57:49 +0100	[thread overview]
Message-ID: <200307111857.49762.alistair@devzero.co.uk> (raw)

On Friday 11 July 2003 18:47, Arjan van de Ven wrote:
> On Fri, 2003-07-11 at 19:40, Alistair J Strachan wrote:
> > o The state of kbuild in shipped (distribution) kernels must be such that
> > the construction of external modules can be done without having to modify
> > the shipped kernel-source package.
>
> that is actually not hard; I just did this in a RH rpm like way last
> week.

I cannot see how you can make modversions modules without first building
vmlinux. This "RPM" presumably does not ship with vmlinux constructed, and
modpost depends on vmlinux to extract dependency symbols (as far as I can
tell.. though a KBUILD run on an uncompiled modversions tree appears to work,
you'll find the modversions section is not added to the kernel module, note
the size difference).

Try it with the NVIDIA driver, or any other preexisting driver using kbuild
and modversions but lacking a prebuilt vmlinux. I don't use RH, but
presumably the distributed 2.4 kernels did not have to be built before you
could include modversions.h. Assuming modpost is now a replacement for
modversions.h, and it does require vmlinux to include symbol CRCs, no, I
would say there was a problem.

> > So far, this matches the behaviour in 2.4. However, in 2.4 you need only
> > do a "make dep" (and, I believe, some distros also touch a couple of
> > other files).
>
> you never ever should need to do make dep in distro trees for building
> external modules.

Probably not, but what I meant was that supporting files (such as autoconf.h
and other "generated" headers that ARE required for compilation) would be
made during such a stage in 2.4 and do not have to be rebuilt. This isn't
actually the main issue, but I did notice that modpost is sometimes rebuilt
when you call the kernel makefile with SUBDIRS=/to/external/directory, and I
think it's obvious that this will require write access to the tree.

Cheers,
Alistair.


             reply	other threads:[~2003-07-11 17:43 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-11 17:57 Alistair J Strachan [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-11-05  7:10 [RFC] KBUILD 2.5 issues/regressions "Andrey Borzenkov" 
2003-11-05  9:23 ` Arjan van de Ven
2003-11-05 13:39   ` David Woodhouse
2003-11-06 17:23 ` Sam Ravnborg
2003-11-06 23:21   ` Ian Kent
2003-11-09 10:12   ` Andrey Borzenkov
2003-11-09 10:22     ` Arjan van de Ven
2003-07-11 17:40 Alistair J Strachan
2003-07-11 17:47 ` Arjan van de Ven
     [not found] ` <200307111856.53635.alistair@devzero.co.uk>
     [not found]   ` <20030711180134.H19709@devserv.devel.redhat.com>
2003-07-11 18:06     ` Alistair J Strachan

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=200307111857.49762.alistair@devzero.co.uk \
    --to=alistair@devzero.co.uk \
    --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;
as well as URLs for NNTP newsgroup(s).