Gilles Chanteperdrix wrote:
> Gilles Chanteperdrix wrote:
>  > How about solving this in Kconfig ?
>  > Index: scripts/Kconfig.frag
>  > ===================================================================
>  > --- scripts/Kconfig.frag   (revision 1388)
>  > +++ scripts/Kconfig.frag   (working copy)
>  > @@ -2,6 +2,7 @@
>  >  menu "Real-time sub-system"
>  >  
>  >  config XENOMAI
>  > +  depends on CONFIG_X86_TSC || !X86 || !CONFIG_INPUT_PCSPKR
>  >    bool "Xenomai"
>  >    default y
>  >          select IPIPE
> 
> Sorry, I meant:
> 
> 
> 
> ------------------------------------------------------------------------
> 
> Index: scripts/Kconfig.frag
> ===================================================================
> --- scripts/Kconfig.frag      (revision 1388)
> +++ scripts/Kconfig.frag      (working copy)
> @@ -2,6 +2,7 @@
>  menu "Real-time sub-system"
>  
>  config XENOMAI
> +     depends on X86_TSC || !X86 || !INPUT_PCSPKR
>       bool "Xenomai"
>       default y
>          select IPIPE

No problem, but only when combining with a

comment "Switch off CONFIG_INPUT_PCSPKR to use Xenomai" (or so)
        depends on !X86_TSC && X86 && INPUT_PCSPKR

Otherwise the user will be left alone here with a non-selectable Xenomai
option...

This actually remind me of my suggestion some months ago to add Kconfig
warnings for CONFIG_CPU_FREQ & friends. Might be a good chance to catch
this all. Is scripts/Kconfig.frag the preferred place to add it?

Jan

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Xenomai-core mailing list
Xenomai-core@gna.org
https://mail.gna.org/listinfo/xenomai-core

Reply via email to