public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: John Levon <movement@marcelothewonderpenguin.com>
To: Kai Germaschewski <kai@tp1.ruhr-uni-bochum.de>
Cc: linux-kernel@vger.kernel.org
Subject: Re: External compilation
Date: Mon, 10 Jun 2002 16:12:47 +0100	[thread overview]
Message-ID: <20020610151246.GA13626@compsoc.man.ac.uk> (raw)
In-Reply-To: <20020609142602.GA77496@compsoc.man.ac.uk> <Pine.LNX.4.44.0206100926110.20438-100000@chaos.physics.uiowa.edu>

On Mon, Jun 10, 2002 at 09:31:42AM -0500, Kai Germaschewski wrote:

> Well, you need the source for the kernel you're building the module for,
> it needs to be configured and "make dep" must have been run (for module 
> versions).

Obviously :)

I already have stuff working fine w/o the Rules.make include, I'm just
trying to do the "right thing"

> 	obj-m := my_module.o
> 
> 	include $(TOPDIR)/Rules.make
> 
> cd into the kernel source and run
> 
> 	make SUBDIRS=/path/to/your/module modules

Doesn't work for 2.2. Hopefully I will be able to specify M_OBJS in
addition.

Also, you don't specify O_TARGET ?

Given :

TOPDIR=/usr/src/linux
THISDIR=/tmp/mod
 
O_TARGET=lartmod.o
obj-m := lart.o blah.o
 
include $(TOPDIR)/Rules.make
 
all:
        (cd $(TOPDIR) && $(MAKE) SUBDIRS=/tmp/mod modules)


a) default target for Rules.make doesn't do anything useful
b) lartmod.o is never made (how could I convince it to ?)
c) is this going to work OK for modversions...
d) the above seems to disallow a lart.c forming only part of a final lart.o target
e) there seems something is going horribly wrong :

moz mod 317 make all
make: execvp: /usr/src/linux/scripts/pathdown.sh: Permission denied
ˆ¶@ˆ¶@re/locale/en_US/LC_MESSAGES/make.mo(cd /usr/src/linux && make SUBDIRS=/tmp/mod modules)
make[1]: Entering directory `/usr/src/linux-2.4.0'

The above problems is why I asked for working examples :)

regards
john

-- 
"I continue to be amazed at what Andrei can make templates do. Some of it
 still makes my head hurt."
	- Herb Sutter

  reply	other threads:[~2002-06-10 15:13 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-09 14:26 External compilation John Levon
2002-06-10 11:15 ` Gerd Knorr
2002-06-10 14:31 ` Kai Germaschewski
2002-06-10 15:12   ` John Levon [this message]
2002-06-10 15:34     ` Kai Germaschewski
2002-06-10 20:05 ` Greg KH

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=20020610151246.GA13626@compsoc.man.ac.uk \
    --to=movement@marcelothewonderpenguin.com \
    --cc=kai@tp1.ruhr-uni-bochum.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