Skip to contentSkip to conversation

LTS kernel 6.1, kernel 5.2 for 3.2.x, Isar update to bitbake 2.0

PATCH In review Jan Kiszka 2 participants 10 messages Feb 13, 2023

lore
Share & tools
lore
author
#1 lore raw

PATCH 1/7 linux-xenomai: Move S assignment into common include

In reply to Jan Kiszka

From: Jan Kiszka <[email protected]>

---
 recipes-kernel/linux/linux-xenomai.inc       | 2 ++
 recipes-kernel/linux/linux-xenomai_4.19.bb   | 2 --
 recipes-kernel/linux/linux-xenomai_4.4.bb    | 2 --
 recipes-kernel/linux/linux-xenomai_5.10.bb   | 2 --
 recipes-kernel/linux/linux-xenomai_5.15.bb   | 2 --
 recipes-kernel/linux/linux-xenomai_5.4.bb    | 2 --
 recipes-kernel/linux/linux-xenomai_latest.bb | 2 --
 7 files changed, 2 insertions(+), 12 deletions(-)
recipes-kernel/linux/linux-xenomai.inc +2 -0
index f0f809d..7d69519 100644
@@ -21,6 +21,8 @@ SRC_URI += "${@'file://${KERNEL_DEFCONFIG}' if d.getVar('KERNEL_DEFCONFIG') == d
 SRC_URI += "${@'file://common_nodbg.cfg' if d.getVar('XENOMAI_DEBUG') == '0' else ''}"
 SRC_URI += "file://rules.tmpl"
 
+S = "${WORKDIR}/git"
+
 DEPENDS += "xenomai-kernel-source"
 KBUILD_DEPENDS += "xenomai-kernel-source:native"
 
recipes-kernel/linux/linux-xenomai_4.19.bb +0 -2
index d02def6..8194ea5 100644
@@ -21,5 +21,3 @@ SRC_URI_append_armhf = " git://github.com/xenomai-ci/ipipe-arm.git;protocol=http
 SRCREV_armhf ?= "ipipe-core-4.19.229-cip67-arm-18"
 
 PV ?= "${@d.getVar('SRCREV').split('-')[2]}+"
-
-S = "${WORKDIR}/git"
recipes-kernel/linux/linux-xenomai_4.4.bb +0 -2
index dc64a85..bf00fdc 100644
@@ -19,5 +19,3 @@ SRC_URI_append_armhf = " ${@ 'file://bbb_4.4.cfg' if d.getVar('MACHINE') == 'bea
 SRCREV_armhf ?= "ipipe-core-4.4.302-cip71-arm-20"
 
 PV ?= "${@d.getVar('SRCREV').split('-')[2]}+"
-
-S = "${WORKDIR}/git"
recipes-kernel/linux/linux-xenomai_5.10.bb +0 -2
index 4500864..1c98d29 100644
@@ -15,5 +15,3 @@ SRC_URI += "git://source.denx.de/xenomai/linux-dovetail.git;protocol=https;nobra
 SRCREV ?= "v5.10.161-dovetail1"
 
 PV ?= "${@d.getVar('SRCREV').strip('-')[0].lstrip('v')}+"
-
-S = "${WORKDIR}/git"
recipes-kernel/linux/linux-xenomai_5.15.bb +0 -2
index 724c73b..168334c 100644
@@ -15,5 +15,3 @@ SRC_URI += "git://source.denx.de/xenomai/linux-dovetail.git;protocol=https;nobra
 SRCREV ?= "v5.15.85-dovetail1"
 
 PV ?= "${@d.getVar('SRCREV').strip('-')[0].lstrip('v')}+"
-
-S = "${WORKDIR}/git"
recipes-kernel/linux/linux-xenomai_5.4.bb +0 -2
index 716d92d..104955f 100644
@@ -21,5 +21,3 @@ SRC_URI_append_armhf = " git://github.com/xenomai-ci/ipipe-arm.git;protocol=http
 SRCREV_armhf ?= "ipipe-core-5.4.180-arm-5"
 
 PV ?= "${@d.getVar('SRCREV').split('-')[2]}+"
-
-S = "${WORKDIR}/git"
recipes-kernel/linux/linux-xenomai_latest.bb +0 -2
index 9a8c6fd..6804391 100644
@@ -72,5 +72,3 @@ SRC_URI += "${GIT_REPO};protocol=https;branch=${GIT_BRANCH}"
 SRCREV = "${AUTOREV}"
 
 SRC_URI_append_armhf = " ${@ 'file://bbb_4.4.cfg' if is_xeno_3_0(d) and d.getVar('MACHINE') == 'beagle-bone-black' else '' }"
