lkml.org 
[lkml]   [2006]   [Nov]   [4]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
FromOleg Verych <>
SubjectRe: Simple module for 2.6 request?
DateSat, 4 Nov 2006 06:27:54 +0000 (UTC)
> Hello,
> it is not so easy to find online an *working* example of how to by hand
> build a module.

Please find information on how to build (external) modules in
"Documentation/kbuild/modules.txt" directory of your linux source tree.
More (implementation) info can be found in the top Makefile.

> gcc -o foo.c -ko foo.ko -DMODULE -D__KERNEL__
> -I/usr/src/kernel-headers-directory/include/
>
> with module license define macro
>
> almost worked, but it misses thoes extra symbols created in
> post-compilation.
>
> How to add them by hand (not using all the big Makefiles normally
> included in kernel tree)?
>
> Like
> some-command foo.ko foo.c
> insmod foo.ko
> done
____

-
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/

\
 
 \ /
  Last update: 2006-11-04 07:31    [from the cache]
©2003-2008