From: Sam Ravnborg <sam@ravnborg.org>
To: Robbert Haarman <lkml@inglorion.net>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Linux 2.6 Build System and Binary Modules
Date: Sun, 29 Feb 2004 20:32:51 +0100 [thread overview]
Message-ID: <20040229193251.GA2181@mars.ravnborg.org> (raw)
In-Reply-To: <20040229183143.GA8057@shire.sytes.net>
On Sun, Feb 29, 2004 at 07:31:43PM +0100, Robbert Haarman wrote:
> Hello list,
>
> Excuse me for not finding this if it has been asked before. Please Cc any answers, as I am not subscribed to this list.
>
> I am trying to port a driver for the Realtek 8180 wireless ehternet controller from 2.4 to 2.6. The module comes as a binary-only object file with some sources that can be adapted to fit the specific kernel. My problem is that I can't figure out how to get the 2.6 kernel to include the binary part (it's in a .o file). The new build system does a little too much magic - compiling the module from source to .ko without giving me a chance to sneak in the binary code. How do I get it to link in the .o file, without making it look for the like-named .c file?
There is no good nor documented way to do it today.
But you can use:
$(obj)/module.o: ld_flags += binary.o
Assuming you are building a module, and 'module' is the name of the
resulting module.
For built-in you shall use:
$(obj)/built-in.o: ld_flags += binary.o
Sam
next prev parent reply other threads:[~2004-02-29 19:32 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-29 18:31 Robbert Haarman
2004-02-29 18:42 ` Grzegorz Kulewski
2004-02-29 19:20 ` Robbert Haarman
2004-02-29 19:38 ` Larry Reaves
2004-02-29 19:20 ` Larry Reaves
2004-02-29 19:32 ` Sam Ravnborg [this message]
2004-03-01 18:01 ` Progress on RTL8180 Driver for Linux 2.6 Robbert Haarman
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=20040229193251.GA2181@mars.ravnborg.org \
--to=sam@ravnborg.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lkml@inglorion.net \
/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®