Skip to contentSkip to conversation

Kconfig inconsistencies

Xenomai-core Applied Jan Kiszka 3 participants 7 messages Feb 13, 2006 – Feb 15, 2006

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

Hi,

here are some build screw-ups one can create by switching off the wrong options:

o CONFIG_XENO_OPT_NATIVE_REGISTRY (but CONFIG_XENO_OPT_PERVASIVE remains on): unresolved symbols rt_registry_bind and rt_registry_fetch, several warnings due to "#[el]if CONFIG_XENO_..." instead of "#[el]if defined(CONFIG_XENO_...)"

o CONFIG_XENO_OPT_PERVASIVE: xnheap_init_mapped and xnheap_destroy_mapped become unresolved

The first issue reminds me of my unanswered question if (CONFIG_XENO_OPT_PERVASIVE && CONFIG_XENO_SKIN_NATIVE && !CONFIG_XENO_OPT_NATIVE_REGISTRY) makes any sense at all (kernel objects created from user space are looked up via the registry, right?).

I haven't worked out any patch for those issues. Actually, I only wanted to put this patch forward when stumbling over the other:

skins/native/Kconfig (working copy) renamed from skins/native/Kconfig (revision 564) +0 -1
@@ -127,7 +127,6 @@
 
 config XENO_OPT_NATIVE_INTR
 	bool "Interrupts"
-	default y
 	help
 
 	This option provides a simple API to deal with interrupts,

Rationale: the /default/ way of handling IRQs should be via RTDM-based drivers. Only users who know what they are doing should leave this path and will have to switch on this feature explicitly. If this view can be commonly accepted, I will add some lines to the feature's help text as well.

Jan

#1 lore raw
Quoted 5 lines · Jan Kiszka

Hi,

here are some build screw-ups one can create by switching off the wrong options:

Quoted 8 lines

o CONFIG_XENO_OPT_NATIVE_REGISTRY (but CONFIG_XENO_OPT_PERVASIVE remains on): unresolved symbols rt_registry_bind and rt_registry_fetch, several warnings due to "#[el]if CONFIG_XENO_..." instead of "#[el]if defined(CONFIG_XENO_...)"

o CONFIG_XENO_OPT_PERVASIVE: xnheap_init_mapped and xnheap_destroy_mapped become unresolved

Ok, will fix.

Quoted 5 lines

The first issue reminds me of my unanswered question if (CONFIG_XENO_OPT_PERVASIVE && CONFIG_XENO_SKIN_NATIVE && !CONFIG_XENO_OPT_NATIVE_REGISTRY) makes any sense at all (kernel objects created from user space are looked up via the registry, right?).

Right, it doesn't make sense.

Quoted 15 lines

I haven't worked out any patch for those issues. Actually, I only wanted to put this patch forward when stumbling over the other:

skins/native/Kconfig (working copy) renamed from skins/native/Kconfig (revision 564) +0 -1
@@ -127,7 +127,6 @@
 
 config XENO_OPT_NATIVE_INTR
 	bool "Interrupts"
-	default y
 	help
 
 	This option provides a simple API to deal with interrupts,
Quoted 5 lines

Rationale: the /default/ way of handling IRQs should be via RTDM-based drivers. Only users who know what they are doing should leave this path and will have to switch on this feature explicitly. If this view can be commonly accepted, I will add some lines to the feature's help text as well.

Agreed.

Quoted 10 lines

Jan

------------------------------------------------------------------------

_______________________________________________
Xenomai-core mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-core

Signature · 1 line
Philippe.
author
#2 lore raw
Quoted 16 lines · Philippe Gerum
Quoted 15 lines · Jan Kiszka

I haven't worked out any patch for those issues. Actually, I only wanted to put this patch forward when stumbling over the other:

skins/native/Kconfig (working copy) renamed from skins/native/Kconfig (revision 564) +0 -1
@@ -127,7 +127,6 @@
 
 config XENO_OPT_NATIVE_INTR
     bool "Interrupts"
-    default y
     help
 
     This option provides a simple API to deal with interrupts,
Quoted 9 lines
Quoted 6 lines

Rationale: the /default/ way of handling IRQs should be via RTDM-based drivers. Only users who know what they are doing should leave this path and will have to switch on this feature explicitly. If this view can be commonly accepted, I will add some lines to the feature's help text as well.

Agreed.

Then apply this one, please. I noticed that 2.4 does not know default values for bool options, correct?

Jan

skins/native/Kconfig +3 -3
Index: ksrc/skins/native/Kconfig
===================================================================
@@ -128,11 +128,11 @@
 
 config XENO_OPT_NATIVE_INTR
 	bool "Interrupts"
