Skip to contentSkip to conversation

Update dependencies, account for Xenomai support changes

PATCH New Jan Kiszka 1 participant 6 messages Dec 19, 2025

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

cover Update dependencies, account for Xenomai support changes

See patches for details.

Jan

Jan Kiszka (5):
Drop ipipe-5.4 kernel
ci: Lift x86 compat tests to 6.1 kernel Account for reduced kernel support for Xenomai 3 head Update Isar revision
Update to kas 5.1

 Kconfig                                       |  18 +--
 ci/compat_jobs.yml                            |  12 +-
 ci/gitlab-ci-base.yml                         |   2 +-
 ci/kernel_5_4.yml                             |  88 ------------
 ci/xenomai_3_2_x.yml                          |   1 -
 ci/xenomai_3_next.yml                         |   2 -
 conf/distro/include/xenomai-version.inc       |   2 +-
 ...tom-support-to-add-linux-libc-dev-pa.patch | 132 ------------------
 ...-building-of-linux-libc-dev-cross-pa.patch |  35 +++++
 ...-missing-Multi-Arch-foreign-to-linux.patch |  45 ------
 kas-container                                 |  42 +++++-
 kas.yaml                                      |   7 +-
 kas/opt/linux-5.4-head.yaml                   |  18 ---
 kas/opt/linux-5.4.yaml                        |  17 ---
 recipes-core/images/demo-image.bb             |   3 +
 recipes-kernel/linux/linux-xenomai-3_5.4.bb   |  23 ---
 .../linux/linux-xenomai-3_latest.bb           |   9 +-
 recipes-kernel/linux/linux-xenomai.inc        |   4 +-
 18 files changed, 95 insertions(+), 365 deletions(-)
 delete mode 100644 ci/kernel_5_4.yml
 delete mode 100644 isar-patches/0001-Revert-linux-custom-support-to-add-linux-libc-dev-pa.patch
 create mode 100644 isar-patches/0001-linux-kernel-Fix-building-of-linux-libc-dev-cross-pa.patch
 delete mode 100644 isar-patches/0002-linux-custom-Add-missing-Multi-Arch-foreign-to-linux.patch
 delete mode 100644 kas/opt/linux-5.4-head.yaml
 delete mode 100644 kas/opt/linux-5.4.yaml
 delete mode 100644 recipes-kernel/linux/linux-xenomai-3_5.4.bb
Signature · 1 line
2.51.0
author
#1 lore raw

PATCH 1/5 Drop ipipe-5.4 kernel

From: Jan Kiszka <[email protected]>

This one is now retired with Linux stable having stopped its maintenance as well.

---
 Kconfig                                       | 10 ---
 ci/kernel_5_4.yml                             | 88 -------------------
 ci/xenomai_3_2_x.yml                          |  1 -
 conf/distro/include/xenomai-version.inc       |  2 +-
 kas/opt/linux-5.4-head.yaml                   | 18 ----
 kas/opt/linux-5.4.yaml                        | 17 ----
 recipes-kernel/linux/linux-xenomai-3_5.4.bb   | 23 -----
 .../linux/linux-xenomai-3_latest.bb           |  9 +-
 8 files changed, 4 insertions(+), 164 deletions(-)
 delete mode 100644 ci/kernel_5_4.yml
 delete mode 100644 kas/opt/linux-5.4-head.yaml
 delete mode 100644 kas/opt/linux-5.4.yaml
 delete mode 100644 recipes-kernel/linux/linux-xenomai-3_5.4.bb
Kconfig +0 -10
index a3e3885..56b1ebe 100644
@@ -153,14 +153,6 @@ config KERNEL_5_10
 	bool "Latest 5.10 Dovetail release"
 	depends on XENOMAI_HEAD || XENOMAI_3_3_HEAD || XENOMAI_3_3 || XENOMAI_3_2_HEAD || XENOMAI_3_2
 
