Skip to contentSkip to conversation

Various houskeeping changes

PATCH New Jan Kiszka 1 participant 7 messages Oct 28, 2024

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

cover Various houskeeping changes

See patches for details.

Jan

Jan Kiszka (6):
layer.conf: Fix sstate cachability issue
Update to kas 4.5
Update isar revision
xenomai: Pull common definition of S into shared include
xenomai: Update stable releases
Add Xenomai 3.3 support

 Kconfig                                       | 25 +++++++++++--------
 ci/gitlab-ci-base.yml                         |  2 +-
 conf/distro/include/xenomai-version.inc       |  8 +++---
 conf/distro/xenomai-demo.conf                 |  4 +--
 conf/layer.conf                               |  3 ++-
 kas-container                                 | 25 +++++++++++++------
 kas.yml                                       |  4 +--
 recipes-xenomai/xenomai/xenomai.inc           |  2 ++
 .../{xenomai_3.0.14.bb => xenomai_3.0.15.bb}  |  1 -
 .../{xenomai_3.1.4.bb => xenomai_3.1.5.bb}    |  2 --
 .../{xenomai_3.2.4.bb => xenomai_3.2.6.bb}    |  2 --
 .../{xenomai_3.1.4.bb => xenomai_3.3.bb}      |  6 ++---
 recipes-xenomai/xenomai/xenomai_master.bb     |  2 --
 .../xenomai/xenomai_stable-3.0.x.bb           |  2 --
 14 files changed, 47 insertions(+), 41 deletions(-)
 rename recipes-xenomai/xenomai/{xenomai_3.0.14.bb => xenomai_3.0.15.bb} (94%)
 copy recipes-xenomai/xenomai/{xenomai_3.1.4.bb => xenomai_3.1.5.bb} (94%)
 rename recipes-xenomai/xenomai/{xenomai_3.2.4.bb => xenomai_3.2.6.bb} (94%)
 rename recipes-xenomai/xenomai/{xenomai_3.1.4.bb => xenomai_3.3.bb} (77%)
Signature · 1 line
2.43.0
author
#1 lore raw

PATCH 1/6 layer.conf: Fix sstate cachability issue

From: Jan Kiszka <[email protected]>

LAYERDIR_xenomai is consumed by ISAR_RELEASE_CMD, and that introduces the build path to the sstate cache. "isar-sstate lint" warns about that:

==== issues found in armhf:demo-image:rootfs_postprocess (04880b1a) ====
-> path in build-dir: LAYERDIR_xenomai = "/builds/Xenomai/xenomai-images/build/.."

Resolve the issue by setting a vardepvalue for it.

---
 conf/layer.conf | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
conf/layer.conf +2 -1
index f665993..c96b6fd 100644
@@ -1,7 +1,7 @@
 #
 # Xenomai Real-Time System
 #
-# Copyright (c) Siemens AG, 2018
+# Copyright (c) Siemens AG, 2018-2024
 #
 # Authors:
 #  Jan Kiszka <[email protected]>
@@ -21,3 +21,4 @@ BBFILE_PRIORITY_xenomai = "6"
 LAYERSERIES_COMPAT_xenomai = "next"
 
 LAYERDIR_xenomai = "${LAYERDIR}"
+LAYERDIR_xenomai[vardepvalue] = "xenomai"
Signature · 1 line
2.43.0
author
#2 lore raw

PATCH 2/6 Update to kas 4.5

In reply to Jan Kiszka

From: Jan Kiszka <[email protected]>

Just housekeeping.

---
 ci/gitlab-ci-base.yml |  2 +-
 kas-container         | 25 ++++++++++++++++++-------
 2 files changed, 19 insertions(+), 8 deletions(-)
ci/gitlab-ci-base.yml +1 -1
index ea66b06..a40dbcb 100644
@@ -30,7 +30,7 @@ variables:
   SSTATE_MAX_AGE: 14d
 
 default:
-  image: ghcr.io/siemens/kas/kas-isar:4.4
+  image: ghcr.io/siemens/kas/kas-isar:4.5
 
 .sstate-prepare:
   script:
