All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] xenomai: Add config for enabling SMP for 3.x
@ 2017-04-06 23:46 Pawel Sikora
  2017-04-07 11:22 ` Arnout Vandecappelle
  2017-04-10  0:17 ` [Buildroot] [PATCH v2] xenomai: Add config for enabling/disabling SMP Pawel Sikora
  0 siblings, 2 replies; 9+ messages in thread
From: Pawel Sikora @ 2017-04-06 23:46 UTC (permalink / raw)
  To: buildroot

Add a config option for enabling SMP in Xenomai
userspace, only for versions >= 3.x

In 2.x versions this option was enabled by
default, so for now behaviour for it will
not change, while as buildroot supports
now Xenomai 3.0.3 it's good to let users
have this option.

Add a comment about this config's behaviour
above this option in the menuconfig.

Signed-off-by: Pawel Sikora <sikor6@gmail.com>
---
 package/xenomai/Config.in  | 12 ++++++++++++
 package/xenomai/xenomai.mk |  4 ++++
 2 files changed, 16 insertions(+)

diff --git a/package/xenomai/Config.in b/package/xenomai/Config.in
index b548ee810..cd323545c 100644
--- a/package/xenomai/Config.in
+++ b/package/xenomai/Config.in
@@ -51,6 +51,18 @@ config BR2_PACKAGE_XENOMAI_VERSION
 	  BR2_LINUX_KERNEL_EXT_XENOMAI_ADEOS_PATCH, in the Linux
 	  Kernel -> Linux Kernel Extensions menu.
 
+comment "-------------------------------------------------------"
+comment "Please note:                                           "
+comment "Option for enabling SMP in Xenomai userspace is meant  "
+comment "only for Xenomai 3.x                                   "
+comment "If you use Xenomai 2.x you have SMP enabled by default."
+comment "-------------------------------------------------------"
+
+config BR2_PACKAGE_XENOMAI_ENABLE_SMP
+	bool "Enable SMP"
+	help
+	  This option allows to enable SMP in Xenomai userspace.
+
 config BR2_PACKAGE_XENOMAI_TESTSUITE
 	bool "Install testsuite"
 	help
diff --git a/package/xenomai/xenomai.mk b/package/xenomai/xenomai.mk
index c9e810e05..7af4e0cf5 100644
--- a/package/xenomai/xenomai.mk
+++ b/package/xenomai/xenomai.mk
@@ -23,6 +23,10 @@ XENOMAI_INSTALL_STAGING_OPTS = DESTDIR=$(STAGING_DIR) install-user
 
 XENOMAI_CONF_OPTS += --includedir=/usr/include/xenomai/ --disable-doc-install
 
+ifeq ($(BR2_PACKAGE_XENOMAI_ENABLE_SMP),y)
+XENOMAI_CONF_OPTS += --enable-smp
+endif
+
 define XENOMAI_REMOVE_DEVFILES
 	for i in xeno-config xeno-info wrap-link.sh ; do \
 		rm -f $(TARGET_DIR)/usr/bin/$$i ; \
-- 
2.12.1

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

end of thread, other threads:[~2017-04-10 13:42 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-06 23:46 [Buildroot] [PATCH 1/1] xenomai: Add config for enabling SMP for 3.x Pawel Sikora
2017-04-07 11:22 ` Arnout Vandecappelle
2017-04-09 23:07   ` Pawel Sikora
2017-04-10  9:10     ` Arnout Vandecappelle
2017-04-10  0:17 ` [Buildroot] [PATCH v2] xenomai: Add config for enabling/disabling SMP Pawel Sikora
2017-04-10 11:56   ` Arnout Vandecappelle
2017-04-10 12:46     ` Pawel Sikora
2017-04-10 12:44   ` [Buildroot] [PATCH v3] " Pawel Sikora
2017-04-10 13:42     ` Arnout Vandecappelle

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.