-config KERNEL_5_4_HEAD
-	bool "Head of 5.4 I-pipe branch"
-	depends on !TARGET_RPI4 && (XENOMAI_3_2_HEAD || XENOMAI_3_2 || XENOMAI_3_1_HEAD || XENOMAI_3_1)
-
-config KERNEL_5_4
-	bool "Latest 5.4 I-pipe release"
-	depends on !TARGET_RPI4 && (XENOMAI_3_2_HEAD || XENOMAI_3_2 || XENOMAI_3_1_HEAD || XENOMAI_3_1)
-
 config KERNEL_4_19_HEAD
 	bool "Head of 4.19-cip I-pipe branch"
 	depends on !TARGET_RPI4 && (XENOMAI_3_2_HEAD || XENOMAI_3_2 || XENOMAI_3_1_HEAD || XENOMAI_3_1)
@@ -182,8 +174,6 @@ config KAS_INCLUDE_KERNEL
 	default "kas/opt/linux-5.15.yaml" if KERNEL_5_15
 	default "kas/opt/linux-5.10-head.yaml" if KERNEL_5_10_HEAD
 	default "kas/opt/linux-5.10.yaml" if KERNEL_5_10
-	default "kas/opt/linux-5.4-head.yaml" if KERNEL_5_4_HEAD
-	default "kas/opt/linux-5.4.yaml" if KERNEL_5_4
 	default "kas/opt/linux-4.19-head.yaml" if KERNEL_4_19_HEAD
 	default "kas/opt/linux-4.19.yaml" if KERNEL_4_19
 
ci/kernel_5_4.yml deleted +0 -88

88 lines not on this page · raw message

ci/xenomai_3_2_x.yml +0 -1
index 97f754e..4e8ab0d 100644
@@ -12,7 +12,6 @@
 include:
   - local: '/ci/gitlab-ci-base.yml'
   - local: '/ci/kernel_4_19.yml'
-  - local: '/ci/kernel_5_4.yml'
   - local: '/ci/kernel_5_10.yml'
   - local: '/ci/kernel_5_15.yml'
   - local: '/ci/kernel_6_1.yml'
conf/distro/include/xenomai-version.inc +1 -1
index c64101e..6053e4e 100644
@@ -12,7 +12,7 @@
 XENOMAI_DEFAULT_KERNEL_VERSION = "6.12%"
 
 XENOMAI_3_1_VERSION_LIST = "3.1 3.1% 3.1.% 3.1.5 stable-3.1.x"
-XENOMAI_3_1_KERNEL_VERSION = "5.4%"
+XENOMAI_3_1_KERNEL_VERSION = "4.19%"
 
 XENOMAI_3_2_VERSION_LIST = "3.2 3.2% 3.2.% 3.2.6 stable-3.2.x"
 XENOMAI_3_2_KERNEL_VERSION = "6.1%"
