[Buildroot] [PATCH] xenomai: move arch restriction to Cobalt core, no restriction for Mercury
Thomas Petazzoni
thomas.petazzoni at bootlin.com
Mon Feb 4 21:00:31 UTC 2019
On Mon, 21 Jan 2019 20:50:04 +0100
Thomas De Schampheleire <patrickdepinguin at gmail.com> wrote:
> From: Thomas De Schampheleire <thomas.de_schampheleire at nokia.com>
>
> Xenomai has two mutually exclusive cores:
> - Cobalt: dual-kernel approach: patched kernel + userland
> - Mercury: only userland
>
> In the Cobalt core, not all architectures are supported. This is the source
> of the existing ARCH_SUPPORTS variable.
>
> In the Mercury core, there is no imposed architecture restriction.
>
> Rename the XENOMAI_ARCH_SUPPORTS flag to XENOMAI_COBALT_ARCH_SUPPORTS and
> move its check from the Xenomai package to the Cobalt core.
>
> Signed-off-by: Thomas De Schampheleire <thomas.de_schampheleire at nokia.com>
> ---
> linux/Config.ext.in | 4 ++--
> package/xenomai/Config.in | 5 ++---
> 2 files changed, 4 insertions(+), 5 deletions(-)
The patch looks good, but it needs more testing. Because it lifts all
the architecture dependencies, one can now try to build Xenomai for
funky architectures/configurations, and it doesn't always work. For
example, building with our br-arm-cortex-m4-full configuration fails
with a pthread_atfork issue.
I think this requires running a test-pkg run to check a couple of
architectures/configurations.
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
More information about the buildroot
mailing list