From: Oleg Verych <olecom@flower.upol.cz>
To: linux-kernel@vger.kernel.org
Subject: Re: Simple module for 2.6 request?
Date: Sat, 4 Nov 2006 06:27:54 +0000 (UTC) [thread overview]
Message-ID: <slrnekod4d.2j9.olecom@flower.upol.cz> (raw)
In-Reply-To: <454C1F84.9010601@limcore.pl>
> 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
____
next prev parent reply other threads:[~2006-11-04 6:28 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-04 5:05 lkml-2006i-ticket
2006-11-04 6:27 ` Oleg Verych [this message]
2006-11-04 9:50 ` Jan Engelhardt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=slrnekod4d.2j9.olecom@flower.upol.cz \
--to=olecom@flower.upol.cz \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®