All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-core] Oops, I broke something
@ 2006-01-06 12:10 Jan Kiszka
  2006-01-06 12:28 ` [Xenomai-core] " Philippe Gerum
  2006-01-06 12:38 ` Philippe Gerum
  0 siblings, 2 replies; 8+ messages in thread
From: Jan Kiszka @ 2006-01-06 12:10 UTC (permalink / raw)
  To: Philippe Gerum; +Cc: xenomai-core

[-- Attachment #1: Type: text/plain, Size: 831 bytes --]

Hi Philippe,

my RTDM header "optimisation" broke the compilation of
testsuite/latency. I need an extra link for the userspace compilation
inside xeno now. Please apply this patch

--- configure.in        (Revision 372)
+++ configure.in        (Arbeitskopie)
@@ -348,6 +348,8 @@

 base=include
 AC_CONFIG_LINKS([src/include/xenomai:$base])
+base=rtdm
+AC_CONFIG_LINKS([src/include/$base:include/$base])
 base=asm-$XENO_TARGET_ARCH
 AC_CONFIG_LINKS([src/include/asm/xenomai:include/$base])
 base=asm-generic

and run bootstrap. Sorry.

But this raised the question to me again if we really need the "xenomai"
prefix for all the skin headers /from within xenomai/. Why not doing the
same linking dance for the other skins as well? Or do you also prefer
that user include <xenomai/native/task.h> instead of just <native/task.h>?

Jan

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 256 bytes --]

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

* [Xenomai-core] Re: Oops, I broke something
  2006-01-06 12:10 [Xenomai-core] Oops, I broke something Jan Kiszka
@ 2006-01-06 12:28 ` Philippe Gerum
  2006-01-06 12:54   ` Gilles Chanteperdrix
  2006-01-06 12:38 ` Philippe Gerum
  1 sibling, 1 reply; 8+ messages in thread
From: Philippe Gerum @ 2006-01-06 12:28 UTC (permalink / raw)
  To: Jan Kiszka; +Cc: xenomai-core

Jan Kiszka wrote:
> Hi Philippe,
> 
> my RTDM header "optimisation" broke the compilation of
> testsuite/latency. I need an extra link for the userspace compilation
> inside xeno now. Please apply this patch
> 
> --- configure.in        (Revision 372)
> +++ configure.in        (Arbeitskopie)
> @@ -348,6 +348,8 @@
> 
>  base=include
>  AC_CONFIG_LINKS([src/include/xenomai:$base])
> +base=rtdm
> +AC_CONFIG_LINKS([src/include/$base:include/$base])
>  base=asm-$XENO_TARGET_ARCH
>  AC_CONFIG_LINKS([src/include/asm/xenomai:include/$base])
>  base=asm-generic
> 
> and run bootstrap. Sorry.
> 
> But this raised the question to me again if we really need the "xenomai"
> prefix for all the skin headers /from within xenomai/. Why not doing the
> same linking dance for the other skins as well? Or do you also prefer
> that user include <xenomai/native/task.h> instead of just <native/task.h>?

We need this for building from within the kernel. Other options would 
require to either alter the Xenomai source tree adding symlinks there, 
pollute linux/include with symlinks to reach the individual Xeno 
components, or refer to some external tree that eventually redirects to 
the Xenomai tree, which is not acceptable in any case.

-- 

Philippe.


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

* [Xenomai-core] Re: Oops, I broke something
  2006-01-06 12:10 [Xenomai-core] Oops, I broke something Jan Kiszka
  2006-01-06 12:28 ` [Xenomai-core] " Philippe Gerum
@ 2006-01-06 12:38 ` Philippe Gerum
  1 sibling, 0 replies; 8+ messages in thread
From: Philippe Gerum @ 2006-01-06 12:38 UTC (permalink / raw)
  To: Jan Kiszka; +Cc: xenomai-core

Jan Kiszka wrote:
> Hi Philippe,
> 
> my RTDM header "optimisation" broke the compilation of
> testsuite/latency. I need an extra link for the userspace compilation
> inside xeno now. Please apply this patch
> 
> --- configure.in        (Revision 372)
> +++ configure.in        (Arbeitskopie)
> @@ -348,6 +348,8 @@
> 
>  base=include
>  AC_CONFIG_LINKS([src/include/xenomai:$base])
> +base=rtdm
> +AC_CONFIG_LINKS([src/include/$base:include/$base])
>  base=asm-$XENO_TARGET_ARCH
>  AC_CONFIG_LINKS([src/include/asm/xenomai:include/$base])
>  base=asm-generic
> 
> and run bootstrap. Sorry.
> 
> But this raised the question to me again if we really need the "xenomai"
> prefix for all the skin headers /from within xenomai/. Why not doing the
> same linking dance for the other skins as well? Or do you also prefer
> that user include <xenomai/native/task.h> instead of just <native/task.h>?
>

Nope, people writing apps should not have to handle our internal issues, 
asking them to prefix with xenomai/ is not an option.


> Jan


-- 

Philippe.


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

* Re: [Xenomai-core] Re: Oops, I broke something
  2006-01-06 12:28 ` [Xenomai-core] " Philippe Gerum
