Enable compat tests
cover Enable compat tests
Hi all,
this series adds the build and test jobs for compat testing on x86.
I was trying to enable compat builds for the arm64 architecutre as well but failed. The early Xenomai init code fails to detect the cobalt core. Would be nice if someone could tell me if that should work and we have bug / problem here or if that was never supported.
To get the tests green the previously submitted series targeting the Xenomai project itself has to be applied.
With both series applied
https://gitlab.com/Xenomai/xenomai-hacker-space/-/issues/21 should be resolved now.
Best regards,
Florian
Florian Bezdeka (3):
linux-xenomai: Update kernel from 5.15.9 to 5.15.57
kas: Add option file for enabling compat builds
ci: Add compat enabled build and testing for x86
.gitlab-ci.yml | 6 ++++ ci/xenomai_next_compat.yml | 41 ++++++++++++++++++++++ opt-compat.yml | 17 +++++++++ recipes-kernel/linux/linux-xenomai_5.15.bb | 4 +-- recipes-xenomai/xenomai/xenomai.inc | 2 ++ 5 files changed, 68 insertions(+), 2 deletions(-) create mode 100644 ci/xenomai_next_compat.yml create mode 100644 opt-compat.yml
Signature · 1 line
2.37.2
PATCH 1/3 linux-xenomai: Update kernel from 5.15.9 to 5.15.57
This fixes a test failure (x86io smokey test) on kernel 5.15.
The necessary dovetail fixes are available since 5.15.32-dovetail2, so updating to the last available version 5.15.57-dovetail1 fixes the test.
--- recipes-kernel/linux/linux-xenomai_5.15.bb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
recipes-kernel/linux/linux-xenomai_5.15.bb +2 -2
@@ -12,7 +12,7 @@ require recipes-kernel/linux/linux-xenomai.inc SRC_URI += "git://source.denx.de/xenomai/linux-dovetail.git;protocol=https;nobranch=1" -SRCREV = "v5.15.9-dovetail1" -PV = "5.15.9+" +SRCREV = "v5.15.57-dovetail1" +PV = "5.15.57+" S = "${WORKDIR}/git"
Signature · 1 line
2.37.2
PATCH 2/3 kas: Add option file for enabling compat builds
In reply to Florian BezdekaSome architectures support running 32-bit legacy applications on 64-bit kernels. Xenomai supports the amd64 architectures so far.
When this kas option file is selected the userspace components will be build for the compat architecture instead of the distro architecture.
--- opt-compat.yml | 17 +++++++++++++++++ recipes-xenomai/xenomai/xenomai.inc | 2 ++ 2 files changed, 19 insertions(+) create mode 100644 opt-compat.yml
opt-compat.yml new file +17 -0
@@ -0,0 +1,17 @@ +# +# Xenomai Real-Time System +# +# Copyright (c) Siemens AG, 2022 +# +# Authors: +# Florian Bezdeka <[email protected]> +# +# SPDX-License-Identifier: MIT +# + +header: + version: 10 + +local_conf_header: + compat: | + ISAR_ENABLE_COMPAT_ARCH = "1"
recipes-xenomai/xenomai/xenomai.inc +2 -0
@@ -13,6 +13,8 @@ inherit dpkg PROVIDES += "xenomai-kernel-source xenomai-runtime xenomai-runtime-dbgsym libxenomai1 libxenomai-dev libxenomai1-dbgsym" +PACKAGE_ARCH_compat-arch = "${COMPAT_DISTRO_ARCH}" + # use bitbake get_srcrev to get the current commit id def get_commit(d): try:
Signature · 1 line
2.37.2
PATCH 3/3 ci: Add compat enabled build and testing for x86
In reply to Florian BezdekaAdding compat enabled build and tests for the x86 architecture to the CI infrastructure.
--- .gitlab-ci.yml | 6 ++++++ ci/xenomai_next_compat.yml | 41 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 ci/xenomai_next_compat.yml
.gitlab-ci.yml +6 -0
@@ -43,3 +43,9 @@ next: trigger: include: - local: '/ci/xenomai_next.yml' + +next-compat: + extends: .parent + trigger: + include: + - local: '/ci/xenomai_next_compat.yml'
ci/xenomai_next_compat.yml new file +41 -0
41 lines not on this page · raw message
Signature · 1 line
2.37.2
Re: [xenomai-images] [PATCH 3/3] ci: Add compat enabled build and testing for x86
Quoted 15 lines · Florian Bezdeka
Adding compat enabled build and tests for the x86 architecture to the CI infrastructure.
Signed-off-by Florian Bezdeka <[email protected]>--- .gitlab-ci.yml | 6 ++++++ ci/xenomai_next_compat.yml | 41 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 ci/xenomai_next_compat.yml.gitlab-ci.yml +0
-0
.gitlab-ci.yml next: · line 51
Quoted 9 lines
.gitlab-ci.yml +6
-0@@ -43,3 +43,9 @@ next: trigger: include: - local: '/ci/xenomai_next.yml' + +next-compat: + extends: .parent + trigger: + include: + - local: '/ci/xenomai_next_compat.yml'
Reverting this again (not only because of pending fixes for Xenomai next): Can we fold the new tests into the existing 'next' stage please?
Jan
Signature · 2 lines
Siemens AG, Technology Competence Center Embedded Linux
Jan Kiszka
AppliedQuoted 25 lines · Florian Bezdeka
Hi all,
this series adds the build and test jobs for compat testing on x86.
I was trying to enable compat builds for the arm64 architecutre as well but failed. The early Xenomai init code fails to detect the cobalt core. Would be nice if someone could tell me if that should work and we have bug / problem here or if that was never supported.
To get the tests green the previously submitted series targeting the Xenomai project itself has to be applied.
With both series applied
https://gitlab.com/Xenomai/xenomai-hacker-space/-/issues/21 should be resolved now.Best regards,
FlorianFlorian Bezdeka (3):
linux-xenomai: Update kernel from 5.15.9 to 5.15.57
kas: Add option file for enabling compat builds
ci: Add compat enabled build and testing for x86
Quoted 9 lines
.gitlab-ci.yml | 6 ++++ ci/xenomai_next_compat.yml | 41 ++++++++++++++++++++++ opt-compat.yml | 17 +++++++++ recipes-kernel/linux/linux-xenomai_5.15.bb | 4 +-- recipes-xenomai/xenomai/xenomai.inc | 2 ++ 5 files changed, 68 insertions(+), 2 deletions(-) create mode 100644 ci/xenomai_next_compat.yml create mode 100644 opt-compat.yml
Thanks, applied.
But could you also update Kconfig in a follow-up patch?
Jan
Signature · 2 lines
Siemens AG, Technology Competence Center Embedded Linux