From: Gilles Chanteperdrix MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="1F5IC5qvf0" Content-Transfer-Encoding: 7bit Message-ID: <17461.19934.435991.242022@domain.hid> Date: Thu, 6 Apr 2006 19:20:30 +0200 Subject: [Xenomai-core] Preventing kernel misconfiguration. List-Id: "Xenomai life and development \(bug reports, patches, discussions\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: xenomai@xenomai.org --1F5IC5qvf0 Content-Type: text/plain; charset=us-ascii Content-Description: message body and .signature Content-Transfer-Encoding: 7bit Here is a patch that "selects" the I-pipe option when Xenomai is enabled, it should help preventing kernel misconfigurations. -- Gilles Chanteperdrix. --1F5IC5qvf0 Content-Type: text/plain Content-Disposition: inline; filename="Kconfig.patch" Content-Transfer-Encoding: 7bit Index: scripts/Kconfig.frag =================================================================== --- scripts/Kconfig.frag (revision 895) +++ scripts/Kconfig.frag (working copy) @@ -4,7 +4,14 @@ config XENOMAI bool "Xenomai" default y + select IPIPE + help + Xenomai is a real-time extension to the Linux kernel. Note + that Xenomai relies on Adeos interrupt pipeline (CONFIG_IPIPE + option) to be enabled, so enabling this option selects the + CONFIG_IPIPE option. + source "arch/@LINUX_ARCH@/xenomai/Kconfig" endmenu Index: ksrc/arch/powerpc/Config.in =================================================================== --- ksrc/arch/powerpc/Config.in (revision 895) +++ ksrc/arch/powerpc/Config.in (working copy) @@ -1,15 +1,19 @@ mainmenu_option next_comment comment 'Real-time sub-system' -bool 'Xenomai' CONFIG_XENOMAI +if [ "$CONFIG_IPIPE" = "n" ]; then + comment "Xenomai depends on Adeos interrupt pipeline" +else + bool 'Xenomai' CONFIG_XENOMAI -source kernel/xenomai/Config.in + source kernel/xenomai/Config.in -if [ "$CONFIG_XENOMAI" = "y" -a "$CONFIG_XENO_OPT_NUCLEUS" != "n" ]; then + if [ "$CONFIG_XENOMAI" = "y" -a "$CONFIG_XENO_OPT_NUCLEUS" != "n" ]; then mainmenu_option next_comment comment 'Machine' bool 'Enable FPU support' CONFIG_XENO_HW_FPU endmenu + fi fi endmenu Index: ksrc/arch/i386/Config.in =================================================================== --- ksrc/arch/i386/Config.in (revision 895) +++ ksrc/arch/i386/Config.in (working copy) @@ -1,11 +1,14 @@ mainmenu_option next_comment comment 'Real-time sub-system' -bool 'Xenomai' CONFIG_XENOMAI +if [ "$CONFIG_IPIPE" = "n" ]; then + comment "Xenomai depends on Adeos interrupt pipeline" +else + bool 'Xenomai' CONFIG_XENOMAI -source kernel/xenomai/Config.in + source kernel/xenomai/Config.in -if [ "$CONFIG_XENOMAI" = "y" -a "$CONFIG_XENO_OPT_NUCLEUS" != "n" ]; then + if [ "$CONFIG_XENOMAI" = "y" -a "$CONFIG_XENO_OPT_NUCLEUS" != "n" ]; then mainmenu_option next_comment comment 'Machine' @@ -42,6 +45,7 @@ fi endmenu endmenu + fi fi endmenu --1F5IC5qvf0--