@ 2006-01-06 12:54   ` Gilles Chanteperdrix
  2006-01-06 13:56     ` Philippe Gerum
  2006-01-06 16:57     ` Philippe Gerum
  0 siblings, 2 replies; 8+ messages in thread
From: Gilles Chanteperdrix @ 2006-01-06 12:54 UTC (permalink / raw)
  To: Philippe Gerum; +Cc: Jan Kiszka, xenomai-core

Philippe Gerum wrote:
 > Jan Kiszka wrote:
 > > But this raised the question to me again if we really need the "xenomai"
 > > prefix for all the skin headers /from within xenomai/. Why not doing the
 > > same linking dance for the other skins as well? Or do you also prefer
 > > that user include <xenomai/native/task.h> instead of just <native/task.h>?
 > 
 > We need this for building from within the kernel. Other options would 
 > require to either alter the Xenomai source tree adding symlinks there, 
 > pollute linux/include with symlinks to reach the individual Xeno 
 > components, or refer to some external tree that eventually redirects to 
 > the Xenomai tree, which is not acceptable in any case.

Maybe we could add EXTRA_CFLAGS=-I$(TOPDIR)/include/xenomai to every
xenomai kernel makefile and to the cflags returned by xeno-config for
kernel-space applications ?

-- 


					    Gilles Chanteperdrix.


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

* Re: [Xenomai-core] Re: Oops, I broke something
  2006-01-06 12:54   ` Gilles Chanteperdrix
@ 2006-01-06 13:56     ` Philippe Gerum
  2006-01-06 17:01       ` Jan Kiszka
  2006-01-06 16:57     ` Philippe Gerum
  1 sibling, 1 reply; 8+ messages in thread
From: Philippe Gerum @ 2006-01-06 13:56 UTC (permalink / raw)
  To: Gilles Chanteperdrix; +Cc: Jan Kiszka, xenomai-core

Gilles Chanteperdrix wrote:
> Philippe Gerum wrote:
>  > Jan Kiszka wrote:
>  > > But this raised the question to me again if we really need the "xenomai"
>  > > prefix for all the skin headers /from within xenomai/. Why not doing the
>  > > same linking dance for the other skins as well? Or do you also prefer
>  > > that user include <xenomai/native/task.h> instead of just <native/task.h>?
>  > 
>  > We need this for building from within the kernel. Other options would 
>  > require to either alter the Xenomai source tree adding symlinks there, 
>  > pollute linux/include with symlinks to reach the individual Xeno 
>  > components, or refer to some external tree that eventually redirects to 
>  > the Xenomai tree, which is not acceptable in any case.
> 
> Maybe we could add EXTRA_CFLAGS=-I$(TOPDIR)/include/xenomai to every
> xenomai kernel makefile

Yes, I would preferably merge that instead of playing with symlinks.

  and to the cflags returned by xeno-config for
> kernel-space applications ?
> 

There no such support in xeno-config anymore. Kernel module flags and 
dependencies now exclusively belong to the kernel build system; 
xeno-config is only relevant for building user-space apps.

-- 

Philippe.


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

* Re: [Xenomai-core] Re: Oops, I broke something
  2006-01-06 12:54   ` Gilles Chanteperdrix
  2006-01-06 13:56     ` Philippe Gerum
@ 2006-01-06 16:57     ` Philippe Gerum
  1 sibling, 0 replies; 8+ messages in thread
From: Philippe Gerum @ 2006-01-06 16:57 UTC (permalink / raw)
  To: Gilles Chanteperdrix; +Cc: Jan Kiszka, xenomai-core

Gilles Chanteperdrix wrote:
> Philippe Gerum wrote:
>  > Jan Kiszka wrote:
>  > > But this raised the question to me again if we really need the "xenomai"
>  > > prefix for all the skin headers /from within xenomai/. Why not doing the
>  > > same linking dance for the other skins as well? Or do you also prefer
>  > > that user include <xenomai/native/task.h> instead of just <native/task.h>?
>  > 
>  > We need this for building from within the kernel. Other options would 
>  > require to either alter the Xenomai source tree adding symlinks there, 
>  > pollute linux/include with symlinks to reach the individual Xeno 
>  > components, or refer to some external tree that eventually redirects to 
>  > the Xenomai tree, which is not acceptable in any case.
> 
> Maybe we could add EXTRA_CFLAGS=-I$(TOPDIR)/include/xenomai to every
> xenomai kernel makefile

While checking the 2.4 builds for ppc and x86, I stumbled upon cases 
where we do need this fix right now (e.g. benchmark and 16550A drivers). 
So I will handle this global change right after -rc2 is out.

-- 

Philippe.


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

