All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai] universal application binary: how to auto-detect Xenomai/RT-PREEMPT/vanilla kernel
@ 2013-01-14  8:29 Michael Haberler
  2013-01-14 11:57 ` Gilles Chanteperdrix
  2013-01-14 12:06 ` Jan Kiszka
  0 siblings, 2 replies; 10+ messages in thread
From: Michael Haberler @ 2013-01-14  8:29 UTC (permalink / raw)
  To: xenomai

Hi,

thanks to patience on this list we were able to build linuxcnc such that it runs on Xenomai, besides RT-PREEMPT, vanilla kernels (in a simulator/non-RT mode) and RTAI


I'm planning to adapt linuxcnc such that a universal binary can be built which runs under Xenomai, RT-PREEMPT and vanilla kernels as this will simplify logistics quite a bit; what I'd like have is reliable auto-detection of the kernel type and 'do the right thing' (RTAI will remain a separate build).

Autodetection could be one of several things - digging around with a shell script, using system calls, digging in /proc - unsure how to best do this, in particular I'm unsure how to tell an RT-PREEMPT kernel from a vanilla kernel 

I know it's a bit OT - still I'd be thankful for suggestions

any other low-lying cliffs I might hit?

- Michael




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

end of thread, other threads:[~2013-01-16 10:21 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-14  8:29 [Xenomai] universal application binary: how to auto-detect Xenomai/RT-PREEMPT/vanilla kernel Michael Haberler
2013-01-14 11:57 ` Gilles Chanteperdrix
2013-01-14 12:05   ` Michael Haberler
2013-01-14 14:07     ` Philippe Gerum
2013-01-16  6:55       ` John Morris
2013-01-16  8:13         ` Jan Kiszka
2013-01-16  8:19           ` Gilles Chanteperdrix
2013-01-16 10:21             ` Paul
2013-01-14 12:06 ` Jan Kiszka
2013-01-14 12:16   ` Michael Haberler

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.