All of lore.kernel.org
 help / color / mirror / Atom feed
* Simple module for 2.6 request?
@ 2006-11-04  5:05 lkml-2006i-ticket
  2006-11-04  6:27 ` Oleg Verych
  2006-11-04  9:50 ` Jan Engelhardt
  0 siblings, 2 replies; 3+ messages in thread
From: lkml-2006i-ticket @ 2006-11-04  5:05 UTC (permalink / raw)
  To: linux-kernel


Hello,
it is not so easy to find online an *working* example of how to by hand
build a module.

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



-- 
LimCore    C++ Software Architect / Team Lead
---> oo    Linux programs
limcore
software



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

end of thread, other threads:[~2006-11-04  9:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-04  5:05 Simple module for 2.6 request? lkml-2006i-ticket
2006-11-04  6:27 ` Oleg Verych
2006-11-04  9:50 ` Jan Engelhardt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.