-
-S = "${WORKDIR}/git"
Signature · 1 line
2.35.3
author
#3 lore raw

PATCH 3/7 Add kernel 6.1 recipe and kas files

In reply to Jan Kiszka

From: Jan Kiszka <[email protected]>

Allows to build against v6.1.y-dovetail[-rebase] with xenomai-next.

---
 Kconfig                                      | 10 ++++++++++
 opt-linux-6.1.yml                            | 17 +++++++++++++++++
 opt-linux-latest-6.1.yml                     | 18 ++++++++++++++++++
 recipes-kernel/linux/linux-xenomai_6.1.bb    | 14 ++++++++++++++
 recipes-kernel/linux/linux-xenomai_latest.bb |  5 ++++-
 5 files changed, 63 insertions(+), 1 deletion(-)
 create mode 100644 opt-linux-6.1.yml
 create mode 100644 opt-linux-latest-6.1.yml
 create mode 100644 recipes-kernel/linux/linux-xenomai_6.1.bb
Kconfig +10 -0
index 25e6d8c..b49e22d 100644
@@ -93,6 +93,14 @@ config KERNEL_LATEST
 	bool "Head of latest Dovetail branch"
 	depends on XENOMAI_LATEST
 
+config KERNEL_6_1_LATEST
+	bool "Head of 6.1 Dovetail branch"
+	depends on XENOMAI_LATEST
+
+config KERNEL_6_1
+	bool "Latest 6.1 Dovetail version"
+	depends on XENOMAI_LATEST
+
 config KERNEL_5_15_LATEST
 	bool "Head of 5.15 Dovetail branch"
 	depends on XENOMAI_LATEST
@@ -138,6 +146,8 @@ endchoice
 config KAS_INCLUDE_KERNEL
 	string
 	default "opt-linux-latest.yml" if KERNEL_LATEST
+	default "opt-linux-latest-6.1.yml" if KERNEL_6_1_LATEST
+	default "opt-linux-6.1.yml" if KERNEL_6_1
 	default "opt-linux-latest-5.15.yml" if KERNEL_5_15_LATEST
 	default "opt-linux-5.15.yml" if KERNEL_5_15
 	default "opt-linux-latest-5.10.yml" if KERNEL_5_10_LATEST
opt-linux-6.1.yml new file +17 -0
new file mode 100644
index 0000000..fb0df24
@@ -0,0 +1,17 @@
+#
+# Xenomai Real-Time System
+#
+# Copyright (c) Siemens AG, 2023
+#
+# Authors:
+#  Jan Kiszka <[email protected]>
+#
+# SPDX-License-Identifier: MIT
+#
+
+header:
+  version: 10
+
+local_conf_header:
+  linux-xenomai-version: |
+    PREFERRED_VERSION_linux-xenomai = "6.1%"
opt-linux-latest-6.1.yml new file +18 -0
new file mode 100644
index 0000000..c5eecd8
@@ -0,0 +1,18 @@
+#
+# Xenomai Real-Time System
+#
+# Copyright (c) Siemens AG, 2023
+#
+# Authors:
+#  Jan Kiszka <[email protected]>
+#
+# SPDX-License-Identifier: MIT
+#
+
+header:
+  version: 10
+
+local_conf_header:
+  linux-xenomai-version: |
+    PREFERRED_VERSION_linux-xenomai = "9999-%"
+    LATEST_GIT_BRANCH = "6.1"
recipes-kernel/linux/linux-xenomai_6.1.bb new file +14 -0
new file mode 100644
index 0000000..d9655e0
@@ -0,0 +1,14 @@
+#
+# Xenomai Real-Time System
+#
+# Copyright (c) Siemens AG, 2021-2023
+#
+# Authors:
+#  Jan Kiszka <[email protected]>
+#
+# SPDX-License-Identifier: MIT
+#
+
+require recipes-kernel/linux/linux-xenomai-dovetail.inc
+
+SRCREV ?= "v6.1.11-dovetail1"
recipes-kernel/linux/linux-xenomai_latest.bb +4 -1
index 6804391..682e973 100644
@@ -1,7 +1,7 @@
 #
 # Xenomai Real-Time System
 #
-# Copyright (c) Siemens AG, 2019-2021
+# Copyright (c) Siemens AG, 2019-2023
 #
 # Authors:
 #  Quirin Gylstorff <[email protected]>
