[Buildroot] [PATCH 3/3] xenomai: enable SMP in configuration options
Arnout Vandecappelle
arnout at mind.be
Tue Mar 21 09:08:34 UTC 2017
On 21-03-17 00:33, sikor6 at gmail.com wrote:
> From: Pawel Sikora <sikor6 at gmail.com>
>
> Add --enable-smp to XENOMAI_CONF_OPTS, so kernel and xenomai
> userpace libs both support it.
This is not good, because xenomai is still used a lot on uniprocessors as well.
Ideally, we'd check linux .config if SMP is enabled or not - but unfortunately
that's not an option since Xenomai userspace can be built without building a kernel.
I think the only option here is to add a Config.in symbol to allow the user to
select SMP.
Unless you can verify that enabling SMP unconditionally is not a problem, i.e.
that it doesn't give overhead (extra latency) on a uniprocessor. But then I
wonder why it would be an option in Xenomai...
Regards,
Arnout
>
> Signed-off-by: Pawel Sikora <sikor6 at gmail.com>
> ---
> package/xenomai/xenomai.mk | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/package/xenomai/xenomai.mk b/package/xenomai/xenomai.mk
> index 28875b944..37ec68526 100644
> --- a/package/xenomai/xenomai.mk
> +++ b/package/xenomai/xenomai.mk
> @@ -21,7 +21,7 @@ XENOMAI_INSTALL_STAGING = YES
> XENOMAI_INSTALL_TARGET_OPTS = DESTDIR=$(TARGET_DIR) install-user
> XENOMAI_INSTALL_STAGING_OPTS = DESTDIR=$(STAGING_DIR) install-user
>
> -XENOMAI_CONF_OPTS += --includedir=/usr/include/xenomai/ --disable-doc-install
> +XENOMAI_CONF_OPTS += --includedir=/usr/include/xenomai/ --disable-doc-install --enable-smp
>
> define XENOMAI_REMOVE_DEVFILES
> for i in xeno-config xeno-info wrap-link.sh ; do \
>
--
Arnout Vandecappelle arnout at mind be
Senior Embedded Software Architect +32-16-286500
Essensium/Mind http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint: 7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
More information about the buildroot
mailing list