Skip to contentSkip to conversation

Enable compat tests

PATCH Applied Florian Bezdeka 2 participants 6 messages Aug 18, 2022 – Sep 5, 2022

v1 of 2 Applied Latest is v2 →

lore
Share & tools
lore
#0 lore raw

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
#1 lore raw

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
index 9a3b12e..fcfc4b4 100644
@@ -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
#2 lore raw

PATCH 2/3 kas: Add option file for enabling compat builds

In reply to Florian Bezdeka

Some 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
new file mode 100644
index 0000000..ac120fa
@@ -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
index fe84883..b874a4a 100644
@@ -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
#3 lore raw

PATCH 3/3 ci: Add compat enabled build and testing for x86

In reply to Florian Bezdeka

Adding 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
index 58398fc..b972063 100644
@@ -43,3 +43,9 @@ next:
   trigger:
     include:
       - local: '/ci/xenomai_next.yml'
+
+next-compat:
+  extends: .parent
+  trigger:
+    include:
+      - local: '/ci/xenomai_next_compat.yml'
\ No newline at end of file
ci/xenomai_next_compat.yml new file +41 -0

41 lines not on this page · raw message

Signature · 1 line
2.37.2
#4 lore raw

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.

---
 .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
index 58398fc..b972063 100644

.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
Applied
#5 lore raw
In reply to Florian Bezdeka
Quoted 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,
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

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