Skip to contentSkip to conversation

Housekeeping

PATCH New Jan Kiszka 1 participant 6 messages Sep 28, 2023 – Sep 29, 2023

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

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
author
#1 lore raw

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
index 638768b..03fcacb 100644
@@ -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
index 2da2977..cac4ef4 100644
@@ -10,6 +10,6 @@
 #
 
 header:
-  version: 10
+  version: 14
 
 machine: beagle-bone-black
board-hikey.yml +1 -1
index 761782e..390a538 100644
@@ -10,6 +10,6 @@
 #
 
 header:
-  version: 10
+  version: 14
 
 machine: hikey
board-qemu-amd64.yml +1 -1
index 100bed8..dab9c88 100644
@@ -10,6 +10,6 @@
 #
 
 header:
-  version: 10
+  version: 14
 
 machine: qemu-amd64
board-qemu-arm64.yml +1 -1
index 07e142d..b0535fe 100644
@@ -10,6 +10,6 @@
 #
 
 header:
-  version: 10
+  version: 14
 
 machine: qemu-arm64
board-qemu-armhf.yml +1 -1
index 889dd0d..00942a2 100644
@@ -10,6 +10,6 @@
 #
 
 header:
-  version: 10
+  version: 14
 
 machine: qemu-armhf
board-x86-64-efi.yml +1 -1
index 225b7f8..f4a33e8 100644
@@ -10,6 +10,6 @@
 #
 
 header:
-  version: 10
+  version: 14
 
 machine: x86-64-efi
ci/gitlab-ci-base.yml +1 -1
index 2dbb82d..8f36ece 100644
@@ -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
index 6020c62..26ea415 100644
@@ -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
index 80a3970..431b070 100644
@@ -10,7 +10,7 @@
 #
 
 header:
-  version: 10
+  version: 14
   includes:
     - opt-debug.yml
 
opt-compat.yml +1 -1
index ac120fa..734066a 100644
@@ -10,7 +10,7 @@
 #
 
 header:
-  version: 10
+  version: 14
 
 local_conf_header:
   compat: |
opt-debug.yml +1 -1
index d967b83..a8399d9 100644
@@ -10,7 +10,7 @@
 #
 
 header:
-  version: 10
+  version: 14
 
 # do not apply no debug kernel config fragment
 
opt-linux-4.19.yml +1 -1
index d5fa5ef..960292d 100644
@@ -10,7 +10,7 @@
 #
 
 header:
-  version: 10
+  version: 14
 
 local_conf_header:
   linux-xenomai-version: |
opt-linux-4.4.yml +1 -1
index 2b9dd14..e455a38 100644
@@ -10,7 +10,7 @@
 #
 
 header:
-  version: 10
+  version: 14
 
 local_conf_header:
   linux-xenomai-version: |
opt-linux-5.10.yml +1 -1
index ae3b30d..ec9dab3 100644
@@ -10,7 +10,7 @@
 #
 
 header:
-  version: 10
+  version: 14
 
 local_conf_header:
   linux-xenomai-version: |
opt-linux-5.15.yml +1 -1
index c7447e9..bc0b9d2 100644
@@ -10,7 +10,7 @@
 #
 
 header:
-  version: 10
+  version: 14
 
 local_conf_header:
   linux-xenomai-version: |
opt-linux-5.4.yml +1 -1
index 2fb586e..1b43394 100644
@@ -10,7 +10,7 @@
 #
 
 header:
-  version: 10
+  version: 14
 
 local_conf_header:
   linux-xenomai-version: |
opt-linux-6.1.yml +1 -1
index fb0df24..e723454 100644
@@ -10,7 +10,7 @@
 #
 
 header:
-  version: 10
+  version: 14
 
 local_conf_header:
   linux-xenomai-version: |
opt-linux-latest-4.19.yml +1 -1
index 78f4a43..c1a3040 100644
@@ -10,7 +10,7 @@
 #
 
 header:
-  version: 10
+  version: 14
 
 local_conf_header:
   linux-xenomai-latest: |
opt-linux-latest-4.4.yml +1 -1
index 113ba76..d4864b7 100644
@@ -10,7 +10,7 @@
 #
 
 header:
-  version: 10
+  version: 14
 
 local_conf_header:
   linux-xenomai-latest: |
opt-linux-latest-5.10.yml +1 -1
index a6bb221..e9ddd7f 100644
@@ -10,7 +10,7 @@
 #
 
 header:
-  version: 10
+  version: 14
 
 local_conf_header:
   linux-xenomai-version: |
opt-linux-latest-5.15.yml +1 -1
index 02e1a61..288836f 100644
@@ -10,7 +10,7 @@
 #
 
 header:
-  version: 10
+  version: 14
 
 local_conf_header:
   linux-xenomai-version: |
opt-linux-latest-5.4.yml +1 -1
index d3164e3..2d15e06 100644
@@ -10,7 +10,7 @@
 #
 
 header:
-  version: 10
+  version: 14
 
 local_conf_header:
   linux-xenomai-version: |
opt-linux-latest-6.1.yml +1 -1
index c5eecd8..3e9ef29 100644
@@ -10,7 +10,7 @@
 #
 
 header:
-  version: 10
+  version: 14
 
 local_conf_header:
   linux-xenomai-version: |
opt-linux-latest.yml +1 -1
index 4f4dd3b..aab2342 100644
@@ -10,7 +10,7 @@
 #
 
 header:
-  version: 10
+  version: 14
 
 local_conf_header:
   linux-xenomai-version: |
opt-xenomai-3.0.x.yml +1 -1
index 4559de8..0962373 100644
@@ -10,7 +10,7 @@
 #
 
 header:
-  version: 10
+  version: 14
 
 local_conf_header:
   xenomai-3-0-x: |
opt-xenomai-3.1.x.yml +1 -1
index 2479e96..937b5f9 100644
@@ -10,7 +10,7 @@
 #
 
 header:
-  version: 10
+  version: 14
 
 local_conf_header:
   xenomai-3-1-x: |
opt-xenomai-3.2.x.yml +1 -1
index 1abcef9..401efa2 100644
@@ -10,7 +10,7 @@
 #
 
 header:
-  version: 10
+  version: 14
 
 local_conf_header:
   xenomai-3-2-x: |
opt-xenomai-next.yml +1 -1
index ba0b2da..fd2fbab 100644
@@ -10,7 +10,7 @@
 #
 
 header:
-  version: 10
+  version: 14
 
 local_conf_header:
   xenomai-latest: |
Signature · 1 line
2.35.3
author
#2 lore raw

PATCH 2/4 xenomai: Update to 3.2.4

In reply to Jan Kiszka

From: 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
index 953634e..3cc4e5b 100644
@@ -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
index a8d40ed..754a738 100644
@@ -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
similarity index 90%
rename from recipes-xenomai/xenomai/xenomai_3.2.3.bb
rename to recipes-xenomai/xenomai/xenomai_3.2.4.bb
index f32cd06..0cd1cd9 100644
@@ -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
author
#3 lore raw

PATCH 3/4 start-qemu: Pick up architecture from .config.yaml if left out

In reply to Jan Kiszka

From: 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
index 51f71a2..751d20a 100755
@@ -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
author
#4 lore raw

PATCH 4/4 Update Isar revision

In reply to Jan Kiszka

From: 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
new file mode 100644
index 0000000..c1e0782
@@ -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
index 26ea415..69d4265 100644
@@ -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
author
#5 lore raw

PATCH v2 4/4 Update Isar revision

From: 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
index 26ea415..1b2e857 100644
@@ -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