Am 18.10.2012 um 17:49 schrieb Sebastian Kuzminsky:

...thanks, got that - runtests, sure, didnt think of that

> 
> 
>> If it is OK to assume that the build target kernel is *installed* but *not 
>> running* and support files in place, then I would go a different route:
>> 
>> do the build by specifying a target kernel like in 'debian/configure 
>> <kernelversion>' and then investigate the config files in 
>> /boot/config-<kernelversion> to find out what the target kernel is about.
>> 
>> AFAICT there is no clear method I could think of whether a given 
>> kernelversion string is RT_PREEMPT or generic except for looking in 
>> /boot/config* .
>> 
>> what do you think?
> 
> I'd say, make the user tell you what kind of build they want.  Maybe 
> "--with-rtai=$RTAI_PATH", or "--with-xenomai=$XENOMAI_PATH", or 
> "--with-preempt=$PREEMPT_PATH".

oh, you mean specify the path to the kernel config? that's best because its 
unambiguous.

The type tag (rtai/preempt/xenomai) wont be enough to specify the build fully 
though (thread type, build drivers, user .so vs kernel .ko does not follow) so 
what I'd do is

--with-kernel=/boot/config-<whatever>  which defaults to running kernel 
--with-build-type=(posix,rtai,rt-preempt-user,rt-preempt-kernel,xenomai-user,xenomai-kernel)
 
--with-drivers (defaults to yes except for --with-build-type=posix which is 
newspeak for 'sim')

the latter can be defaulted too once you have access to /boot/config*, and 
checked against kernel

In practice this would look like so:

configure --enable-simulator 
        as before. defaults to --with-build-type=posix, and --without-drivers 
but may take a --with-driver option to build drivers like sim_parport
        doesnt care about kernel; fine if Gnu threads library installed.

configure
        Takes the running kernel config to determine which kernel type (rtai, 
xenomai, rt-preempt)
        makes a default thread style (rtai, rt-preempt-user and xenomai-user 
for now)
        complains if running kernel is generic (non-RT)
        implies --with-driver. Module type derived from thread style.

configure --with-build-type=xenomai-user 
--with-kernel=/boot/config-2.6.38.8-xenomai
        this would build for xenomai-2.6.38.8-xenomai provided it is installed 
but needs not be running
        complains if /boot/config-2.6.38.8-xenomai does not smell like a 
Xenomai config

configure --with-build-type=rt-preempt-user
        this would check whether the running kernel is in fact rt-preempt by 
inspecting /boot/config-`uname -r` for appropriate flags, and complain 
otherwise-


I think that covers it, even the garden sprinkler HAL application which was 
recently mentioned - that would be --enable-simulator --with-drivers.


sounds ok?

-m

> 
> 
> 
> -- 
> Sebastian Kuzminsky
> 
> 
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_sfd2d_oct
> _______________________________________________
> Emc-developers mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/emc-developers


------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to