kas/opt/linux-5.4-head.yaml deleted +0 -18
deleted file mode 100644
index e1a20e1..0000000
@@ -1,18 +0,0 @@
-#
-# Xenomai Real-Time System
-#
-# Copyright (c) Siemens AG, 2019
-#
-# Authors:
-#  Quirin Gylstorff <[email protected]>
-#
-# SPDX-License-Identifier: MIT
-#
-
-header:
-  version: 14
-
-local_conf_header:
-  linux-xenomai-version: |
-    PREFERRED_VERSION_linux-xenomai-3 = "9999-%"
-    LATEST_GIT_BRANCH = "5.4"
kas/opt/linux-5.4.yaml deleted +0 -17
deleted file mode 100644
index 4e0ee0a..0000000
@@ -1,17 +0,0 @@
-#
-# Xenomai Real-Time System
-#
-# Copyright (c) Siemens AG, 2021
-#
-# Authors:
-#  Jan Kiszka <[email protected]>
-#
-# SPDX-License-Identifier: MIT
-#
-
-header:
-  version: 14
-
-local_conf_header:
-  linux-xenomai-version: |
-    PREFERRED_VERSION_linux-xenomai-3 = "5.4%"
recipes-kernel/linux/linux-xenomai-3_5.4.bb deleted +0 -23
deleted file mode 100644
index 7a4738d..0000000
@@ -1,23 +0,0 @@
-#
-# Xenomai Real-Time System
-#
-# Copyright (c) Siemens AG, 2021-2025
-#
-# Authors:
-#  Jan Kiszka <[email protected]>
-#
-# SPDX-License-Identifier: MIT
-#
-
-require recipes-kernel/linux/linux-xenomai-3.inc
-
-SRC_URI:append:amd64 = " git://gitlab.com/Xenomai/legacy/ipipe-x86.git;protocol=https;nobranch=1"
-SRCREV:amd64 ?= "ipipe-core-5.4.299-x86-18"
-
-SRC_URI:append:arm64 = " git://gitlab.com/Xenomai/legacy/ipipe-arm64.git;protocol=https;nobranch=1"
-SRCREV:arm64 ?= "ipipe-core-5.4.180-arm64-5"
-
-SRC_URI:append:armhf = " git://gitlab.com/Xenomai/legacy/ipipe-arm.git;protocol=https;nobranch=1"
-SRCREV:armhf ?= "ipipe-core-5.4.231-arm-6"
-
-PV ?= "${@d.getVar('SRCREV').split('-')[2]}+"
recipes-kernel/linux/linux-xenomai-3_latest.bb +3 -6
index 7939583..9c348fe 100644
@@ -33,11 +33,10 @@ python () {
 
 # default: amd64 or i386
 GIT_REPO = "${@ \
-    'git://gitlab.com/Xenomai/legacy/ipipe-x86.git' if is_kernel(d, '4.19') or is_kernel(d, '5.4') \
+    'git://gitlab.com/Xenomai/legacy/ipipe-x86.git' if is_kernel(d, '4.19') \
     else 'git://gitlab.com/xenomai/linux-dovetail.git' }"
 GIT_BRANCH = "${@ \
     'ipipe-x86-4.19.y-cip' if is_kernel(d, '4.19') \
-    else 'ipipe-x86-5.4.y' if is_kernel(d, '5.4') \
     else 'v5.10.y-cip-dovetail-rebase' if is_kernel(d, '5.10') \
     else 'v5.15.y-dovetail-rebase' if is_kernel(d, '5.15') \
     else 'v6.1.y-cip-dovetail-rebase' if is_kernel(d, '6.1') \
@@ -45,11 +44,10 @@ GIT_BRANCH = "${@ \
     else d.getVar('LATEST_KERNEL_BRANCH') }"
 
 GIT_REPO:armhf = "${@ \
-    'git://gitlab.com/Xenomai/legacy/ipipe-arm.git' if is_kernel(d, '4.19') or is_kernel(d, '5.4') \
+    'git://gitlab.com/Xenomai/legacy/ipipe-arm.git' if is_kernel(d, '4.19') \
     else 'git://gitlab.com/xenomai/linux-dovetail.git' }"
 GIT_BRANCH:armhf = "${@ \
     'ipipe/4.19.y-cip' if is_kernel(d, '4.19') \
-    else 'ipipe/5.4.y' if is_kernel(d, '5.4') \
     else 'v5.10.y-cip-dovetail-rebase' if is_kernel(d, '5.10') \
     else 'v5.15.y-dovetail-rebase' if is_kernel(d, '5.15') \
     else 'v6.1.y-cip-dovetail-rebase' if is_kernel(d, '6.1') \
@@ -57,11 +55,10 @@ GIT_BRANCH:armhf = "${@ \
     else d.getVar('LATEST_KERNEL_BRANCH') }"
 
 GIT_REPO:arm64 = "${@ \
-    'git://gitlab.com/Xenomai/legacy/ipipe-arm64.git' if is_kernel(d, '4.19') or is_kernel(d, '5.4') \
+    'git://gitlab.com/Xenomai/legacy/ipipe-arm64.git' if is_kernel(d, '4.19') \
     else 'git://gitlab.com/xenomai/linux-dovetail.git' }"
 GIT_BRANCH:arm64 = "${@ \
     'ipipe/4.19.y-cip' if is_kernel(d, '4.19') \
-    else 'ipipe/5.4.y' if is_kernel(d, '5.4') \
     else 'v5.10.y-cip-dovetail-rebase' if is_kernel(d, '5.10') \
     else 'v5.15.y-dovetail-rebase' if is_kernel(d, '5.15') \
     else 'v6.1.y-cip-dovetail-rebase' if is_kernel(d, '6.1') \
Signature · 1 line
2.51.0
author
#2 lore raw

PATCH 2/5 ci: Lift x86 compat tests to 6.1 kernel

In reply to Jan Kiszka

From: Jan Kiszka <[email protected]>

Kernel 5.15 moves out of scope for Xenomai 3 head, so we need to move forward to the overlap between stable/3.2.x and head.

---
 ci/compat_jobs.yml | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
ci/compat_jobs.yml +6 -6
index ccbb15b..1fad3b3 100644
@@ -9,22 +9,22 @@
 # SPDX-License-Identifier: MIT
 #
 
-build-5.15-compat:x86-64-efi:
+build-6.1-compat:x86-64-efi:
   extends:
     - .build:x86-64-efi
     - .compat-vars
   variables:
-    LINUX_BUILD_OPTION: ":kas/opt/linux-5.15-head.yaml"
-    KERNEL_VERSION: "5.15"
+    LINUX_BUILD_OPTION: ":kas/opt/linux-6.1-head.yaml"
+    KERNEL_VERSION: "6.1"
     CACHE_KERNEL: dovetail
 
-lava-test-5.15-compat:x86-64-efi:
-  needs: [ "build-5.15-compat:x86-64-efi" ]
+lava-test-6.1-compat:x86-64-efi:
+  needs: [ "build-6.1-compat:x86-64-efi" ]
   extends:
     - .lava-test:x86-64-efi
     - .compat-vars
   variables:
-    KERNEL_VERSION: "5.15"
+    KERNEL_VERSION: "6.1"
 
 build-6.12-compat:rpi4:
   extends:
Signature · 1 line
2.51.0
author
#3 lore raw

PATCH 3/5 Account for reduced kernel support for Xenomai 3 head

In reply to Jan Kiszka

From: Jan Kiszka <[email protected]>

Next major Xenomai 3 release will require kernel 6.1 or newer.

---
 Kconfig               | 8 ++++----
 ci/xenomai_3_next.yml | 2 --
 2 files changed, 4 insertions(+), 6 deletions(-)
Kconfig +4 -4
index 56b1ebe..178db97 100644
@@ -139,19 +139,19 @@ config KERNEL_6_1
 
 config KERNEL_5_15_HEAD
 	bool "Head of 5.15 Dovetail branch"
-	depends on XENOMAI_HEAD || XENOMAI_3_3_HEAD || XENOMAI_3_3 || XENOMAI_3_2_HEAD || XENOMAI_3_2
+	depends on XENOMAI_3_3_HEAD || XENOMAI_3_3 || XENOMAI_3_2_HEAD || XENOMAI_3_2
 
 config KERNEL_5_15
 	bool "Latest 5.15 Dovetail release"
-	depends on XENOMAI_HEAD || XENOMAI_3_3_HEAD || XENOMAI_3_3 || XENOMAI_3_2_HEAD || XENOMAI_3_2
+	depends on XENOMAI_3_3_HEAD || XENOMAI_3_3 || XENOMAI_3_2_HEAD || XENOMAI_3_2
 
 config KERNEL_5_10_HEAD
 	bool "Head of 5.10 Dovetail branch"
-	depends on XENOMAI_HEAD || XENOMAI_3_3_HEAD || XENOMAI_3_3 || XENOMAI_3_2_HEAD || XENOMAI_3_2
+	depends on XENOMAI_3_3_HEAD || XENOMAI_3_3 || XENOMAI_3_2_HEAD || XENOMAI_3_2
 
 config KERNEL_5_10
 	bool "Latest 5.10 Dovetail release"
-	depends on XENOMAI_HEAD || XENOMAI_3_3_HEAD || XENOMAI_3_3 || XENOMAI_3_2_HEAD || XENOMAI_3_2
+	depends on XENOMAI_3_3_HEAD || XENOMAI_3_3 || XENOMAI_3_2_HEAD || XENOMAI_3_2
 
 config KERNEL_4_19_HEAD
 	bool "Head of 4.19-cip I-pipe branch"
ci/xenomai_3_next.yml +0 -2
index 15095dd..6559357 100644
@@ -11,8 +11,6 @@
 
 include:
   - local: '/ci/gitlab-ci-base.yml'
-  - local: '/ci/kernel_5_10.yml'
-  - local: '/ci/kernel_5_15.yml'
   - local: '/ci/kernel_6_1.yml'
   - local: '/ci/kernel_6_12.yml'
   - local: '/ci/xenomai_3_next_compat.yml'
Signature · 1 line
2.51.0
author
#4 lore raw

PATCH 4/5 Update Isar revision

In reply to Jan Kiszka

From: Jan Kiszka <[email protected]>

We can now drop our two patches. But we need to add a new one again.

New Isar also comes with a new SBOM generator by default. We are not building images intended for redistribution, and the feature requires extra build time. So, disable it for now.

---
 ...tom-support-to-add-linux-libc-dev-pa.patch | 132 ------------------
 ...-building-of-linux-libc-dev-cross-pa.patch |  35 +++++
 ...-missing-Multi-Arch-foreign-to-linux.patch |  45 ------
 kas.yaml                                      |   7 +-
 recipes-core/images/demo-image.bb             |   3 +
 recipes-kernel/linux/linux-xenomai.inc        |   4 +-
 6 files changed, 42 insertions(+), 184 deletions(-)
 delete mode 100644 isar-patches/0001-Revert-linux-custom-support-to-add-linux-libc-dev-pa.patch
 create mode 100644 isar-patches/0001-linux-kernel-Fix-building-of-linux-libc-dev-cross-pa.patch
 delete mode 100644 isar-patches/0002-linux-custom-Add-missing-Multi-Arch-foreign-to-linux.patch
isar-patches/0001-Revert-linux-custom-support-to-add-linux-libc-dev-pa.patch deleted +0 -132
deleted file mode 100644
index 8bf4bc7..0000000
@@ -1,132 +0,0 @@
-From 76b9022a69ab493e3770432b433ad1aa2363c1eb Mon Sep 17 00:00:00 2001
-From: Jan Kiszka <[email protected]>
-Date: Wed, 10 Sep 2025 17:50:53 +0200
-Subject: [PATCH 1/2] Revert "linux-custom: support to add linux-libc-dev
- package with kernel name"
-
-This reverts commit 6cf35fc33d11f7d3feb0472a40e79dbd3ee3d759.
-
-Besides having multiple implementations flaws, the general approach
-turned out to be incompatible with Debian's dependency management: We
-cannot replace a package A with a package B which only provides A. The
-resolver will continue to prefer package A when it is requested,
-explicitly or implicitly.
-
-If a build enables multiple kernels, it is recommended to ensure at
-recipe-level that only one kernel build enables KERNEL_LIBC_DEV_DEPLOY.
-
-Signed-off-by: Jan Kiszka <[email protected]>
----
- RECIPE-API-CHANGELOG.md                                |  7 +++++++
- doc/custom_kernel.md                                   |  4 ++--
- meta/recipes-kernel/linux/files/debian/control.tmpl    | 10 +++-------
- .../recipes-kernel/linux/files/debian/isar/common.tmpl |  2 +-
- .../linux/files/debian/isar/install.tmpl               |  2 +-
- meta/recipes-kernel/linux/linux-custom.inc             |  2 --
- 6 files changed, 14 insertions(+), 13 deletions(-)
-
-diff --git a/RECIPE-API-CHANGELOG.md b/RECIPE-API-CHANGELOG.md
-index 8468717d..6579f2e9 100644
---- a/RECIPE-API-CHANGELOG.md
-+++ b/RECIPE-API-CHANGELOG.md
-@@ -727,3 +727,10 @@ Changes in next
- 
- This was never documented and never had practical relevance. `oci-archive` is
- the useful OCI image format that can be imported, e.g., by podman.
-+
-+### Revert enabling of linux-libc-dev package with KERNEL_NAME
-+
-+The change "Enable linux-libc-dev package with KERNEL_NAME" turned out to be
-+incompatible with how Debian selects dependencies. It is therefore necessary
-+to only enable `KERNEL_LIBC_DEV_DEPLOY` for a single kernel in case multiples
-+are configured via `KERNEL_NAMES`.
-diff --git a/doc/custom_kernel.md b/doc/custom_kernel.md
-index 2dca577c..ce5f1bf7 100644
---- a/doc/custom_kernel.md
-+++ b/doc/custom_kernel.md
-@@ -51,9 +51,9 @@ The linux-custom recipe provides support for:
- 
-     Only the `host` specific package is built automatically at cross builds.
- 
-- 10. Produce a `linux-libc-dev-${KERNEL_NAME}` package to support user-land builds
-+ 10. Produce a `linux-libc-dev` package to support user-land builds
- 
-- 11. Only build/ship the `linux-libc-dev-${KERNEL_NAME}` package if instructed to
-+ 11. Only build/ship the `linux-libc-dev` package if instructed to
-      (`KERNEL_LIBC_DEV_DEPLOY` equals to `"1"`)
- 
-  12. Support both native and cross compiles (`ISAR_CROSS_COMPILE`)
-diff --git a/meta/recipes-kernel/linux/files/debian/control.tmpl b/meta/recipes-kernel/linux/files/debian/control.tmpl
-index a79b86c4..ec0da1ab 100644
---- a/meta/recipes-kernel/linux/files/debian/control.tmpl
-+++ b/meta/recipes-kernel/linux/files/debian/control.tmpl
-@@ -22,23 +22,19 @@ Description: ${KERNEL_NAME_PROVIDED} Linux kernel headers for @KR@
-  .
-  This is useful for people who need to build external modules
- 
--Package: linux-libc-dev-${KERNEL_NAME_PROVIDED}
-+Package: linux-libc-dev
- Build-Profiles: <!nolibcdev kernel>
- Section: devel
--Conflicts: linux-libc-dev
--Provides: linux-libc-dev
--Replaces: linux-libc-dev
-+Provides: linux-kernel-headers
- Architecture: ${KERNEL_LIBC_DEV_ARCH}
- Description: Linux support headers for userspace development
-  This package provides userspaces headers from the Linux kernel. These headers
-  are used by the installed headers for GNU glibc and other system libraries.
- 
--Package: linux-libc-dev-${DISTRO_ARCH}-cross-${KERNEL_NAME_PROVIDED}
-+Package: linux-libc-dev-${DISTRO_ARCH}-cross
- Build-Profiles: <!nolibcdev cross !kbuild>
- Section: devel
--Conflicts: linux-kernel-headers-${DISTRO_ARCH}-cross
- Provides: linux-kernel-headers-${DISTRO_ARCH}-cross
--Replaces: linux-kernel-headers-${DISTRO_ARCH}-cross
- Architecture: all
- Description: Linux Kernel Headers for development (for cross-compiling)
-  This package provides headers from the Linux kernel.  These headers
-diff --git a/meta/recipes-kernel/linux/files/debian/isar/common.tmpl b/meta/recipes-kernel/linux/files/debian/isar/common.tmpl
-index b004214f..f9cc2f02 100644
---- a/meta/recipes-kernel/linux/files/debian/isar/common.tmpl
-+++ b/meta/recipes-kernel/linux/files/debian/isar/common.tmpl
-@@ -8,7 +8,7 @@ set -e
- ARCH=${KERNEL_ARCH}
- KERNEL_PKG_IMAGE=linux-image-${KERNEL_NAME_PROVIDED}
- KERNEL_PKG_KERN_HEADERS=linux-headers-${KERNEL_NAME_PROVIDED}
--KERNEL_PKG_LIBC_HEADERS=linux-libc-dev-${KERNEL_NAME_PROVIDED}
-+KERNEL_PKG_LIBC_HEADERS=linux-libc-dev
- KERNEL_PKG_LIBC_HEADERS_CROSS=linux-libc-dev-${DISTRO_ARCH}-cross
- KERNEL_PKG_KERN_KBUILD=linux-kbuild-${KERNEL_NAME_PROVIDED}
- KERNEL_PKG_KERN_KBUILD_CROSS=${KERNEL_PKG_KERN_KBUILD}-${DISTRO_ARCH}-cross
-diff --git a/meta/recipes-kernel/linux/files/debian/isar/install.tmpl b/meta/recipes-kernel/linux/files/debian/isar/install.tmpl
-index d7e711ef..fe0bd810 100644
---- a/meta/recipes-kernel/linux/files/debian/isar/install.tmpl
-+++ b/meta/recipes-kernel/linux/files/debian/isar/install.tmpl
-@@ -240,7 +240,7 @@ install_headers() {
-     if dpkg --compare-versions "${krel}" "lt" "5.4.24"; then
-         headers_check
-     fi
--    [ -z ${kern_pkgs["linux-libc-dev-${KERNEL_NAME_PROVIDED}"]} ] || libc_headers
-+    [ -z ${kern_pkgs["linux-libc-dev"]} ] || libc_headers
-     kernel_headers
- }
- 
-diff --git a/meta/recipes-kernel/linux/linux-custom.inc b/meta/recipes-kernel/linux/linux-custom.inc
-index 01e9bff7..07e49ce7 100644
---- a/meta/recipes-kernel/linux/linux-custom.inc
-+++ b/meta/recipes-kernel/linux/linux-custom.inc
-@@ -155,9 +155,7 @@ RECIPE_PROVIDES = " \
-     linux-image-${KERNEL_NAME_PROVIDED} \
-     linux-headers-${KERNEL_NAME_PROVIDED} \
-     linux-libc-dev \
--    linux-libc-dev-${KERNEL_NAME_PROVIDED} \
-     linux-libc-dev-${DISTRO_ARCH}-cross \
--    linux-libc-dev-${DISTRO_ARCH}-cross-${KERNEL_NAME_PROVIDED} \
-     linux-image-${KERNEL_NAME_PROVIDED}-dbg \
-     linux-kbuild-${KERNEL_NAME_PROVIDED} \
-     ${BPN}-pseudo-native \
--- 
-2.51.0
-
isar-patches/0001-linux-kernel-Fix-building-of-linux-libc-dev-cross-pa.patch new file +35 -0
new file mode 100644
index 0000000..e1d6f76
@@ -0,0 +1,35 @@
+From 4e46a398718df47e7efa0256c1ac62d1262ee47c Mon Sep 17 00:00:00 2001
+From: Jan Kiszka <[email protected]>
+Date: Thu, 18 Dec 2025 16:43:07 +0100
+Subject: [PATCH 1/3] linux-kernel: Fix building of linux-libc-dev-*-cross
+ packages
+
+The cross variant of linux-libc-dev is always built along with the
+kernel, just like the native variant. Ensure this by additionally
+enabling pkg.${BPN}.cross when :cross-profile is active.
+
+Fixes: afba99fe6aeb ("linux-custom: fix name collision on cross profile")
+Signed-off-by: Jan Kiszka <[email protected]>
+---
+ meta/classes-recipe/linux-kernel.bbclass | 5 +++--
+ 1 file changed, 3 insertions(+), 2 deletions(-)
+
+diff --git a/meta/classes-recipe/linux-kernel.bbclass b/meta/classes-recipe/linux-kernel.bbclass
+index 8f38a617..e129527e 100644
+--- a/meta/classes-recipe/linux-kernel.bbclass
++++ b/meta/classes-recipe/linux-kernel.bbclass
+@@ -125,8 +125,9 @@ BUILD_PROFILES = "pkg.${BPN}.kernel pkg.${BPN}.kbuild"
+ BBCLASSEXTEND:append:cross-profile = " kbuildtarget"
+ 
+ # When cross-profile is active:
+-# build only kernel (including config) with the default variant of the recipe
+-BUILD_PROFILES:cross-profile = "pkg.${BPN}.kernel"
++# Build kernel (including config) cross packages (linux-libc-dev-*-cross)
++# with the default variant of the recipe
++BUILD_PROFILES:cross-profile = "pkg.${BPN}.kernel pkg.${BPN}.cross"
+ 
+ # -native: kbuild package for host
+ BUILD_PROFILES:class-native = "pkg.${BPN}.kbuild"
+-- 
+2.51.0
+
isar-patches/0002-linux-custom-Add-missing-Multi-Arch-foreign-to-linux.patch deleted +0 -45

45 lines not on this page · raw message

kas.yaml +2 -5
index 5d66228..7aa5a83 100644
@@ -22,15 +22,12 @@ repos:
 
   isar:
     url: https://github.com/ilbers/isar.git
-    commit: 48a7eb4e0e9846e7e5bb44e52730d0bf59549a67
+    commit: d887bcef5084660a03776bd13028dd3fb58ce569
     layers:
       meta:
     patches:
       p1:
-        path: isar-patches/0001-Revert-linux-custom-support-to-add-linux-libc-dev-pa.patch
-        repo: xenomai
-      p2:
-        path: isar-patches/0002-linux-custom-Add-missing-Multi-Arch-foreign-to-linux.patch
+        path: isar-patches/0001-linux-kernel-Fix-building-of-linux-libc-dev-cross-pa.patch
         repo: xenomai
 
 bblayers_conf_header:
recipes-core/images/demo-image.bb +3 -0
index fbc4ed4..d0a1f42 100644
@@ -51,3 +51,6 @@ IMAGE_INSTALL:append:xenomai3 = " ${@get_package_names(d)}"
 IMAGE_INSTALL:append:xenomai4 = " libevl"
 
 IMAGE_INSTALL += "customizations sshd-regen-keys expand-on-first-boot"
+
+# just a demo/test image, no need for an SBOM (which takes some extra time)
+ROOTFS_FEATURES:remove = "generate-sbom"
recipes-kernel/linux/linux-xenomai.inc +2 -2
index 8c7df40..0980662 100644
@@ -1,7 +1,7 @@
 #
 # Xenomai Real-Time System
 #
-# Copyright (c) Siemens AG, 2018-2023
+# Copyright (c) Siemens AG, 2018-2025
 #
 # Authors:
 #  Jan Kiszka <[email protected]>
@@ -9,7 +9,7 @@
 # SPDX-License-Identifier: MIT
 #
 
-require recipes-kernel/linux/linux-custom.inc
+inherit linux-kernel
 inherit print-revision
 
 FILESPATH =. "${LAYERDIR_xenomai}/recipes-kernel/linux/files:"
Signature · 1 line
2.51.0
author
#5 lore raw

PATCH 5/5 Update to kas 5.1

In reply to Jan Kiszka

From: Jan Kiszka <[email protected]>

Housekeeping. Due to issues in the current trixie schroot, we need to stay on the bookworm container, though.

---
 ci/gitlab-ci-base.yml |  2 +-
 kas-container         | 42 ++++++++++++++++++++++++++++++++++++++----
 2 files changed, 39 insertions(+), 5 deletions(-)
ci/gitlab-ci-base.yml +1 -1
index 31c9414..bffc80c 100644
@@ -30,7 +30,7 @@ variables:
   SSTATE_MAX_AGE: 14d
 
 default:
-  image: ghcr.io/siemens/kas/kas-isar:4.8.2
+  image: ghcr.io/siemens/kas/kas-isar:5.1-debian-bookworm
 
 .sstate-prepare:
   script:
kas-container +38 -4

102 lines not on this page · raw message

Signature · 1 line
2.51.0