mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jamie Lokier <lk@tantalophile.demon.co.uk>
To: richard offer <offer@sgi.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: build -->/usr/src/linux
Date: Tue, 10 Apr 2001 19:04:44 +0200	[thread overview]
Message-ID: <20010410190444.A21024@pcep-jamie.cern.ch> (raw)
In-Reply-To: <20010408161620.A21660@flint.arm.linux.org.uk> <3AD0A029.C17C3EFC@rcn.com> <9aqmgo$8f6ol$1@fido.engr.sgi.com> <10104091601.ZM401478@sgi.com> <20010410160825.A20555@pcep-jamie.cern.ch> <lk@tantalophile.demon.co.uk> <1010410093615.ZM1231@sgi.com> <20010410184237.A20969@pcep-jamie.cern.ch> <lk@tantalophile.demon.co.uk> <1010410095237.ZM1290@sgi.com>
In-Reply-To: <1010410095237.ZM1290@sgi.com>; from offer@sgi.com on Tue, Apr 10, 2001 at 09:52:36AM -0700

richard offer wrote:
> What if your application contains some user code and a kernel module ?
> Want an obvious example ? X.

VMware is another.  In such cases, they have to do the same as any other
system-specific packages: guess, or ask the user.  Autoconf apps prefer
guessing; X uses Imake and would probably have the kernel source path
hard-coded in an Imake template :-)

The discussions here have suggested ways for a third-party module
package to guess how to install themselves, so that they will just work
on most systems.  /lib/modules/`uname -r`/build is the best anyone's
come up with so far, and it does just work on "plain old" 2.4 systems.
/usr/src/linux-`uname -r` is the next best.

This fails in certain cases such as cross-compiling, when the kernel
isn't living in /usr/src or its not configured, and when it's not the
running kernel.

But then, this is true of userspace too.  Build an app on a Red Hat
system, don't be surprised to find it fails to run on a Debian.

When cross-compiling a userspace app, you have to explicitly tell the
package how to build, libraries to use etc. whether by command line
flags or editing the source.  That's the joy of
cross-compiling.  /usr/lib doesn't contain the right libraries, but it's
ok for apps to look there _unless_ you say otherwise.

Same goes for kernel modules.  /lib/modules/`uname -r`/build doesn't
contain the right files when cross-compiling, but it's ok for module
packages to look there _unless_ you say otherwise.

-- Jamie

      reply	other threads:[~2001-04-10 17:05 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <9aqmgo$8f6ol$1@fido.engr.sgi.com>
2001-04-08 14:47 ` Marvin Stodolsky
2001-04-08 15:16   ` Russell King
2001-04-08 17:30     ` Marvin Stodolsky
2001-04-08 21:49       ` Miquel van Smoorenburg
2001-04-08 23:01         ` Jamie Lokier
2001-04-09 11:29           ` Miquel van Smoorenburg
2001-04-09 15:02             ` Jamie Lokier
2001-04-09 23:01       ` richard offer
2001-04-10 14:08         ` Jamie Lokier
2001-04-10 16:36           ` richard offer
2001-04-10 16:42             ` Jamie Lokier
2001-04-10 16:52               ` richard offer
2001-04-10 17:04                 ` Jamie Lokier [this message]

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=20010410190444.A21024@pcep-jamie.cern.ch \
    --to=lk@tantalophile.demon.co.uk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=offer@sgi.com \
    /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®