From: Jan Kiszka <jan.kiszka@domain.hid>
To: Axel Beierlein <belatronix@domain.hid>
Cc: "Xenomai-help@domain.hid" <Xenomai-help@domain.hid>
Subject: Re: [Xenomai-help] Kompiling an RT Kernel Module
Date: Fri, 29 Jun 2007 14:59:04 +0200 [thread overview]
Message-ID: <46850218.40909@domain.hid> (raw)
In-Reply-To: <op.tuom7dvpt06gyn@domain.hid>
[-- Attachment #1: Type: text/plain, Size: 2110 bytes --]
Axel Beierlein wrote:
> Hello,
>
> Now a few hours i try to compile a simple file as an RT Kernel Module and
> i get errors over errors.
> I have included the kernel sources and the xenomai sources in different
> ways. I get many "in file includes" and other errors.
>
> What are the minimal requirements to compile such a native rt module?
> (include path, lib path ....)
Just a standard kernel module makefile you'll find almost anywhere + a
Xenomai include path, ie.
EXTRA_CFLAGS := -I$(KSRC)/include/xenomai
(taken from your cited example)
> I can?t use the output of xeno-config cause the rootfs on my target(ppc)
> is mounted over NFS from my development host(i386). I have a look at the
You don't need to for a pure kernel module target. Just pick that
example and follow its instructions: Clear APPLICATIONS, put your module
into MODULES, then run make: "make KSRC=<kernel-src>". Must work, really.
> makefile http://svn.gna.org/svn/xenomai/trunk/examples/common/Makefile but
> that solved not my probs. On the contrary it confuses me more and more
> cause i don?t understand why the Makro KSRC is defined as an pointer to
> the librarys and this Makro was also used to point to the Kernelheaders.
Try to find out what is behind /lib/modules/`uname -r`/build on your
box... :->
(Note that "$(shell <command>)" in a makefile means `<command>` in your
shell.)
>
> Is there anywhere an example working with support for cross-developement?
If you use a cross-compiler, additionally pass its prefix like this:
make KSRC=... CROSS_COMPILE=...
If you compile for a different arch, add ARCH=... as well.
>
> I?ve compiled the running kernel with all xenomai stuff inside (no
> modules) but with module load support on.
>
> Axel
>
> sorry for my terrible English ;-)
It's very well readable! I guess you haven't seen truly terrible English
on mailing lists yet. ;)
Jan
PS: If someone feels like adding a few words / references about "how do
I compile a kernel module for Xenomai?" to the wiki, please go ahead!
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]
next prev parent reply other threads:[~2007-06-29 12:59 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-29 12:19 [Xenomai-help] Kompiling an RT Kernel Module Axel Beierlein
2007-06-29 12:59 ` Jan Kiszka [this message]
2007-06-29 15:47 ` Gilles Chanteperdrix
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=46850218.40909@domain.hid \
--to=jan.kiszka@domain.hid \
--cc=Xenomai-help@domain.hid \
--cc=belatronix@domain.hid \
/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 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.