Housekeeping
cover Housekeeping
Version updates and some minor improvement of start-qemu.sh.
Jan
Jan Kiszka (4):
Update to kas 4.0
xenomai: Update to 3.2.4
start-qemu: Pick up architecture from .config.yaml if left out Update Isar revision
Kconfig | 10 +-
README.md | 12 +-
board-beagle-bone-black.yml | 2 +-
board-hikey.yml | 2 +-
board-qemu-amd64.yml | 2 +-
board-qemu-arm64.yml | 2 +-
board-qemu-armhf.yml | 2 +-
board-x86-64-efi.yml | 2 +-
ci/gitlab-ci-base.yml | 2 +-
conf/distro/include/xenomai-version.inc | 6 +-
...es-Fix-image-tarball-by-removing-fir.patch | 51 ++
kas-container | 562 ++++++++++++++++++
kas.yml | 8 +-
opt-ci.yml | 2 +-
opt-compat.yml | 2 +-
opt-debug.yml | 2 +-
opt-linux-4.19.yml | 2 +-
opt-linux-4.4.yml | 2 +-
opt-linux-5.10.yml | 2 +-
opt-linux-5.15.yml | 2 +-
opt-linux-5.4.yml | 2 +-
opt-linux-6.1.yml | 2 +-
opt-linux-latest-4.19.yml | 2 +-
opt-linux-latest-4.4.yml | 2 +-
opt-linux-latest-5.10.yml | 2 +-
opt-linux-latest-5.15.yml | 2 +-
opt-linux-latest-5.4.yml | 2 +-
opt-linux-latest-6.1.yml | 2 +-
opt-linux-latest.yml | 2 +-
opt-xenomai-3.0.x.yml | 2 +-
opt-xenomai-3.1.x.yml | 2 +-
opt-xenomai-3.2.x.yml | 2 +-
opt-xenomai-next.yml | 2 +-
.../{xenomai_3.2.3.bb => xenomai_3.2.4.bb} | 2 +-
start-qemu.sh | 19 +-
35 files changed, 673 insertions(+), 51 deletions(-)
create mode 100644 isar-patches/0001-classes-imagetypes-Fix-image-tarball-by-removing-fir.patch
create mode 100755 kas-container
rename recipes-xenomai/xenomai/{xenomai_3.2.3.bb => xenomai_3.2.4.bb} (90%)Signature · 1 line
2.35.3
PATCH 1/4 Update to kas 4.0
From: Jan Kiszka <[email protected]>
At this chance, embed the kas-container script to make boot-strapping more convenient. This is now the common pattern in Isar layers.
--- README.md | 12 +- board-beagle-bone-black.yml | 2 +- board-hikey.yml | 2 +- board-qemu-amd64.yml | 2 +- board-qemu-arm64.yml | 2 +- board-qemu-armhf.yml | 2 +- board-x86-64-efi.yml | 2 +- ci/gitlab-ci-base.yml | 2 +- kas-container | 562 ++++++++++++++++++++++++++++++++++++ kas.yml | 4 +- opt-ci.yml | 2 +- opt-compat.yml | 2 +- opt-debug.yml | 2 +- opt-linux-4.19.yml | 2 +- opt-linux-4.4.yml | 2 +- opt-linux-5.10.yml | 2 +- opt-linux-5.15.yml | 2 +- opt-linux-5.4.yml | 2 +- opt-linux-6.1.yml | 2 +- opt-linux-latest-4.19.yml | 2 +- opt-linux-latest-4.4.yml | 2 +- opt-linux-latest-5.10.yml | 2 +- opt-linux-latest-5.15.yml | 2 +- opt-linux-latest-5.4.yml | 2 +- opt-linux-latest-6.1.yml | 2 +- opt-linux-latest.yml | 2 +- opt-xenomai-3.0.x.yml | 2 +- opt-xenomai-3.1.x.yml | 2 +- opt-xenomai-3.2.x.yml | 2 +- opt-xenomai-next.yml | 2 +- 30 files changed, 594 insertions(+), 38 deletions(-) create mode 100755 kas-container
README.md +3 -9
@@ -11,18 +11,12 @@ from scratch. ## Building Target Images -Install `kas-container` from the [kas project](https://github.com/siemens/kas): - - wget https://raw.githubusercontent.com/siemens/kas/3.2.3/kas-container -P ~/bin/ - chmod a+x ~/bin/kas-container - -Furthermore, install docker and make sure you have required permissions to -start containers. +Install docker and make sure you have required permissions to start containers. Next invoke the configuration menu to select the desired image configuration and start the build: - kas-container menu + ./kas-container menu If you built, e.g., a QEMU AMD64 image, this can be run using `start-qemu.sh x86`.
@@ -31,7 +25,7 @@ You can also select the desired image configuration on the command line. To build the QEMU AMD64 target with debug options enabled, invoke kas-container like this: - kas-container build kas.yml:board-qemu-amd64.yml:opt-debug.yml + ./kas-container build kas.yml:board-qemu-amd64.yml:opt-debug.yml ### Physical Targets
board-beagle-bone-black.yml +1 -1
@@ -10,6 +10,6 @@ # header: - version: 10 + version: 14 machine: beagle-bone-black
board-hikey.yml +1 -1
@@ -10,6 +10,6 @@ # header: - version: 10 + version: 14 machine: hikey
board-qemu-amd64.yml +1 -1
@@ -10,6 +10,6 @@ # header: - version: 10 + version: 14 machine: qemu-amd64
board-qemu-arm64.yml +1 -1
@@ -10,6 +10,6 @@ # header: - version: 10 + version: 14 machine: qemu-arm64
board-qemu-armhf.yml +1 -1
@@ -10,6 +10,6 @@ # header: - version: 10 + version: 14 machine: qemu-armhf
board-x86-64-efi.yml +1 -1
@@ -10,6 +10,6 @@ # header: - version: 10 + version: 14 machine: x86-64-efi
ci/gitlab-ci-base.yml +1 -1
@@ -23,7 +23,7 @@ variables: BUILD_IDENTIFIER: "xenomai-${XENOMAI_VERSION}_kernel-${KERNEL_VERSION}" default: - image: ghcr.io/siemens/kas/kas-isar:3.2.3 + image: ghcr.io/siemens/kas/kas-isar:4.0 .common-config: before_script:
kas-container new file +562 -0
562 lines not on this page · raw message
kas.yml +2 -2
@@ -10,7 +10,7 @@ # header: - version: 10 + version: 14 build_system: isar
@@ -22,7 +22,7 @@ repos: isar: url: https://github.com/ilbers/isar.git - refspec: 4de8b0d5d68ad46829fa1360eabcf3fc8662a39e + commit: 4de8b0d5d68ad46829fa1360eabcf3fc8662a39e layers: meta:
opt-ci.yml +1 -1
@@ -10,7 +10,7 @@ # header: - version: 10 + version: 14 includes: - opt-debug.yml
opt-compat.yml +1 -1
@@ -10,7 +10,7 @@ # header: - version: 10 + version: 14 local_conf_header: compat: |
opt-debug.yml +1 -1
@@ -10,7 +10,7 @@ # header: - version: 10 + version: 14 # do not apply no debug kernel config fragment
opt-linux-4.19.yml +1 -1
@@ -10,7 +10,7 @@ # header: - version: 10 + version: 14 local_conf_header: linux-xenomai-version: |
opt-linux-4.4.yml +1 -1
@@ -10,7 +10,7 @@ # header: - version: 10 + version: 14 local_conf_header: linux-xenomai-version: |
opt-linux-5.10.yml +1 -1
@@ -10,7 +10,7 @@ # header: - version: 10 + version: 14 local_conf_header: linux-xenomai-version: |
opt-linux-5.15.yml +1 -1
@@ -10,7 +10,7 @@ # header: - version: 10 + version: 14 local_conf_header: linux-xenomai-version: |
opt-linux-5.4.yml +1 -1
@@ -10,7 +10,7 @@ # header: - version: 10 + version: 14 local_conf_header: linux-xenomai-version: |
opt-linux-6.1.yml +1 -1
@@ -10,7 +10,7 @@ # header: - version: 10 + version: 14 local_conf_header: linux-xenomai-version: |
opt-linux-latest-4.19.yml +1 -1
@@ -10,7 +10,7 @@ # header: - version: 10 + version: 14 local_conf_header: linux-xenomai-latest: |
opt-linux-latest-4.4.yml +1 -1
@@ -10,7 +10,7 @@ # header: - version: 10 + version: 14 local_conf_header: linux-xenomai-latest: |
opt-linux-latest-5.10.yml +1 -1
@@ -10,7 +10,7 @@ # header: - version: 10 + version: 14 local_conf_header: linux-xenomai-version: |
opt-linux-latest-5.15.yml +1 -1
@@ -10,7 +10,7 @@ # header: - version: 10 + version: 14 local_conf_header: linux-xenomai-version: |
opt-linux-latest-5.4.yml +1 -1
@@ -10,7 +10,7 @@ # header: - version: 10 + version: 14 local_conf_header: linux-xenomai-version: |
opt-linux-latest-6.1.yml +1 -1
@@ -10,7 +10,7 @@ # header: - version: 10 + version: 14 local_conf_header: linux-xenomai-version: |
opt-linux-latest.yml +1 -1
@@ -10,7 +10,7 @@ # header: - version: 10 + version: 14 local_conf_header: linux-xenomai-version: |
opt-xenomai-3.0.x.yml +1 -1
@@ -10,7 +10,7 @@ # header: - version: 10 + version: 14 local_conf_header: xenomai-3-0-x: |
opt-xenomai-3.1.x.yml +1 -1
@@ -10,7 +10,7 @@ # header: - version: 10 + version: 14 local_conf_header: xenomai-3-1-x: |
opt-xenomai-3.2.x.yml +1 -1
@@ -10,7 +10,7 @@ # header: - version: 10 + version: 14 local_conf_header: xenomai-3-2-x: |
opt-xenomai-next.yml +1 -1
@@ -10,7 +10,7 @@ # header: - version: 10 + version: 14 local_conf_header: xenomai-latest: |
Signature · 1 line
2.35.3
PATCH 2/4 xenomai: Update to 3.2.4
In reply to Jan KiszkaFrom: Jan Kiszka <[email protected]>
This allows to lift the default kernel to 6.1. Also update the Kconfig menu accordingly.
---
Kconfig | 10 +++++-----
conf/distro/include/xenomai-version.inc | 6 +++---
.../xenomai/{xenomai_3.2.3.bb => xenomai_3.2.4.bb} | 2 +-
3 files changed, 9 insertions(+), 9 deletions(-)
rename recipes-xenomai/xenomai/{xenomai_3.2.3.bb => xenomai_3.2.4.bb} (90%)Kconfig +5 -5
@@ -87,7 +87,7 @@ config KAS_INCLUDE_XENOMAI choice prompt "Kernel version" - default KERNEL_5_10 + default KERNEL_6_1 config KERNEL_LATEST bool "Head of latest Dovetail branch"
@@ -95,19 +95,19 @@ config KERNEL_LATEST config KERNEL_6_1_LATEST bool "Head of 6.1 Dovetail branch" - depends on XENOMAI_LATEST + depends on XENOMAI_LATEST || XENOMAI_3_2_LATEST || XENOMAI_3_2 config KERNEL_6_1 bool "Latest 6.1 Dovetail version" - depends on XENOMAI_LATEST + depends on XENOMAI_LATEST || 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 + depends on XENOMAI_LATEST || XENOMAI_3_2_LATEST || XENOMAI_3_2 config KERNEL_5_15 bool "Latest 5.15 Dovetail version" - depends on XENOMAI_LATEST || XENOMAI_3_2_LATEST + depends on XENOMAI_LATEST || XENOMAI_3_2_LATEST || XENOMAI_3_2 config KERNEL_5_10_LATEST bool "Head of 5.10 Dovetail branch"
conf/distro/include/xenomai-version.inc +3 -3
@@ -9,7 +9,7 @@ # SPDX-License-Identifier: MIT # -XENOMAI_DEFAULT_KERNEL_VERSION = "5.15%" +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_KERNEL_VERSION = "4.4%"
@@ -17,8 +17,8 @@ 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_KERNEL_VERSION = "5.4%" -XENOMAI_3_2_VERSION_LIST = "3.2 3.2% 3.2.% 3.2.3 stable-3.2.x" -XENOMAI_3_2_KERNEL_VERSION = "5.10%" +XENOMAI_3_2_VERSION_LIST = "3.2 3.2% 3.2.% 3.2.4 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 # XENOMAI_3_0_KERNEL_VERSION. Same for the other XENOMAI_*_VERSION_LIST.
recipes-xenomai/xenomai/xenomai_3.2.4.bb renamed from recipes-xenomai/xenomai/xenomai_3.2.3.bb +1 -1
@@ -1,7 +1,7 @@ # # Xenomai Real-Time System # -# Copyright (c) Siemens AG, 2020-2021 +# Copyright (c) Siemens AG, 2020-2023 # # Authors: # Jan Kiszka <[email protected]>
Signature · 1 line
2.35.3
PATCH 4/4 Update Isar revision
In reply to Jan KiszkaFrom: Jan Kiszka <[email protected]>
No adjustments needed on our side, just one Isar fix for an upstream regression.
--- ...es-Fix-image-tarball-by-removing-fir.patch | 51 +++++++++++++++++++ kas.yml | 6 ++- 2 files changed, 56 insertions(+), 1 deletion(-) create mode 100644 isar-patches/0001-classes-imagetypes-Fix-image-tarball-by-removing-fir.patch
isar-patches/0001-classes-imagetypes-Fix-image-tarball-by-removing-fir.patch new file +51 -0
@@ -0,0 +1,51 @@ +From d8969e01e6be7d933f2e259a9e5bbe521636d623 Mon Sep 17 00:00:00 2001 +From: Quirin Gylstorff <[email protected]> +Date: Tue, 26 Sep 2023 18:21:54 +0200 +Subject: [PATCH] classes/imagetypes: Fix image tarball by removing first level + directory + +Commit be7f0f('meta/classes/sdk.bbclass: add --transform in TAR_OPTIONS') +broke the usage of rootfs tarballs directly, e.g. as NFS root in LAVA, +by adding rootfs as the first level directory. + +The patch adds the variable TAR_TRANSFORM to adjust the tarball structure +as necessary. The default replaces `rootfs` with `.` which restores the old +layout in the tarball. + +Signed-off-by: Quirin Gylstorff <[email protected]> +--- + meta/classes/imagetypes.bbclass | 4 ++-- + meta/classes/sdk.bbclass | 2 +- + 2 files changed, 3 insertions(+), 3 deletions(-) + +diff --git a/meta/classes/imagetypes.bbclass b/meta/classes/imagetypes.bbclass +index 6b612386..a3be0a1d 100644 +--- a/meta/classes/imagetypes.bbclass ++++ b/meta/classes/imagetypes.bbclass +@@ -5,8 +5,8 @@ + + #image type: tar + IMAGER_INSTALL:tar = "tar" +-TAR_OPTIONS ?= "" +- ++TAR_TRANSFORM = "--transform='s|rootfs|.|'" ++TAR_OPTIONS:append = " ${TAR_TRANSFORM}" + IMAGE_CMD:tar() { + ${SUDO_CHROOT} tar ${TAR_OPTIONS} -cvSf \ + ${IMAGE_FILE_CHROOT} --one-file-system -C ${PP} rootfs +diff --git a/meta/classes/sdk.bbclass b/meta/classes/sdk.bbclass +index 3d650a18..216213ac 100644 +--- a/meta/classes/sdk.bbclass ++++ b/meta/classes/sdk.bbclass +@@ -53,7 +53,7 @@ ROOTFS_MANIFEST_DEPLOY_DIR:class-sdk = "${DEPLOY_DIR_SDKCHROOT}" + ROOTFS_DPKGSTATUS_DEPLOY_DIR:class-sdk = "${DEPLOY_DIR_SDKCHROOT}" + + IMAGE_FSTYPES:class-sdk = "${SDK_FORMATS}" +-TAR_OPTIONS:append:class-sdk = " --transform="s|rootfs|${IMAGE_FULLNAME}|"" ++TAR_TRANSFORM:class-sdk = " --transform='s|rootfs|${IMAGE_FULLNAME}|'" + + # bitbake dependencies + SDKDEPENDS += "sdk-files ${SDK_INSTALL}" +-- +2.35.3 +
kas.yml +5 -1
@@ -22,9 +22,13 @@ repos: isar: url: https://github.com/ilbers/isar.git - commit: 4de8b0d5d68ad46829fa1360eabcf3fc8662a39e + commit: 670bf5ce31000f24e2ab6cefa7c20a87a2d3879f layers: meta: + patches: + tar-revert: + repo: xenomai + path: isar-patches/0001-classes-imagetypes-Fix-image-tarball-by-removing-fir.patch bblayers_conf_header: standard: |
Signature · 1 line
2.35.3
PATCH 3/4 start-qemu: Pick up architecture from .config.yaml if left out
In reply to Jan KiszkaFrom: Jan Kiszka <[email protected]>
This allows to simply call "./start-qemu.sh" after a menu-based build.
--- start-qemu.sh | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-)
start-qemu.sh +15 -4
@@ -12,7 +12,7 @@ usage() { - echo "Usage: $0 ARCHITECTURE [QEMU_OPTIONS]" + echo "Usage: $0 [ARCHITECTURE [QEMU_OPTIONS]]" echo -e "\nSet QEMU_PATH environment variable to use a locally " \ "built QEMU version" exit 1
@@ -22,7 +22,20 @@ if [ -n "${QEMU_PATH}" ]; then QEMU_PATH="${QEMU_PATH}/" fi -case "$1" in +if [ -n "$1" ]; then + arch="$1" + shift 1 +else + if grep -s -q "TARGET_QEMU_AMD64: true" .config.yaml; then + arch=amd64 + elif grep -s -q "TARGET_QEMU_ARM64: true" .config.yaml; then + arch=arm64 + elif grep -s -q "TARGET_QEMU_ARM: true" .config.yaml; then + arch=arm + fi +fi + +case "$arch" in x86|x86_64|amd64) DISTRO_ARCH=amd64 QEMU=qemu-system-x86_64
@@ -80,8 +93,6 @@ if [ -z "${DISPLAY}" ]; then QEMU_EXTRA_ARGS="${QEMU_EXTRA_ARGS} -nographic" fi -shift 1 - ${QEMU_PATH}${QEMU} \ -drive file=${IMAGE_PREFIX}.ext4,discard=unmap,if=none,id=disk,format=raw \ -m 1G -serial mon:stdio -netdev user,id=net \
Signature · 1 line
2.35.3
PATCH v2 4/4 Update Isar revision
In reply to Jan KiszkaFrom: Jan Kiszka <[email protected]>
No adjustments needed on our side.
---
Patch from v1 is now upstream.
kas.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
kas.yml +1 -1
@@ -22,7 +22,7 @@ repos: isar: url: https://github.com/ilbers/isar.git - commit: 4de8b0d5d68ad46829fa1360eabcf3fc8662a39e + commit: 216f0721265fcfe965ac48b51a0128d612d89bf4 layers: meta:
Signature · 1 line
2.35.3