On Fri, Oct 12, 2001 at 09:42:05AM +1000, Keith Owens wrote:
> On Thu, 11 Oct 2001 09:35:32 -0700, 
> Tom Rini <[EMAIL PROTECTED]> wrote:
> >Hey all.  How do you do the 'export-objs' bits in a kernel module that's
> >outside of the kernel?  Thanks..
> 
> Compile with -DMODULE -DEXPORT_SYMTAB.  If the kernel has modversions,
> add -DMODVERSIONS -include $(HPATH)/linux/modversions.h.  The safest
> way is to compile a module in the kernel that exports the objects then
> copy the command, substituting the file names.

I think I managed to get things right.  I added -DEXPORT_SYMTAB to the
default flags and added:
CFLAGS_EXTRA    += $(shell if [ -f $(KERNEL_HEADERS)/linux/modversions.h ]; \
                        then echo -include \
                        $(KERNEL_HEADERS)/linux/modversions.h; fi)
 
Thanks!

-- 
Tom Rini (TR1265)
http://gate.crashing.org/~trini/

_______________________________________________
kbuild-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/kbuild-devel

Reply via email to