Re: Problem in EXPORT_SYMBOL.. Please Help!

From: Sam Ravnborg (sam@ravnborg.org)
Date: Wed Dec 25 2002 - 10:33:58 EST


On Tue, Dec 24, 2002 at 08:20:41AM -0800, Dhirendra Pal Singh wrote:
> Hi All
[Problem with exported symbol]

Kai G. posted this receipt the other day:
------------
Well, you can do

cd my_module
echo "obj-m := my_module.o" > Makefile
vi my_module.c
make -C <path/to/kernel/src> SUBDIRS=$PWD modules

That's not too bad (and basically works for 2.4 as well)
------------

That should catch any compiletime problems. Just stick in:
echo "export-objs := my_module.o" >> Makefile
To mark it a module with exported symbols.

And for 2.4 you need to include Rules.make:
echo "include path/to/Rules.make"

HTH,
        Sam
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Dec 31 2002 - 22:00:08 EST