@@ -44,6 +44,7 @@ GIT_BRANCH = "${@ \
     else 'ipipe-x86-5.4.y' if is_kernel(d, '5.4') \
     else 'v5.10.y-dovetail-rebase' if is_kernel(d, '5.10') \
     else 'v5.15.y-dovetail-rebase' if is_kernel(d, '5.15') \
+    else 'v6.1.y-dovetail-rebase' if is_kernel(d, '6.1') \
     else d.getVar('LATEST_KERNEL_BRANCH') }"
 
 GIT_REPO_armhf = "${@ \
@@ -56,6 +57,7 @@ GIT_BRANCH_armhf = "${@ \
     else 'ipipe/5.4.y' if is_kernel(d, '5.4') \
     else 'v5.10.y-dovetail-rebase' if is_kernel(d, '5.10') \
     else 'v5.15.y-dovetail-rebase' if is_kernel(d, '5.15') \
+    else 'v6.1.y-dovetail-rebase' if is_kernel(d, '6.1') \
     else d.getVar('LATEST_KERNEL_BRANCH') }"
 
 GIT_REPO_arm64 = "${@ \
@@ -66,6 +68,7 @@ GIT_BRANCH_arm64 = "${@ \
     else 'ipipe/5.4.y' if is_kernel(d, '5.4') \
     else 'v5.10.y-dovetail-rebase' if is_kernel(d, '5.10') \
     else 'v5.15.y-dovetail-rebase' if is_kernel(d, '5.15') \
+    else 'v6.1.y-dovetail-rebase' if is_kernel(d, '6.1') \
     else d.getVar('LATEST_KERNEL_BRANCH') }"
 
 SRC_URI += "${GIT_REPO};protocol=https;branch=${GIT_BRANCH}"
Signature · 1 line
2.35.3
author
#4 lore raw

PATCH 4/7 ci: Hook up kernel 6.1

In reply to Jan Kiszka

From: Jan Kiszka <[email protected]>

Add a builds and test for all targets with this new LTS kernel. We will reduce coverage of older kernels later in order to limit CI efforts.

---
 ci/kernel_6_1.yml   | 82 +++++++++++++++++++++++++++++++++++++++++++++
 ci/xenomai_next.yml |  1 +
 2 files changed, 83 insertions(+)
 create mode 100644 ci/kernel_6_1.yml
ci/kernel_6_1.yml new file +82 -0
new file mode 100644
index 0000000..2e555af
@@ -0,0 +1,82 @@
+#
+# Xenomai Real-Time System
+#
+# Copyright (c) Siemens AG, 2022-2023
+#
+# Authors:
+#  Jan Kiszka <[email protected]>
+#
+# SPDX-License-Identifier: MIT
+#
+
+build-6.1:qemu-amd64:
+  extends: .build:qemu-amd64
+  variables:
+    LINUX_BUILD_OPTION: ":opt-linux-latest-6.1.yml"
+    KERNEL_VERSION: "6.1"
+
+lava-test-6.1:qemu-amd64:
+  needs: [ "build-6.1:qemu-amd64" ]
+  extends: .lava-test:qemu-amd64
+  variables:
+    KERNEL_VERSION: "6.1"
+
+build-6.1:qemu-armhf:
+  extends: .build:qemu-armhf
+  variables:
+    LINUX_BUILD_OPTION: ":opt-linux-latest-6.1.yml"
+    KERNEL_VERSION: "6.1"
+
+lava-test-6.1:qemu-armhf:
+  needs: [ "build-6.1:qemu-armhf" ]
+  extends: .lava-test:qemu-armhf
+  variables:
+    KERNEL_VERSION: "6.1"
+
+build-6.1:qemu-arm64:
+  extends: .build:qemu-arm64
+  variables:
+    LINUX_BUILD_OPTION: ":opt-linux-latest-6.1.yml"
+    KERNEL_VERSION: "6.16"
+
+lava-test-6.1:qemu-arm64:
+  needs: [ "build-6.1:qemu-arm64" ]
+  extends: .lava-test:qemu-arm64
+  variables:
+    KERNEL_VERSION: "6.1"
+
+build-6.1:hikey:
+  extends: .build:hikey
+  variables:
+    LINUX_BUILD_OPTION: ":opt-linux-latest-6.1.yml"
+    KERNEL_VERSION: "6.1"
+
+lava-test-6.1:hikey:
+  needs: [ "build-6.1:hikey" ]
+  extends: .lava-test:hikey
+  variables:
+    KERNEL_VERSION: "6.1"
+
+build-6.1:beagle-bone-black:
+  extends: .build:beagle-bone-black
+  variables:
+    LINUX_BUILD_OPTION: ":opt-linux-latest-6.1.yml"
+    KERNEL_VERSION: "6.1"
+
+lava-test-6.1:beagle-bone-black:
+  needs: [ "build-6.1:beagle-bone-black" ]
+  extends: .lava-test:beagle-bone-black
+  variables:
+    KERNEL_VERSION: "6.1"
+
+build-6.1:x86-64-efi:
+  extends: .build:x86-64-efi
+  variables:
+    LINUX_BUILD_OPTION: ":opt-linux-latest-6.1.yml"
+    KERNEL_VERSION: "6.1"
+
+lava-test-6.1:x86-64-efi:
+  needs: [ "build-6.1:x86-64-efi" ]
+  extends: .lava-test:x86-64-efi
+  variables:
+    KERNEL_VERSION: "6.1"
ci/xenomai_next.yml +1 -0
index b9e9a57..3e4d513 100644
@@ -13,6 +13,7 @@ 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/xenomai_next_compat.yml'
 
 variables:
Signature · 1 line
2.35.3
author
#7 lore raw

PATCH 5/7 Kconfig: Enable kernel 5.15 for xenomai 3.2 head

In reply to Jan Kiszka

From: Jan Kiszka <[email protected]>

No release with this support yet, so only enable XENOMAI_3_2_LATEST.

---
 Kconfig | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Kconfig +2 -2
index b49e22d..953634e 100644
@@ -103,11 +103,11 @@ config KERNEL_6_1
 
 config KERNEL_5_15_LATEST
 	bool "Head of 5.15 Dovetail branch"
-	depends on XENOMAI_LATEST
+	depends on XENOMAI_LATEST || XENOMAI_3_2_LATEST
 
 config KERNEL_5_15
 	bool "Latest 5.15 Dovetail version"
-	depends on XENOMAI_LATEST
+	depends on XENOMAI_LATEST || XENOMAI_3_2_LATEST
 
 config KERNEL_5_10_LATEST
 	bool "Head of 5.10 Dovetail branch"
Signature · 1 line
2.35.3
author
#8 lore raw

PATCH 6/7 ci: Add kernel 5.15 to Xenomai 3.2 pipeline

In reply to Jan Kiszka

From: Jan Kiszka <[email protected]>

Now supported.

---
 ci/xenomai_3_2_x.yml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
ci/xenomai_3_2_x.yml +2 -1
index 7ca77a3..3a1d5e3 100644
@@ -1,7 +1,7 @@
 #
 # Xenomai Real-Time System
 #
-# Copyright (c) Siemens AG, 2019 - 2022
+# Copyright (c) Siemens AG, 2019 - 2023
 #
 # Authors:
 #  Quirin Gylstorff <[email protected]>
@@ -14,6 +14,7 @@ include:
   - local: '/ci/kernel_4_19.yml'
   - local: '/ci/kernel_5_4.yml'
   - local: '/ci/kernel_5_10.yml'
+  - local: '/ci/kernel_5_15.yml'
 
 variables:
   XENOMAI_BUILD_OPTION: ":opt-xenomai-3.2.x.yml"
Signature · 1 line
2.35.3
author
#9 lore raw

PATCH 7/7 Update Isar after bitbake 2 switch

In reply to Jan Kiszka

From: Jan Kiszka <[email protected]>

Not much effort for this layer.

---
 conf/machine/hikey.conf                      |  2 +-
 conf/machine/qemu-machine.inc                |  2 +-
 kas.yml                                      |  2 +-
 opt-ci.yml                                   |  6 +++---
 recipes-kernel/linux/linux-xenomai.inc       |  2 +-
 recipes-kernel/linux/linux-xenomai_4.19.bb   | 12 ++++++------
 recipes-kernel/linux/linux-xenomai_4.4.bb    | 10 +++++-----
 recipes-kernel/linux/linux-xenomai_5.4.bb    | 12 ++++++------
 recipes-kernel/linux/linux-xenomai_latest.bb | 10 +++++-----
 recipes-xenomai/xenomai/xenomai.inc          |  2 +-
 10 files changed, 30 insertions(+), 30 deletions(-)
conf/machine/hikey.conf +1 -1
index 344a3de..33694ed 100644
@@ -14,7 +14,7 @@ DISTRO_ARCH = "arm64"
 IMAGE_FSTYPES ?= "wic"
 IMAGER_INSTALL += "${GRUB_BOOTLOADER_INSTALL}"
 
-IMAGE_PREINSTALL_append = " firmware-ti-connectivity"
+IMAGE_PREINSTALL:append = " firmware-ti-connectivity"
 
 # DTB for testing
 DTB_FILES = "hi6220-hikey.dtb"
conf/machine/qemu-machine.inc +1 -1
index 27475eb..c50201a 100644
@@ -11,5 +11,5 @@
 
 IMAGE_FSTYPES ?= "ext4"
 
-IMAGE_INSTALL_remove += "expand-on-first-boot"
+IMAGE_INSTALL:remove = "expand-on-first-boot"
 ROOTFS_EXTRA = "1024"
kas.yml +1 -1
index 0010deb..6020c62 100644
@@ -22,7 +22,7 @@ repos:
 
   isar:
     url: https://github.com/ilbers/isar.git
-    refspec: b98f858500ebae8f9c08124e530d9e72bbdfaa23
+    refspec: 4de8b0d5d68ad46829fa1360eabcf3fc8662a39e
     layers:
       meta:
 
opt-ci.yml +3 -3
index 2f551b4..32de022 100644
@@ -20,7 +20,7 @@ header:
 
 local_conf_header:
   xenomai-ci: |
-    ROOTFS_POSTPROCESS_COMMAND_remove = "image_postprocess_sshd_key_regen"
-    IMAGE_INSTALL_remove += "sshd-regen-keys"
-    IMAGE_INSTALL_remove += "expand-on-first-boot"
+    ROOTFS_POSTPROCESS_COMMAND:remove = "image_postprocess_sshd_key_regen"
+    IMAGE_INSTALL:remove += "sshd-regen-keys"
+    IMAGE_INSTALL:remove += "expand-on-first-boot"
     IMAGE_FSTYPES = "${@ 'ext4.gz' if d.getVar('MACHINE', True).startswith('qemu') else 'tar.gz' }"
recipes-kernel/linux/linux-xenomai.inc +1 -1
index 7d69519..ca63fea 100644
@@ -36,7 +36,7 @@ def get_commit(d):
 
 LINUX_COMMIT ?= "${@get_commit(d)}"
 
-dpkg_runbuild_prepend() {
+dpkg_runbuild:prepend() {
     bbplain $(printf "linux-xenomai-%s: Building revision %.20s\n" \
                      ${PV} ${LINUX_COMMIT})
 }
recipes-kernel/linux/linux-xenomai_4.19.bb +6 -6
index 8194ea5..249ffb4 100644
@@ -11,13 +11,13 @@
 
 require recipes-kernel/linux/linux-xenomai.inc
 
-SRC_URI_append_amd64 = " git://github.com/xenomai-ci/ipipe-x86.git;protocol=https;nobranch=1"
-SRCREV_amd64 ?= "ipipe-core-4.19.266-cip86-x86-25"
+SRC_URI:append:amd64 = " git://github.com/xenomai-ci/ipipe-x86.git;protocol=https;nobranch=1"
+SRCREV:amd64 ?= "ipipe-core-4.19.266-cip86-x86-25"
 
-SRC_URI_append_arm64 = " git://github.com/xenomai-ci/ipipe-arm64.git;protocol=https;nobranch=1"
-SRCREV_arm64 ?= "ipipe-core-4.19.229-cip67-arm64-13"
+SRC_URI:append:arm64 = " git://github.com/xenomai-ci/ipipe-arm64.git;protocol=https;nobranch=1"
+SRCREV:arm64 ?= "ipipe-core-4.19.229-cip67-arm64-13"
 
-SRC_URI_append_armhf = " git://github.com/xenomai-ci/ipipe-arm.git;protocol=https;nobranch=1"
-SRCREV_armhf ?= "ipipe-core-4.19.229-cip67-arm-18"
+SRC_URI:append:armhf = " git://github.com/xenomai-ci/ipipe-arm.git;protocol=https;nobranch=1"
+SRCREV:armhf ?= "ipipe-core-4.19.229-cip67-arm-18"
 
 PV ?= "${@d.getVar('SRCREV').split('-')[2]}+"
recipes-kernel/linux/linux-xenomai_4.4.bb +5 -5
index bf00fdc..2b32ae3 100644
@@ -11,11 +11,11 @@
 
 require recipes-kernel/linux/linux-xenomai.inc
 
-SRC_URI_append_amd64 = " git://github.com/xenomai-ci/ipipe.git;protocol=https;nobranch=1"
-SRCREV_amd64 ?= "ipipe-core-4.4.302-cip71-x86-35"
+SRC_URI:append:amd64 = " git://github.com/xenomai-ci/ipipe.git;protocol=https;nobranch=1"
+SRCREV:amd64 ?= "ipipe-core-4.4.302-cip71-x86-35"
 
-SRC_URI_append_armhf = " git://github.com/xenomai-ci/ipipe.git;protocol=https;nobranch=1"
-SRC_URI_append_armhf = " ${@ 'file://bbb_4.4.cfg' if d.getVar('MACHINE') == 'beagle-bone-black' else '' }"
-SRCREV_armhf ?= "ipipe-core-4.4.302-cip71-arm-20"
+SRC_URI:append:armhf = " git://github.com/xenomai-ci/ipipe.git;protocol=https;nobranch=1"
+SRC_URI:append:armhf = " ${@ 'file://bbb_4.4.cfg' if d.getVar('MACHINE') == 'beagle-bone-black' else '' }"
+SRCREV:armhf ?= "ipipe-core-4.4.302-cip71-arm-20"
 
 PV ?= "${@d.getVar('SRCREV').split('-')[2]}+"
recipes-kernel/linux/linux-xenomai_5.4.bb +6 -6
index 104955f..7796cd3 100644
@@ -11,13 +11,13 @@
 
 require recipes-kernel/linux/linux-xenomai.inc
 
-SRC_URI_append_amd64 = " git://github.com/xenomai-ci/ipipe-x86.git;protocol=https;nobranch=1"
-SRCREV_amd64 ?= "ipipe-core-5.4.228-x86-12"
+SRC_URI:append:amd64 = " git://github.com/xenomai-ci/ipipe-x86.git;protocol=https;nobranch=1"
+SRCREV:amd64 ?= "ipipe-core-5.4.228-x86-12"
 
-SRC_URI_append_arm64 = " git://github.com/xenomai-ci/ipipe-arm64.git;protocol=https;nobranch=1"
-SRCREV_arm64 ?= "ipipe-core-5.4.180-arm64-5"
+SRC_URI:append:arm64 = " git://github.com/xenomai-ci/ipipe-arm64.git;protocol=https;nobranch=1"
+SRCREV:arm64 ?= "ipipe-core-5.4.180-arm64-5"
 
-SRC_URI_append_armhf = " git://github.com/xenomai-ci/ipipe-arm.git;protocol=https;nobranch=1"
-SRCREV_armhf ?= "ipipe-core-5.4.180-arm-5"
+SRC_URI:append:armhf = " git://github.com/xenomai-ci/ipipe-arm.git;protocol=https;nobranch=1"
+SRCREV:armhf ?= "ipipe-core-5.4.180-arm-5"
 
 PV ?= "${@d.getVar('SRCREV').split('-')[2]}+"
recipes-kernel/linux/linux-xenomai_latest.bb +5 -5
index 682e973..7d002f1 100644
@@ -47,11 +47,11 @@ GIT_BRANCH = "${@ \
     else 'v6.1.y-dovetail-rebase' if is_kernel(d, '6.1') \
     else d.getVar('LATEST_KERNEL_BRANCH') }"
 
-GIT_REPO_armhf = "${@ \
+GIT_REPO:armhf = "${@ \
     'git://github.com/xenomai-ci/ipipe.git' if is_xeno_3_0(d) \
     else 'git://github.com/xenomai-ci/ipipe-arm.git' if is_kernel(d, '4.19') or is_kernel(d, '5.4') \
     else 'git://source.denx.de/xenomai/linux-dovetail.git' }"
-GIT_BRANCH_armhf = "${@ \
+GIT_BRANCH:armhf = "${@ \
     'ipipe-4.4.y-cip' if is_xeno_3_0(d) \
     else 'ipipe/4.19.y-cip' if is_kernel(d, '4.19') \
     else 'ipipe/5.4.y' if is_kernel(d, '5.4') \
@@ -60,10 +60,10 @@ GIT_BRANCH_armhf = "${@ \
     else 'v6.1.y-dovetail-rebase' if is_kernel(d, '6.1') \
     else d.getVar('LATEST_KERNEL_BRANCH') }"
 
-GIT_REPO_arm64 = "${@ \
+GIT_REPO:arm64 = "${@ \
     'git://github.com/xenomai-ci/ipipe-arm64.git' if is_kernel(d, '4.19') or is_kernel(d, '5.4') \
     else 'git://source.denx.de/xenomai/linux-dovetail.git' }"
-GIT_BRANCH_arm64 = "${@ \
+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-dovetail-rebase' if is_kernel(d, '5.10') \
@@ -74,4 +74,4 @@ GIT_BRANCH_arm64 = "${@ \
 SRC_URI += "${GIT_REPO};protocol=https;branch=${GIT_BRANCH}"
 SRCREV = "${AUTOREV}"
 
-SRC_URI_append_armhf = " ${@ 'file://bbb_4.4.cfg' if is_xeno_3_0(d) and d.getVar('MACHINE') == 'beagle-bone-black' else '' }"
+SRC_URI:append:armhf = " ${@ 'file://bbb_4.4.cfg' if is_xeno_3_0(d) and d.getVar('MACHINE') == 'beagle-bone-black' else '' }"
recipes-xenomai/xenomai/xenomai.inc +1 -1
index 226eba8..bad4ff4 100644
@@ -13,7 +13,7 @@ inherit dpkg
 
 PROVIDES += "xenomai-kernel-source xenomai-runtime xenomai-runtime-dbgsym libxenomai1 libxenomai-dev libxenomai1-dbgsym"
 
-PACKAGE_ARCH_compat-arch = "${COMPAT_DISTRO_ARCH}"
+PACKAGE_ARCH:compat-arch = "${COMPAT_DISTRO_ARCH}"
 
 # use bitbake get_srcrev to get the current commit id
 def get_commit(d):
Signature · 1 line
2.35.3
author
#2 lore raw

PATCH 2/7 linux-xenomai: Factor out linux-xenomai-dovetail.inc

In reply to Jan Kiszka

From: Jan Kiszka <[email protected]>

Two lines to share per kernel, and there is another kernel upcoming.

---
 .../{linux-xenomai_5.15.bb => linux-xenomai-dovetail.inc}    | 1 -
 recipes-kernel/linux/linux-xenomai_5.10.bb                   | 5 +----
 recipes-kernel/linux/linux-xenomai_5.15.bb                   | 5 +----
 3 files changed, 2 insertions(+), 9 deletions(-)
 copy recipes-kernel/linux/{linux-xenomai_5.15.bb => linux-xenomai-dovetail.inc} (91%)
recipes-kernel/linux/linux-xenomai-dovetail.inc renamed from recipes-kernel/linux/linux-xenomai_5.15.bb +0 -1
similarity index 91%
copy from recipes-kernel/linux/linux-xenomai_5.15.bb
copy to recipes-kernel/linux/linux-xenomai-dovetail.inc
index 168334c..05d775e 100644
@@ -12,6 +12,5 @@
 require recipes-kernel/linux/linux-xenomai.inc
 
 SRC_URI += "git://source.denx.de/xenomai/linux-dovetail.git;protocol=https;nobranch=1"
-SRCREV ?= "v5.15.85-dovetail1"
 
 PV ?= "${@d.getVar('SRCREV').strip('-')[0].lstrip('v')}+"
recipes-kernel/linux/linux-xenomai_5.10.bb +1 -4
index 1c98d29..986060d 100644
@@ -9,9 +9,6 @@
 # SPDX-License-Identifier: MIT
 #
 
-require recipes-kernel/linux/linux-xenomai.inc
+require recipes-kernel/linux/linux-xenomai-dovetail.inc
 
-SRC_URI += "git://source.denx.de/xenomai/linux-dovetail.git;protocol=https;nobranch=1"
 SRCREV ?= "v5.10.161-dovetail1"
-
-PV ?= "${@d.getVar('SRCREV').strip('-')[0].lstrip('v')}+"
recipes-kernel/linux/linux-xenomai_5.15.bb +1 -4
index 168334c..63865eb 100644
@@ -9,9 +9,6 @@
 # SPDX-License-Identifier: MIT
 #
 
-require recipes-kernel/linux/linux-xenomai.inc
+require recipes-kernel/linux/linux-xenomai-dovetail.inc
 
-SRC_URI += "git://source.denx.de/xenomai/linux-dovetail.git;protocol=https;nobranch=1"
 SRCREV ?= "v5.15.85-dovetail1"
-
-PV ?= "${@d.getVar('SRCREV').strip('-')[0].lstrip('v')}+"
Signature · 1 line
2.35.3

Jan Kiszka

author
#0 lore raw

cover LTS kernel 6.1, kernel 5.2 for 3.2.x, Isar update to bitbake 2.0

This adds the now available dovetail LTS branch for kernel 6.1 to the xenomai-next builds. Furthermore, it enables 5.15 for 3.2-head which just gained support for it. And finally, Isar is updated and the layer is adjusted to bitbake 2.0 syntax changes.

Jan

Jan Kiszka (7):
linux-xenomai: Move S assignment into common include
linux-xenomai: Factor out linux-xenomai-dovetail.inc Add kernel 6.1 recipe and kas files
ci: Hook up kernel 6.1
Kconfig: Enable kernel 5.15 for xenomai 3.2 head
ci: Add kernel 5.15 to Xenomai 3.2 pipeline Update Isar after bitbake 2 switch

 Kconfig                                       | 14 +++-
 ci/kernel_6_1.yml                             | 82 +++++++++++++++++++
 ci/xenomai_3_2_x.yml                          |  3 +-
 ci/xenomai_next.yml                           |  1 +
 conf/machine/hikey.conf                       |  2 +-
 conf/machine/qemu-machine.inc                 |  2 +-
 kas.yml                                       |  2 +-
 opt-ci.yml                                    |  6 +-
 opt-linux-6.1.yml                             | 17 ++++
 opt-linux-latest-6.1.yml                      | 18 ++++
 ...mai_5.15.bb => linux-xenomai-dovetail.inc} |  3 -
 recipes-kernel/linux/linux-xenomai.inc        |  4 +-
 recipes-kernel/linux/linux-xenomai_4.19.bb    | 14 ++--
 recipes-kernel/linux/linux-xenomai_4.4.bb     | 12 ++-
 recipes-kernel/linux/linux-xenomai_5.10.bb    |  7 +-
 recipes-kernel/linux/linux-xenomai_5.15.bb    |  7 +-
 recipes-kernel/linux/linux-xenomai_5.4.bb     | 14 ++--
 recipes-kernel/linux/linux-xenomai_6.1.bb     | 14 ++++
 recipes-kernel/linux/linux-xenomai_latest.bb  | 17 ++--
 recipes-xenomai/xenomai/xenomai.inc           |  2 +-
 20 files changed, 184 insertions(+), 57 deletions(-)
 create mode 100644 ci/kernel_6_1.yml
 create mode 100644 opt-linux-6.1.yml
 create mode 100644 opt-linux-latest-6.1.yml
 copy recipes-kernel/linux/{linux-xenomai_5.15.bb => linux-xenomai-dovetail.inc} (86%)
 create mode 100644 recipes-kernel/linux/linux-xenomai_6.1.bb
Signature · 1 line
2.35.3
#5 lore raw

Re: [xenomai-images][PATCH 4/7] ci: Hook up kernel 6.1

In reply to Jan Kiszka

Hi Jan,

ci/kernel_6_1.yml line 40

Quoted 11 lines · Jan Kiszka
ci/kernel_6_1.yml new file +11 -0
+lava-test-6.1:qemu-armhf:
+  needs: [ "build-6.1:qemu-armhf" ]
+  extends: .lava-test:qemu-armhf
+  variables:
+    KERNEL_VERSION: "6.1"
+
+build-6.1:qemu-arm64:
+  extends: .build:qemu-arm64
+  variables:
+    LINUX_BUILD_OPTION: ":opt-linux-latest-6.1.yml"
+    KERNEL_VERSION: "6.16"
                           ^

I'm quite sure we have a typo here as this version does not exist yet...

author
#6 lore raw

Re: [xenomai-images][PATCH 4/7] ci: Hook up kernel 6.1

Quoted 15 lines · Florian Bezdeka

Hi Jan,

ci/kernel_6_1.yml line 40

Quoted 11 lines · Jan Kiszka
ci/kernel_6_1.yml new file +11 -0
+lava-test-6.1:qemu-armhf:
+  needs: [ "build-6.1:qemu-armhf" ]
+  extends: .lava-test:qemu-armhf
+  variables:
+    KERNEL_VERSION: "6.1"
+
+build-6.1:qemu-arm64:
+  extends: .build:qemu-arm64
+  variables:
+    LINUX_BUILD_OPTION: ":opt-linux-latest-6.1.yml"
+    KERNEL_VERSION: "6.16"
                           ^
Quoted 3 lines

I'm quite sure we have a typo here as this version does not exist yet...

Argh, good catch.

Jan

Signature · 2 lines
Siemens AG, Technology
Competence Center Embedded Linux