Skip to contentSkip to conversation

linux-cip: Switch to 6.1-cip release

PATCH New Jan Kiszka 1 participant 1 message Jul 18, 2023

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH 1/1 linux-cip: Switch to 6.1-cip release

From: Jan Kiszka <[email protected]>

We have now an official CIP kernel for 6.1, so switch over from the mainline recipe. Also switch bookworm builds to 6.1-cip by default.

---
 Kconfig                                       |  9 ++++-----
 conf/distro/cip-core-bookworm.conf            |  4 ++--
 kas/opt/{6.1-mainline.yml => 6.1.yml}         |  3 ++-
 .../linux/linux-cip-rt_6.1.38-cip1-rt1.bb     | 12 ++++++++++++
 recipes-kernel/linux/linux-cip_6.1.38-cip1.bb | 12 ++++++++++++
 recipes-kernel/linux/linux-mainline_6.1.15.bb | 19 -------------------
 6 files changed, 32 insertions(+), 27 deletions(-)
 rename kas/opt/{6.1-mainline.yml => 6.1.yml} (72%)
 create mode 100644 recipes-kernel/linux/linux-cip-rt_6.1.38-cip1-rt1.bb
 create mode 100644 recipes-kernel/linux/linux-cip_6.1.38-cip1.bb
 delete mode 100644 recipes-kernel/linux/linux-mainline_6.1.15.bb
Kconfig +4 -5
index 94e807a1..ec49631e 100644
@@ -97,8 +97,8 @@ config KERNEL_4_19
 config KERNEL_5_10
 	bool "Kernel 5.10.x-cip"
 
-config KERNEL_6_1_MAINLINE
-	bool "Kernel 6.1.x-mainline"
+config KERNEL_6_1
+	bool "Kernel 6.1.x-cip"
 
 endchoice
 
@@ -107,12 +107,11 @@ config KAS_INCLUDE_KERNEL
 	default "kas/opt/4.4.yml" if KERNEL_4_4
 	default "kas/opt/4.19.yml" if KERNEL_4_19
 	default "kas/opt/5.10.yml" if KERNEL_5_10
-	default "kas/opt/6.1-mainline.yml" if KERNEL_6_1_MAINLINE
+	default "kas/opt/6.1.yml" if KERNEL_6_1
 
 config KERNEL_RT
 	bool "Real-time CIP kernel"
 	depends on !ARCH_RISCV64
-	depends on !KERNEL_6_1_MAINLINE
 
 config KAS_INCLUDE_KERNEL_RT
 	string
@@ -187,7 +186,7 @@ if IMAGE_FLASH && !KERNEL_4_4 && !KERNEL_4_19
 
 config IMAGE_SWUPDATE
 	bool "SWUpdate support for root partition"
-	depends on TARGET_QEMU_AMD64 || TARGET_SIMATIC_IPC227E || TARGET_QEMU_ARM64 || TARGET_QEMU_ARM || TARGET_BBB || ( TARGET_QEMU_RISCV64 && KERNEL_6_1_MAINLINE ) || TARGET_HIHOPE_RZG2M
+	depends on TARGET_QEMU_AMD64 || TARGET_SIMATIC_IPC227E || TARGET_QEMU_ARM64 || TARGET_QEMU_ARM || TARGET_BBB || ( TARGET_QEMU_RISCV64 && KERNEL_6_1 ) || TARGET_HIHOPE_RZG2M
 
 config IMAGE_SECURE_BOOT
 	bool "Secure boot support"
conf/distro/cip-core-bookworm.conf +2 -2
index adafc92e..9bcf5593 100644
@@ -13,5 +13,5 @@ require conf/distro/debian-bookworm.conf
 require cip-core-common.inc
 
 PREFERRED_VERSION_swupdate ?= "2023.05%"
-PREFERRED_VERSION_linux-cip ?= "5.10.%"
-PREFERRED_VERSION_linux-cip-rt ?= "5.10.%"
+PREFERRED_VERSION_linux-cip ?= "6.1.%"
+PREFERRED_VERSION_linux-cip-rt ?= "6.1.%"
kas/opt/6.1.yml renamed from kas/opt/6.1-mainline.yml +2 -1
similarity index 72%
rename from kas/opt/6.1-mainline.yml
rename to kas/opt/6.1.yml
index 0dcf3364..ac12adff 100644
@@ -14,4 +14,5 @@ header:
 
 local_conf_header:
   kernel-version: |
-    KERNEL_NAME = "mainline"
+    PREFERRED_VERSION_linux-cip = "6.1.%"
+    PREFERRED_VERSION_linux-cip-rt = "6.1.%"
recipes-kernel/linux/linux-cip-rt_6.1.38-cip1-rt1.bb new file +12 -0
new file mode 100644
index 00000000..a1ba50a9
@@ -0,0 +1,12 @@
+#
+# CIP Core, generic profile
+#
+# Copyright (c) Siemens AG, 2023
+#
+# SPDX-License-Identifier: MIT
+
+require linux-cip-common.inc
+
+KERNEL_DEFCONFIG_VERSION ?= "6.1.y-cip"
+
+SRC_URI[sha256sum] = "5e4dd386aa8a4cce341b8efeec76320feed53770ead67c838ffb321edd47b157"
recipes-kernel/linux/linux-cip_6.1.38-cip1.bb new file +12 -0
new file mode 100644
index 00000000..417de504
@@ -0,0 +1,12 @@
+#
+# CIP Core, generic profile
+#
+# Copyright (c) Siemens AG, 2023
+#
+# SPDX-License-Identifier: MIT
+
+require linux-cip-common.inc
+
+KERNEL_DEFCONFIG_VERSION ?= "6.1.y-cip"
+
+SRC_URI[sha256sum] = "188c2ee35a13058858d71aa9121ad9f75c3834126bd93d019ab1687ce0027aa7"
recipes-kernel/linux/linux-mainline_6.1.15.bb deleted +0 -19
deleted file mode 100644
index 9b45f28e..00000000
@@ -1,19 +0,0 @@
-# CIP Core, generic profile
-#
-# Copyright (c) Siemens AG, 2018-2023
-#
-# SPDX-License-Identifier: MIT
-
-require recipes-kernel/linux/linux-custom.inc
-require recipes-kernel/linux/cip-kernel-config.inc
-
-ARCHIVE_VERSION = "${@ d.getVar('PV')[:-2] if d.getVar('PV').endswith('.0') else d.getVar('PV') }"
-
-KERNEL_DEFCONFIG_VERSION ?= "6.1.y-cip"
-
-SRC_URI += " \
-    https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-${ARCHIVE_VERSION}.tar.xz"
-
-SRC_URI[sha256sum] = "2c16dfe2168a2e64ac0d55a12d625ebfb963818bb48b60c1868c7c460644c4fd"
-
-S = "${WORKDIR}/linux-${ARCHIVE_VERSION}"
Signature · 1 line
2.35.3