From: "lkml-2006i-ticket@limcore.pl" <lkml-2006i-ticket@limcore.pl>
To: linux-kernel@vger.kernel.org
Subject: Simple module for 2.6 request?
Date: Sat, 04 Nov 2006 06:05:08 +0100 [thread overview]
Message-ID: <454C1F84.9010601@limcore.pl> (raw)
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
next reply other threads:[~2006-11-04 5:06 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-04 5:05 lkml-2006i-ticket [this message]
2006-11-04 6:27 ` Oleg Verych
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=454C1F84.9010601@limcore.pl \
--to=lkml-2006i-ticket@limcore.pl \
--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®