kas-container +18 -7
index 169ea1b..6b2131c 100755
@@ -27,7 +27,7 @@
 
 set -e
 
-KAS_IMAGE_VERSION_DEFAULT="4.4"
+KAS_IMAGE_VERSION_DEFAULT="4.5"
 KAS_CONTAINER_IMAGE_PATH_DEFAULT="ghcr.io/siemens/kas"
 KAS_CONTAINER_IMAGE_NAME_DEFAULT="kas"
 KAS_CONTAINER_SELF_NAME="$(basename "$0")"
@@ -354,10 +354,21 @@ while [ $# -gt 0 ] && [ $KAS_EXTRA_BITBAKE_ARGS -eq 0 ]; do
 		shift 1
 		;;
 	*)
+		ARG="$1"
+		shift 1
+		if [ "$KAS_CMD" = "for-all-repos" ]; then
+			if [ $# -gt 0 ]; then
+				KAS_REPO_CMD="$1"
+				shift 1
+			else
+				KAS_REPO_CMD="$ARG"
+				unset ARG
+			fi
+		fi
 		KAS_FILES=
 		# SC2086: Double quote to prevent globbing and word splitting.
 		# shellcheck disable=2086
-		for FILE in $(IFS=':'; echo $1); do
+		for FILE in $(IFS=':'; echo $ARG); do
 			if ! KAS_REAL_FILE="$(realpath -qe "$FILE")"; then
 				fatal_error "configuration file '${FILE}' not found"
 			fi
@@ -368,11 +379,6 @@ while [ $# -gt 0 ] && [ $KAS_EXTRA_BITBAKE_ARGS -eq 0 ]; do
 				KAS_FILES="${KAS_FILES}:${KAS_REAL_FILE}"
 			fi
 		done
-		shift 1
-		if [ "$KAS_CMD" = "for-all-repos" ]; then
-			KAS_REPO_CMD="$1"
-			shift 1
-		fi
 		;;
 	esac
 done
@@ -512,6 +518,11 @@ if [ -f "${GITCONFIG_FILE}" ]; then
 		-e GITCONFIG_FILE="/var/kas/userdata/.gitconfig"
 fi
 
+if [ -f "${REGISTRY_AUTH_FILE}" ]; then
+	set -- "$@" -v "$(readlink -fv "${REGISTRY_AUTH_FILE}")":/var/kas/userdata/.docker/config.json:ro \
+		-e REGISTRY_AUTH_FILE="/var/kas/userdata/.docker/config.json"
+fi
+
 if [ -t 1 ]; then
 	set -- "$@" -t -i
 fi
Signature · 1 line
2.43.0
author
#3 lore raw

PATCH 3/6 Update isar revision

In reply to Jan Kiszka

From: Jan Kiszka <[email protected]>

Resolves some false-positive variable export warnings in CI, otherwise just housekeeping.

---
 kas.yml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
kas.yml +2 -2
index c0cce41..d2554d3 100644
@@ -1,7 +1,7 @@
 #
 # Xenomai Real-Time System
 #
-# Copyright (c) Siemens AG, 2018-2023
+# Copyright (c) Siemens AG, 2018-2024
 #
 # Authors:
 #  Jan Kiszka <[email protected]>
@@ -22,7 +22,7 @@ repos:
 
   isar:
     url: https://github.com/ilbers/isar.git
-    commit: 1372f428223aea046e8efaa04202093d0d73c52e
+    commit: 2480baaa18b097c39d6e68b2ac7d6fabd6ff8ab9
     layers:
       meta:
 
Signature · 1 line
2.43.0
author
#4 lore raw

PATCH 4/6 xenomai: Pull common definition of S into shared include

In reply to Jan Kiszka

From: Jan Kiszka <[email protected]>

---
 recipes-xenomai/xenomai/xenomai.inc             | 2 ++
 recipes-xenomai/xenomai/xenomai_3.0.14.bb       | 1 -
 recipes-xenomai/xenomai/xenomai_3.1.4.bb        | 2 --
 recipes-xenomai/xenomai/xenomai_3.2.4.bb        | 2 --
 recipes-xenomai/xenomai/xenomai_master.bb       | 2 --
 recipes-xenomai/xenomai/xenomai_stable-3.0.x.bb | 2 --
 6 files changed, 2 insertions(+), 9 deletions(-)
recipes-xenomai/xenomai/xenomai.inc +2 -0
index efb92ad..6366b6f 100644
@@ -21,6 +21,8 @@ PROVIDES += "libxenomai1"
 PROVIDES += "libxenomai-dev"
 PROVIDES += "libxenomai1-dbgsym"
 
+S = "${WORKDIR}/git"
+
 do_prepare_build() {
     # Xenomai currently does not maintain its changelog, plus we want the
     # actual package version in there.
recipes-xenomai/xenomai/xenomai_3.0.14.bb +0 -1
index afc1920..2c0debd 100644
@@ -16,4 +16,3 @@ require xenomai.inc
 SRC_URI = " \
     git://github.com/xenomai-ci/xenomai.git;protocol=https;branch=stable/v3.0.x;tag=v${PV} \
     "
-S = "${WORKDIR}/git"
recipes-xenomai/xenomai/xenomai_3.1.4.bb +0 -2
index e501e41..8cfe184 100644
@@ -15,5 +15,3 @@ require xenomai.inc
 
 SRC_URI = " \
     git://github.com/xenomai-ci/xenomai.git;protocol=https;branch=stable/v3.1.x;tag=v${PV}"
-
-S = "${WORKDIR}/git"
recipes-xenomai/xenomai/xenomai_3.2.4.bb +0 -2
index 0cd1cd9..0bd7007 100644
@@ -15,5 +15,3 @@ require xenomai.inc
 
 SRC_URI = " \
     git://github.com/xenomai-ci/xenomai.git;protocol=https;branch=stable/v3.2.x;tag=v${PV}"
-
-S = "${WORKDIR}/git"
recipes-xenomai/xenomai/xenomai_master.bb +0 -2
index a2e8802..708ddb3 100644
@@ -17,5 +17,3 @@ CHANGELOG_V = "9999-${PV}"
 SRC_URI = " \
     git://github.com/xenomai-ci/xenomai.git;protocol=https;branch=${PV}"
 SRCREV = "${AUTOREV}"
-
-S = "${WORKDIR}/git"
recipes-xenomai/xenomai/xenomai_stable-3.0.x.bb +0 -2
index 6231e9e..bca3eb2 100644
@@ -18,5 +18,3 @@ CHANGELOG_V = "${XENOMAI_VERSION}-head"
 SRC_URI = " \
     git://github.com/xenomai-ci/xenomai.git;protocol=https;branch=stable/v${XENOMAI_VERSION}"
 SRCREV = "${AUTOREV}"
-
-S = "${WORKDIR}/git"
Signature · 1 line
2.43.0
author
#5 lore raw

PATCH 5/6 xenomai: Update stable releases

In reply to Jan Kiszka

From: Jan Kiszka <[email protected]>

---
 conf/distro/include/xenomai-version.inc                   | 8 ++++----
 .../xenomai/{xenomai_3.0.14.bb => xenomai_3.0.15.bb}      | 0
 .../xenomai/{xenomai_3.1.4.bb => xenomai_3.1.5.bb}        | 0
 .../xenomai/{xenomai_3.2.4.bb => xenomai_3.2.6.bb}        | 0
 4 files changed, 4 insertions(+), 4 deletions(-)
 rename recipes-xenomai/xenomai/{xenomai_3.0.14.bb => xenomai_3.0.15.bb} (100%)
 rename recipes-xenomai/xenomai/{xenomai_3.1.4.bb => xenomai_3.1.5.bb} (100%)
 rename recipes-xenomai/xenomai/{xenomai_3.2.4.bb => xenomai_3.2.6.bb} (100%)
conf/distro/include/xenomai-version.inc +4 -4
index bed78e8..e036c39 100644
@@ -1,7 +1,7 @@
 #
 # Xenomai Real-Time System
 #
-# Copyright (c) Siemens AG, 2019-2023
+# Copyright (c) Siemens AG, 2019-2024
 #
 # Authors:
 #  Quirin Gylstorff <[email protected]>
@@ -11,13 +11,13 @@
 
 XENOMAI_DEFAULT_KERNEL_VERSION = "6.1%"
 
-XENOMAI_3_0_VERSION_LIST = "3.0 3.0% 3.0.% 3.0.14 stable-3.0.x"
+XENOMAI_3_0_VERSION_LIST = "3.0 3.0% 3.0.% 3.0.15 stable-3.0.x"
 XENOMAI_3_0_KERNEL_VERSION = "4.4%"
 
-XENOMAI_3_1_VERSION_LIST = "3.1 3.1% 3.1.% 3.1.4 stable-3.1.x"
+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_2_VERSION_LIST = "3.2 3.2% 3.2.% 3.2.4 stable-3.2.x"
+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%"
 
 # If PREFERRED_VERSION_xenomai contains any item from XENOMAI_3_0_VERSION_LIST use
recipes-xenomai/xenomai/xenomai_3.0.15.bb renamed from recipes-xenomai/xenomai/xenomai_3.0.14.bb +0 -0
similarity index 100%
rename from recipes-xenomai/xenomai/xenomai_3.0.14.bb
rename to recipes-xenomai/xenomai/xenomai_3.0.15.bb
recipes-xenomai/xenomai/xenomai_3.1.5.bb renamed from recipes-xenomai/xenomai/xenomai_3.1.4.bb +0 -0
similarity index 100%
rename from recipes-xenomai/xenomai/xenomai_3.1.4.bb
rename to recipes-xenomai/xenomai/xenomai_3.1.5.bb
recipes-xenomai/xenomai/xenomai_3.2.6.bb renamed from recipes-xenomai/xenomai/xenomai_3.2.4.bb +0 -0
similarity index 100%
rename from recipes-xenomai/xenomai/xenomai_3.2.4.bb
rename to recipes-xenomai/xenomai/xenomai_3.2.6.bb
Signature · 1 line
2.43.0
author
#6 lore raw

PATCH 6/6 Add Xenomai 3.3 support

In reply to Jan Kiszka

From: Jan Kiszka <[email protected]>

Add the latest major version, also as new default. It does not come with an own stable branch yet, thus focus on the release for now.

---
 Kconfig                                | 25 ++++++++++++++-----------
 conf/distro/xenomai-demo.conf          |  4 ++--
 recipes-xenomai/xenomai/xenomai_3.3.bb | 17 +++++++++++++++++
 3 files changed, 33 insertions(+), 13 deletions(-)
 create mode 100644 recipes-xenomai/xenomai/xenomai_3.3.bb
Kconfig +14 -11
index 13699bf..2336e66 100644
@@ -77,11 +77,14 @@ if XENOMAI3
 
 choice
 	prompt "Xenomai 3 subversion"
-	default XENOMAI_3_2
+	default XENOMAI_3_3
 
 config XENOMAI_LATEST
 	bool "Head of next branch"
 
+config XENOMAI_3_3
+	bool "Latest 3.3.x release"
+
 config XENOMAI_3_2_LATEST
 	bool "Head of stable/v3.2.x branch"
 
@@ -107,7 +110,7 @@ config KAS_INCLUDE_XENOMAI
 
 choice
 	prompt "Kernel version"
-	default KERNEL_6_1
+	default KERNEL_6_6
 
 config KERNEL_LATEST
 	bool "Head of latest Dovetail branch"
@@ -115,35 +118,35 @@ config KERNEL_LATEST
 
 config KERNEL_6_6_LATEST
 	bool "Head of 6.6 Dovetail branch"
-	depends on XENOMAI_LATEST
+	depends on XENOMAI_LATEST || XENOMAI_3_3
 
 config KERNEL_6_6
 	bool "Latest 6.6 Dovetail release"
-	depends on XENOMAI_LATEST
+	depends on XENOMAI_LATEST || XENOMAI_3_3
 
 config KERNEL_6_1_LATEST
 	bool "Head of 6.1 Dovetail branch"
-	depends on XENOMAI_LATEST || XENOMAI_3_2_LATEST || XENOMAI_3_2
+	depends on XENOMAI_LATEST || XENOMAI_3_3 || XENOMAI_3_2_LATEST || XENOMAI_3_2
 
 config KERNEL_6_1
 	bool "Latest 6.1 Dovetail release"
-	depends on XENOMAI_LATEST || XENOMAI_3_2_LATEST || XENOMAI_3_2
+	depends on XENOMAI_LATEST || XENOMAI_3_3 || XENOMAI_3_2_LATEST || XENOMAI_3_2
 
 config KERNEL_5_15_LATEST
 	bool "Head of 5.15 Dovetail branch"
-	depends on XENOMAI_LATEST || XENOMAI_3_2_LATEST || XENOMAI_3_2
+	depends on XENOMAI_LATEST || XENOMAI_3_3 || XENOMAI_3_2_LATEST || XENOMAI_3_2
 
 config KERNEL_5_15
 	bool "Latest 5.15 Dovetail release"
-	depends on XENOMAI_LATEST || XENOMAI_3_2_LATEST || XENOMAI_3_2
+	depends on XENOMAI_LATEST || XENOMAI_3_3 || XENOMAI_3_2_LATEST || XENOMAI_3_2
 
 config KERNEL_5_10_LATEST
 	bool "Head of 5.10 Dovetail branch"
-	depends on XENOMAI_LATEST || XENOMAI_3_2_LATEST || XENOMAI_3_2
+	depends on XENOMAI_LATEST || XENOMAI_3_3 || XENOMAI_3_2_LATEST || XENOMAI_3_2
 
 config KERNEL_5_10
 	bool "Latest 5.10 Dovetail release"
-	depends on XENOMAI_LATEST || XENOMAI_3_2_LATEST || XENOMAI_3_2
+	depends on XENOMAI_LATEST || XENOMAI_3_3 || XENOMAI_3_2_LATEST || XENOMAI_3_2
 
 config KERNEL_5_4_LATEST
 	bool "Head of 5.4 I-pipe branch"
@@ -208,7 +211,7 @@ config KAS_INCLUDE_DEBUG
 
 config COMPAT
 	bool "Build 32 bit Xenomai userspace"
-	depends on XENOMAI_LATEST && ARCH_X86
+	depends on (XENOMAI_LATEST || XENOMAI_3_3) && ARCH_X86
 
 config KAS_INCLUDE_COMPAT
 	string
conf/distro/xenomai-demo.conf +2 -2
index 222e077..d1b24b7 100644
@@ -15,8 +15,8 @@ XENOMAI_MAJOR_VERSION ?= "3"
 
 OVERRIDES .= ":xenomai${XENOMAI_MAJOR_VERSION}"
 
-PREFERRED_VERSION_xenomai ?= "3.2%"
-PREFERRED_VERSION_xenomai-compat ?= "3.2%"
+PREFERRED_VERSION_xenomai ?= "3.3%"
+PREFERRED_VERSION_xenomai-compat ?= "3.3%"
 include conf/distro/include/xenomai-version.inc
 
 PREFERRED_VERSION_libevl ?= "4%"
recipes-xenomai/xenomai/xenomai_3.3.bb new file +17 -0
new file mode 100644
index 0000000..c2babdb
@@ -0,0 +1,17 @@
+#
+# Xenomai Real-Time System
+#
+# Copyright (c) Siemens AG, 2024
+#
+# Authors:
+#  Jan Kiszka <[email protected]>
+#
+# SPDX-License-Identifier: MIT
+#
+
+require xenomai.inc
+
+# Note: When updating PV, also update conf/distro/include/xenomai-version.inc!
+
+SRC_URI = " \
+    git://github.com/xenomai-ci/xenomai.git;protocol=https;branch=master;tag=v${PV}"
Signature · 1 line
2.43.0