public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Proper way to release binary-only driver?
@ 2001-04-05 10:58 Miller, Brendan
  2001-04-05 11:50 ` Eric W. Biederman
  2001-04-06  5:33 ` Proper way to release binary-only driver? Alan Cox
  0 siblings, 2 replies; 11+ messages in thread
From: Miller, Brendan @ 2001-04-05 10:58 UTC (permalink / raw)
  To: 'linux-kernel@vger.kernel.org'


I have the need to distribute a binary-only driver (no flames, please), but
I am not certain how to build it so that it can be used on multiple kernel
versions.  (Or is this impossible?)

I didn't find any "HOWTO (or recommendation) for proper binary-only driver
release etiquette", so if there are some preferred means, please let me
know.

I specifically had issues with the whole MODVERSIONS thing.  I can include
<linux/verion.h> and <linux/config.h> to get the right CONFIG_MODVERSIONS
macro definitions, and then include <linux/modversions.h> as appropriate.
The end result is a driver with symbols whose names are mangled to match the
modversion-enabled mangling of a modversion-enabled kernel.  This is good if
I release on the same kernel version.

Obviously, if I use a different kernel the module refuses to load.  My first
guess was to get rid of the module-versioning stuff so that the symbols are
not mangled, and this seems to work, except that I must use insmod -f module
for kernels with a different version than what I built with.

So, if there are guides that I didn't find, or ones on this list that
someone things I should use, please let me know.  Or at least comment on my
chosen way of doing things.  It's this sort of thing that reinforces a
source form driver is the way to release stuff--then it can be built
alongside the user's kernel tree...

Please cc: me as I am not subscribed.

Brendan Miller
Dialogic, An Intel Company


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2001-04-09 13:11 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-04-05 10:58 Proper way to release binary-only driver? Miller, Brendan
2001-04-05 11:50 ` Eric W. Biederman
2001-04-06 15:50   ` Proper way to release binary driver? Christopher Turcksin
2001-04-06 16:09     ` Joel Jaeggli
2001-04-06 16:22     ` J . A . Magallon
2001-04-07  1:24     ` How to build modules outside the kernel tree? [Was: Proper way to release binary driver?] Eric W. Biederman
2001-04-08 13:10       ` Jamie Lokier
2001-04-07  8:18     ` Proper way to release binary driver? Alan Cox
2001-04-09 13:11       ` Henning P. Schmiedehausen
2001-04-07 11:06     ` Christopher Turcksin
2001-04-06  5:33 ` Proper way to release binary-only driver? Alan Cox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox