Improve consistency of kernel version selection
cover Improve consistency of kernel version selection
Will also help adding a kas menu later on (prototype is working already).
Jan
Jan Kiszka (3):
linux-xenomai: Add recipe to build 5.10 dovetail release Rename local_conf_header section for kernel version Provide consistent kas files for selecting kernels
ci/gitlab-ci-base.yml | 1 - ci/kernel_4_19_xenomai_next.yml | 6 ++++++ ci/xenomai_3_0_x.yml | 2 ++ ci/xenomai_3_1_x.yml | 6 ++++++ opt-linux-4.19.yml | 4 ++-- opt-linux-4.4.yml | 4 ++-- ...linux-latest-5.10.yml => opt-linux-5.10.yml | 5 ++--- opt-linux-latest-5.10.yml => opt-linux-5.4.yml | 5 ++--- ...nux-latest.yml => opt-linux-latest-4.19.yml | 0 ...latest-5.10.yml => opt-linux-latest-4.4.yml | 2 +- opt-linux-latest-5.10.yml | 2 +- opt-linux-latest-5.4.yml | 2 +- recipes-kernel/linux/linux-xenomai_5.10.bb | 18 ++++++++++++++++++ 13 files changed, 43 insertions(+), 14 deletions(-) copy opt-linux-latest-5.10.yml => opt-linux-5.10.yml (65%) copy opt-linux-latest-5.10.yml => opt-linux-5.4.yml (65%) rename opt-linux-latest.yml => opt-linux-latest-4.19.yml (100%) copy opt-linux-latest-5.10.yml => opt-linux-latest-4.4.yml (89%) create mode 100644 recipes-kernel/linux/linux-xenomai_5.10.bb
Signature · 1 line
2.31.1
PATCH 1/3 linux-xenomai: Add recipe to build 5.10 dovetail release
From: Jan Kiszka <[email protected]>
Provides an option for a stable 5.10 revision, analogously to I-pipe releases.
--- recipes-kernel/linux/linux-xenomai_5.10.bb | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 recipes-kernel/linux/linux-xenomai_5.10.bb
recipes-kernel/linux/linux-xenomai_5.10.bb new file +18 -0
@@ -0,0 +1,18 @@ +# +# Xenomai Real-Time System +# +# Copyright (c) Siemens AG, 2021 +# +# Authors: +# Jan Kiszka <[email protected]> +# +# SPDX-License-Identifier: MIT +# + +require recipes-kernel/linux/linux-xenomai.inc + +SRC_URI += "git://source.denx.de/xenomai/linux-dovetail.git;protocol=https;nobranch=1" +SRCREV = "v5.10.61-dovetail" +PV = "5.10.61+" + +S = "${WORKDIR}/git"
Signature · 1 line
2.31.1
PATCH 2/3 Rename local_conf_header section for kernel version
In reply to Jan KiszkaFrom: Jan Kiszka <[email protected]>
Use a more intuitive name. No functional changes.
--- opt-linux-4.19.yml | 4 ++-- opt-linux-4.4.yml | 4 ++-- opt-linux-latest-5.10.yml | 2 +- opt-linux-latest-5.4.yml | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-)
opt-linux-4.19.yml +2 -2
@@ -1,7 +1,7 @@ # # Xenomai Real-Time System # -# Copyright (c) Siemens AG, 2020 +# Copyright (c) Siemens AG, 2020-2021 # # Authors: # Quirin Gylstorff <[email protected]>
@@ -13,5 +13,5 @@ header: version: 10 local_conf_header: - linux-xenomai-latest: | + linux-xenomai-version: | PREFERRED_VERSION_linux-xenomai = "4.19%"
opt-linux-4.4.yml +2 -2
@@ -1,7 +1,7 @@ # # Xenomai Real-Time System # -# Copyright (c) Siemens AG, 2020 +# Copyright (c) Siemens AG, 2020-2021 # # Authors: # Quirin Gylstorff <[email protected]>
@@ -13,5 +13,5 @@ header: version: 10 local_conf_header: - linux-xenomai-latest: | + linux-xenomai-version: | PREFERRED_VERSION_linux-xenomai = "4.4%"
opt-linux-latest-5.10.yml +1 -1
@@ -13,6 +13,6 @@ header: version: 10 local_conf_header: - linux-xenomai-latest: | + linux-xenomai-version: | PREFERRED_VERSION_linux-xenomai = "9999-%" LATEST_GIT_BRANCH = "5.10"
opt-linux-latest-5.4.yml +1 -1
@@ -13,6 +13,6 @@ header: version: 10 local_conf_header: - linux-xenomai-latest: | + linux-xenomai-version: | PREFERRED_VERSION_linux-xenomai = "9999-%" LATEST_GIT_BRANCH = "5.4"
Signature · 1 line
2.31.1
PATCH 3/3 Provide consistent kas files for selecting kernels
In reply to Jan KiszkaFrom: Jan Kiszka <[email protected]>
Add the missing 5.4 and 5.10 release files, provide clearly named latest options for 4.4 and 4.19.
CI needs some refactoring as opt-linux-latest.yml is renamed. Use that chance to make kernel selection more explicit. That should also help moving forward.
--- ci/gitlab-ci-base.yml | 1 - ci/kernel_4_19_xenomai_next.yml | 6 ++++++ ci/xenomai_3_0_x.yml | 2 ++ ci/xenomai_3_1_x.yml | 6 ++++++ opt-linux-5.10.yml | 17 +++++++++++++++++ opt-linux-5.4.yml | 17 +++++++++++++++++ ...inux-latest.yml => opt-linux-latest-4.19.yml | 0 ...linux-latest.yml => opt-linux-latest-4.4.yml | 6 +++--- 8 files changed, 51 insertions(+), 4 deletions(-) create mode 100644 opt-linux-5.10.yml create mode 100644 opt-linux-5.4.yml copy opt-linux-latest.yml => opt-linux-latest-4.19.yml (100%) rename opt-linux-latest.yml => opt-linux-latest-4.4.yml (62%)
ci/gitlab-ci-base.yml +0 -1
@@ -19,7 +19,6 @@ variables: ftp_proxy: "$FTP_PROXY" no_proxy: "$NO_PROXY" XENOMAI_BUILD_OPTION: ":opt-xenomai-next.yml" - LINUX_BUILD_OPTION: ":opt-linux-latest.yml" ISAR_IMAGE: demo-image ISAR_DISTRIBUTION: xenomai-demo LAVA_TESTS_ENABLED: "true"
ci/kernel_4_19_xenomai_next.yml +6 -0
@@ -12,6 +12,7 @@ build-4.19:qemu-amd64: extends: .build:qemu-amd64 variables: + LINUX_BUILD_OPTION: ":opt-linux-latest-4.19.yml" DEPLOY_DIR_EXTENSION: "4.19" lava-test-4.19:qemu-amd64:
@@ -24,6 +25,7 @@ lava-test-4.19:qemu-amd64: build-4.19:qemu-armhf: extends: .build:qemu-armhf variables: + LINUX_BUILD_OPTION: ":opt-linux-latest-4.19.yml" DEPLOY_DIR_EXTENSION: "4.19" lava-test-4.19:qemu-armhf:
@@ -36,6 +38,7 @@ lava-test-4.19:qemu-armhf: build-4.19:qemu-arm64: extends: .build:qemu-arm64 variables: + LINUX_BUILD_OPTION: ":opt-linux-latest-4.19.yml" DEPLOY_DIR_EXTENSION: "4.19" lava-test-4.19:qemu-arm64:
@@ -48,6 +51,7 @@ lava-test-4.19:qemu-arm64: build-4.19:hikey: extends: .build:hikey variables: + LINUX_BUILD_OPTION: ":opt-linux-latest-4.19.yml" DEPLOY_DIR_EXTENSION: "4.19" lava-test-4.19:hikey:
@@ -60,6 +64,7 @@ lava-test-4.19:hikey: build-4.19:beagle-bone-black: extends: .build:beagle-bone-black variables: + LINUX_BUILD_OPTION: ":opt-linux-latest-4.19.yml" DEPLOY_DIR_EXTENSION: "4.19" lava-test-4.19:beagle-bone-black:
@@ -72,6 +77,7 @@ lava-test-4.19:beagle-bone-black: build-4.19:x86-64-efi: extends: .build:x86-64-efi variables: + LINUX_BUILD_OPTION: ":opt-linux-latest-4.19.yml" DEPLOY_DIR_EXTENSION: "4.19" lava-test-4.19:x86-64-efi:
ci/xenomai_3_0_x.yml +2 -0
@@ -15,6 +15,7 @@ build-4.4:beagle-bone-black: extends: .build:beagle-bone-black variables: XENOMAI_BUILD_OPTION: ":opt-xenomai-3.0.x.yml" + LINUX_BUILD_OPTION: ":opt-linux-latest-4.4.yml" DEPLOY_DIR_EXTENSION: "xenomai-3.0.x" lava-test-4.4:beagle-bone-black:
@@ -28,6 +29,7 @@ build-4.4:x86-64-efi: extends: .build:x86-64-efi variables: XENOMAI_BUILD_OPTION: ":opt-xenomai-3.0.x.yml" + LINUX_BUILD_OPTION: ":opt-linux-latest-4.4.yml" DEPLOY_DIR_EXTENSION: "xenomai-3.0.x" lava-test-4.4:x86-64-efi:
ci/xenomai_3_1_x.yml +6 -0
@@ -17,6 +17,7 @@ build-4.19:qemu-amd64: variables: DEPLOY_DIR_EXTENSION: "xenomai-3.1.x" XENOMAI_BUILD_OPTION: ":opt-xenomai-3.1.x.yml" + LINUX_BUILD_OPTION: ":opt-linux-latest-4.19.yml" lava-test-4.19:qemu-amd64: needs: [ "build-4.19:qemu-amd64" ]
@@ -30,6 +31,7 @@ build-4.19:qemu-armhf: variables: DEPLOY_DIR_EXTENSION: "xenomai-3.1.x" XENOMAI_BUILD_OPTION: ":opt-xenomai-3.1.x.yml" + LINUX_BUILD_OPTION: ":opt-linux-latest-4.19.yml" lava-test-4.19:qemu-armhf: needs: [ "build-4.19:qemu-armhf" ]
@@ -43,6 +45,7 @@ build-4.19:qemu-arm64: variables: DEPLOY_DIR_EXTENSION: "xenomai-3.1.x" XENOMAI_BUILD_OPTION: ":opt-xenomai-3.1.x.yml" + LINUX_BUILD_OPTION: ":opt-linux-latest-4.19.yml" lava-test-4.19:qemu-arm64: needs: [ "build-4.19:qemu-arm64" ]
@@ -56,6 +59,7 @@ build-4.19:hikey: variables: DEPLOY_DIR_EXTENSION: "xenomai-3.1.x" XENOMAI_BUILD_OPTION: ":opt-xenomai-3.1.x.yml" + LINUX_BUILD_OPTION: ":opt-linux-latest-4.19.yml" lava-test-4.19:hikey: needs: [ "build-4.19:hikey" ]
@@ -69,6 +73,7 @@ build-4.19:beagle-bone-black: variables: DEPLOY_DIR_EXTENSION: "xenomai-3.1.x" XENOMAI_BUILD_OPTION: ":opt-xenomai-3.1.x.yml" + LINUX_BUILD_OPTION: ":opt-linux-latest-4.19.yml" lava-test-4.19:beagle-bone-black: needs: [ "build-4.19:beagle-bone-black" ]
@@ -82,6 +87,7 @@ build-4.19:x86-64-efi: variables: DEPLOY_DIR_EXTENSION: "xenomai-3.1.x" XENOMAI_BUILD_OPTION: ":opt-xenomai-3.1.x.yml" + LINUX_BUILD_OPTION: ":opt-linux-latest-4.19.yml" lava-test-4.19:x86-64-efi: needs: [ "build-4.19:x86-64-efi" ]
opt-linux-5.10.yml new file +17 -0
@@ -0,0 +1,17 @@ +# +# Xenomai Real-Time System +# +# Copyright (c) Siemens AG, 2021 +# +# Authors: +# Jan Kiszka <[email protected]> +# +# SPDX-License-Identifier: MIT +# + +header: + version: 10 + +local_conf_header: + linux-xenomai-version: | + PREFERRED_VERSION_linux-xenomai = "5.10%"
opt-linux-5.4.yml new file +17 -0
@@ -0,0 +1,17 @@ +# +# Xenomai Real-Time System +# +# Copyright (c) Siemens AG, 2021 +# +# Authors: +# Jan Kiszka <[email protected]> +# +# SPDX-License-Identifier: MIT +# + +header: + version: 10 + +local_conf_header: + linux-xenomai-version: | + PREFERRED_VERSION_linux-xenomai = "5.4%"
opt-linux-latest-4.19.yml renamed from opt-linux-latest.yml +0 -0
opt-linux-latest-4.4.yml renamed from opt-linux-latest.yml +3 -3
@@ -1,10 +1,10 @@ # # Xenomai Real-Time System # -# Copyright (c) Siemens AG, 2019 +# Copyright (c) Siemens AG, 2021 # # Authors: -# Quirin Gylstorff <[email protected]> +# Jan Kiszka <[email protected]> # # SPDX-License-Identifier: MIT #
@@ -15,4 +15,4 @@ header: local_conf_header: linux-xenomai-latest: | PREFERRED_VERSION_linux-xenomai = "9999-%" - LATEST_GIT_BRANCH = "4.19" + LATEST_GIT_BRANCH = "4.4"
Signature · 1 line
2.31.1