From: Sam Ravnborg <sam@ravnborg.org>
To: Andre Bonin <kernel@bonin.ca>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: Module building oddities with <module>-objs under Kernel 2.6.8.1
Date: Sat, 2 Oct 2004 11:04:09 +0200 [thread overview]
Message-ID: <20041002090409.GA9043@mars.ravnborg.org> (raw)
In-Reply-To: <415E3912.3000900@bonin.ca>
On Sat, Oct 02, 2004 at 01:13:54AM -0400, Andre Bonin wrote:
> Here is the Makefile.
It is preferred to guard the kbuild specific stuff inside
ifeq ($(KERNELRELEASE),)
Normal stuff
else
kbuild stuff
endif
> ----------------------------------------------------
> KDIR := /usr/src/linux
> PWD := $(shell pwd)
>
> obj-m += datasim.o
> datasim-objs := status.o
This is wrong, you cannot use same name for a .o file and the final module.
Name your .c file datasim_core.c or similar and use:
obj-m := datasim.o
datasim-objs := datasim_core.o status.o
Sam
prev parent reply other threads:[~2004-10-02 7:03 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-02 5:13 Module building oddities with <module>-objs under Kernel 2.6.8.1 Andre Bonin
2004-10-02 9:04 ` Sam Ravnborg [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=20041002090409.GA9043@mars.ravnborg.org \
--to=sam@ravnborg.org \
--cc=kernel@bonin.ca \
--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