* Re: [Xenomai-core] Re: Oops, I broke something
  2006-01-06 13:56     ` Philippe Gerum
@ 2006-01-06 17:01       ` Jan Kiszka
  2006-01-06 18:38         ` Philippe Gerum
  0 siblings, 1 reply; 8+ messages in thread
From: Jan Kiszka @ 2006-01-06 17:01 UTC (permalink / raw)
  To: Philippe Gerum; +Cc: xenomai-core

[-- Attachment #1: Type: text/plain, Size: 1755 bytes --]

Philippe Gerum wrote:
> Gilles Chanteperdrix wrote:
> 
>> Philippe Gerum wrote:
>>  > Jan Kiszka wrote:
>>  > > But this raised the question to me again if we really need the
>> "xenomai"
>>  > > prefix for all the skin headers /from within xenomai/. Why not
>> doing the
>>  > > same linking dance for the other skins as well? Or do you also
>> prefer
>>  > > that user include <xenomai/native/task.h> instead of just
>> <native/task.h>?
>>  >  > We need this for building from within the kernel. Other options
>> would  > require to either alter the Xenomai source tree adding
>> symlinks there,  > pollute linux/include with symlinks to reach the
>> individual Xeno  > components, or refer to some external tree that
>> eventually redirects to  > the Xenomai tree, which is not acceptable
>> in any case.
>>
>> Maybe we could add EXTRA_CFLAGS=-I$(TOPDIR)/include/xenomai to every
>> xenomai kernel makefile
> 
> 
> Yes, I would preferably merge that instead of playing with symlinks.
> 
>  and to the cflags returned by xeno-config for
> 
>> kernel-space applications ?
>>
> 
> There no such support in xeno-config anymore. Kernel module flags and
> dependencies now exclusively belong to the kernel build system;
> xeno-config is only relevant for building user-space apps.
> 

Actually, my concerns only targeted the userspace applications, more
precisely those few being built inside the xeno tree. External user apps
can still use the standard, non-prefixed headers. Thus my idea was to
unify the includes for those in-tree applications so that users who are
taking them as reference only see the standard way.

External kernel applications and drivers can and should catch this
prefix by adding <linuxsrc>/include/xenomai to their makefiles.

Jan

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 256 bytes --]

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

* Re: [Xenomai-core] Re: Oops, I broke something
  2006-01-06 17:01       ` Jan Kiszka
@ 2006-01-06 18:38         ` Philippe Gerum
  0 siblings, 0 replies; 8+ messages in thread
From: Philippe Gerum @ 2006-01-06 18:38 UTC (permalink / raw)
  To: Jan Kiszka; +Cc: xenomai-core

Jan Kiszka wrote:
> Philippe Gerum wrote:
> 
>>Gilles Chanteperdrix wrote:
>>
>>
>>>Philippe Gerum wrote:
>>> > Jan Kiszka wrote:
>>> > > But this raised the question to me again if we really need the
>>>"xenomai"
>>> > > prefix for all the skin headers /from within xenomai/. Why not
>>>doing the
>>> > > same linking dance for the other skins as well? Or do you also
>>>prefer
>>> > > that user include <xenomai/native/task.h> instead of just
>>><native/task.h>?
>>> >  > We need this for building from within the kernel. Other options
>>>would  > require to either alter the Xenomai source tree adding
>>>symlinks there,  > pollute linux/include with symlinks to reach the
>>>individual Xeno  > components, or refer to some external tree that
>>>eventually redirects to  > the Xenomai tree, which is not acceptable
>>>in any case.
>>>
>>>Maybe we could add EXTRA_CFLAGS=-I$(TOPDIR)/include/xenomai to every
>>>xenomai kernel makefile
>>
>>
>>Yes, I would preferably merge that instead of playing with symlinks.
>>
>> and to the cflags returned by xeno-config for
>>
>>
>>>kernel-space applications ?
>>>
>>
>>There no such support in xeno-config anymore. Kernel module flags and
>>dependencies now exclusively belong to the kernel build system;
>>xeno-config is only relevant for building user-space apps.
>>
> 
> 
> Actually, my concerns only targeted the userspace applications, more
> precisely those few being built inside the xeno tree. External user apps
> can still use the standard, non-prefixed headers. Thus my idea was to
> unify the includes for those in-tree applications so that users who are
> taking them as reference only see the standard way.

Ack, but this is a matter of general consistency. Now that the issue is 
raised and that we need to address it, it's better if we don't have to 
fiddle with exception cases uselessly, so using the proper include 
directives for both internal/external cases is the best way to go; 
provided it works, but it should.

> 
> External kernel applications and drivers can and should catch this
> prefix by adding <linuxsrc>/include/xenomai to their makefiles.
> 
> Jan


-- 

Philippe.


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

end of thread, other threads:[~2006-01-06 18:38 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-06 12:10 [Xenomai-core] Oops, I broke something Jan Kiszka
2006-01-06 12:28 ` [Xenomai-core] " Philippe Gerum
2006-01-06 12:54   ` Gilles Chanteperdrix
2006-01-06 13:56     ` Philippe Gerum
2006-01-06 17:01       ` Jan Kiszka
2006-01-06 18:38         ` Philippe Gerum
2006-01-06 16:57     ` Philippe Gerum
2006-01-06 12:38 ` Philippe Gerum

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.