-	default y
 	help
 	
 	This option provides a simple API to deal with interrupts,
-	both in kernel and user-space contexts. Registry support is
-	required.
+	both in kernel and user-space contexts. Note that the preferred
+	way of implementing generic drivers usable across all Xenomai
+	interfaces is defined by the Real-Time Driver Model (RTDM).
 
 endif
#3 lore raw
Quoted 29 lines · Jan Kiszka
Quoted 16 lines · Philippe Gerum
Quoted 14 lines · Jan Kiszka

I haven't worked out any patch for those issues. Actually, I only wanted to put this patch forward when stumbling over the other:

skins/native/Kconfig (working copy) renamed from skins/native/Kconfig (revision 564) +0 -0
@@ -127,7 +127,6 @@
 

config XENO_OPT_NATIVE_INTR
bool "Interrupts"
- default y
help

This option provides a simple API to deal with interrupts,

Quoted 9 lines
Quoted 6 lines

Rationale: the /default/ way of handling IRQs should be via RTDM-based drivers. Only users who know what they are doing should leave this path and will have to switch on this feature explicitly. If this view can be commonly accepted, I will add some lines to the feature's help text as well.

Agreed.

Quoted 3 lines

Then apply this one, please. I noticed that 2.4 does not know default values for bool options, correct?

Correct.

Quoted 24 lines

Jan

------------------------------------------------------------------------

Index: ksrc/skins/native/Kconfig
===================================================================

skins/native/Kconfig +3 -3
@@ -128,11 +128,11 @@
 
 config XENO_OPT_NATIVE_INTR
 	bool "Interrupts"
-	default y
 	help
 
 	This option provides a simple API to deal with interrupts,
-	both in kernel and user-space contexts. Registry support is
-	required.
+	both in kernel and user-space contexts. Note that the preferred
+	way of implementing generic drivers usable across all Xenomai
+	interfaces is defined by the Real-Time Driver Model (RTDM).
 
 endif
Signature · 1 line
Philippe.
#4 lore raw
In reply to Jan Kiszka
Quoted 46 lines · Jan Kiszka
Quoted 16 lines · Philippe Gerum
Quoted 14 lines · Jan Kiszka

I haven't worked out any patch for those issues. Actually, I only wanted to put this patch forward when stumbling over the other:

skins/native/Kconfig (working copy) renamed from skins/native/Kconfig (revision 564) +0 -0
@@ -127,7 +127,6 @@
 

config XENO_OPT_NATIVE_INTR
bool "Interrupts"
- default y
help

This option provides a simple API to deal with interrupts,

Quoted 9 lines
Quoted 6 lines

Rationale: the /default/ way of handling IRQs should be via RTDM-based drivers. Only users who know what they are doing should leave this path and will have to switch on this feature explicitly. If this view can be commonly accepted, I will add some lines to the feature's help text as well.

Agreed.

Then apply this one, please. I noticed that 2.4 does not know default values for bool options, correct?

Jan

------------------------------------------------------------------------

Index: ksrc/skins/native/Kconfig
===================================================================

skins/native/Kconfig +0 -1
@@ -128,11 +128,11 @@
 
 config XENO_OPT_NATIVE_INTR
 	bool "Interrupts"
-	default y

skins/native/Kconfig line 138

Quoted 10 lines
skins/native/Kconfig +3 -2
 	help
 
 	This option provides a simple API to deal with interrupts,
-	both in kernel and user-space contexts. Registry support is
-	required.
+	both in kernel and user-space contexts. Note that the preferred
+	way of implementing generic drivers usable across all Xenomai
+	interfaces is defined by the Real-Time Driver Model (RTDM).
 
 endif

Applied, thanks.

Signature · 1 line
Philippe.
#5 lore raw
In reply to Philippe Gerum
Quoted 6 lines · Philippe Gerum
Quoted 3 lines · Jan Kiszka

o CONFIG_XENO_OPT_PERVASIVE: xnheap_init_mapped and xnheap_destroy_mapped become unresolved

Ok, will fix.

This one was in the POSIX skin, and should already be fixed.

Signature · 1 line
					    Gilles Chanteperdrix.
#6 lore raw
Quoted 10 lines · Gilles Chanteperdrix
Quoted 6 lines · Philippe Gerum
Quoted 3 lines · Jan Kiszka

o CONFIG_XENO_OPT_PERVASIVE: xnheap_init_mapped and xnheap_destroy_mapped become unresolved

Ok, will fix.

This one was in the POSIX skin, and should already be fixed.

Ok. Thanks.

Signature · 1 line
Philippe.