public inbox for cip-dev@lists.cip-project.org
 help / color / mirror / Atom feed
* [isar-cip-core][PATCH 0/2] Add 5.10 recipe, fix free choice of kernel versions
@ 2021-12-06  6:41 Jan Kiszka
  2021-12-06  6:41 ` [isar-cip-core][PATCH 1/2] Add kas option to selection 4.19 explicitly Jan Kiszka
  2021-12-06  6:41 ` [isar-cip-core][PATCH 2/2] linux-cip: Add recipe, option file and menu entry for 5.10.83-cip1 Jan Kiszka
  0 siblings, 2 replies; 3+ messages in thread
From: Jan Kiszka @ 2021-12-06  6:41 UTC (permalink / raw)
  To: cip-dev

See patches for details.

Jan

Jan Kiszka (2):
  Add kas option to selection 4.19 explicitly
  linux-cip: Add recipe, option file and menu entry for 5.10.83-cip1

 Kconfig                                               | 11 ++++++++---
 conf/distro/cip-core-bullseye.conf                    |  2 +-
 .../distro/cip-core-bullseye.conf => kas/opt/4.19.yml | 10 ++++++----
 .../distro/cip-core-bullseye.conf => kas/opt/5.10.yml | 10 ++++++----
 .../linux/linux-cip_5.10.83-cip1.bb                   |  6 ++----
 5 files changed, 23 insertions(+), 16 deletions(-)
 copy conf/distro/cip-core-bullseye.conf => kas/opt/4.19.yml (50%)
 copy conf/distro/cip-core-bullseye.conf => kas/opt/5.10.yml (50%)
 copy conf/distro/cip-core-bullseye.conf => recipes-kernel/linux/linux-cip_5.10.83-cip1.bb (50%)

-- 
2.31.1



^ permalink raw reply	[flat|nested] 3+ messages in thread

* [isar-cip-core][PATCH 1/2] Add kas option to selection 4.19 explicitly
  2021-12-06  6:41 [isar-cip-core][PATCH 0/2] Add 5.10 recipe, fix free choice of kernel versions Jan Kiszka
@ 2021-12-06  6:41 ` Jan Kiszka
  2021-12-06  6:41 ` [isar-cip-core][PATCH 2/2] linux-cip: Add recipe, option file and menu entry for 5.10.83-cip1 Jan Kiszka
  1 sibling, 0 replies; 3+ messages in thread
From: Jan Kiszka @ 2021-12-06  6:41 UTC (permalink / raw)
  To: cip-dev

From: Jan Kiszka <jan.kiszka@siemens.com>

The distro configs provide a default choice of the kernel version.
Therefore, we cannot rely on 4.19 being chosen when not providing any
kas option file.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
 Kconfig          |  4 ++--
 kas/opt/4.19.yml | 18 ++++++++++++++++++
 2 files changed, 20 insertions(+), 2 deletions(-)
 create mode 100644 kas/opt/4.19.yml

diff --git a/Kconfig b/Kconfig
index e5ce257..ca67f30 100644
--- a/Kconfig
+++ b/Kconfig
@@ -61,8 +61,8 @@ endchoice
 
 config KAS_INCLUDE_KERNEL
 	string
-	default "kas/opt/4.4.yml"
-	depends on KERNEL_4_4
+	default "kas/opt/4.4.yml" if KERNEL_4_4
+	default "kas/opt/4.19.yml" if KERNEL_4_19
 
 config KERNEL_RT
 	bool "Real-time CIP kernel"
diff --git a/kas/opt/4.19.yml b/kas/opt/4.19.yml
new file mode 100644
index 0000000..5ff1683
--- /dev/null
+++ b/kas/opt/4.19.yml
@@ -0,0 +1,18 @@
+#
+# CIP Core, generic profile
+#
+# Copyright (c) Siemens AG, 2021
+#
+# Authors:
+#  Jan Kiszka <jan.kiszka@siemens.com>
+#
+# SPDX-License-Identifier: MIT
+#
+
+header:
+  version: 10
+
+local_conf_header:
+  kernel-version: |
+    PREFERRED_VERSION_linux-cip = "4.19.%"
+    PREFERRED_VERSION_linux-cip-rt = "4.19.%"
-- 
2.31.1



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [isar-cip-core][PATCH 2/2] linux-cip: Add recipe, option file and menu entry for 5.10.83-cip1
  2021-12-06  6:41 [isar-cip-core][PATCH 0/2] Add 5.10 recipe, fix free choice of kernel versions Jan Kiszka
  2021-12-06  6:41 ` [isar-cip-core][PATCH 1/2] Add kas option to selection 4.19 explicitly Jan Kiszka
@ 2021-12-06  6:41 ` Jan Kiszka
  1 sibling, 0 replies; 3+ messages in thread
From: Jan Kiszka @ 2021-12-06  6:41 UTC (permalink / raw)
  To: cip-dev

From: Jan Kiszka <jan.kiszka@siemens.com>

No -rt kernel released so far, thus we need to confine the choice when
5.10 is selected.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
 Kconfig                                                |  7 ++++++-
 conf/distro/cip-core-bullseye.conf                     |  2 +-
 conf/distro/cip-core-bullseye.conf => kas/opt/5.10.yml | 10 ++++++----
 .../linux/linux-cip_5.10.83-cip1.bb                    |  6 ++----
 4 files changed, 15 insertions(+), 10 deletions(-)
 copy conf/distro/cip-core-bullseye.conf => kas/opt/5.10.yml (50%)
 copy conf/distro/cip-core-bullseye.conf => recipes-kernel/linux/linux-cip_5.10.83-cip1.bb (50%)

diff --git a/Kconfig b/Kconfig
index ca67f30..e03ab50 100644
--- a/Kconfig
+++ b/Kconfig
@@ -49,7 +49,7 @@ comment "Kernel options"
 
 choice
 	prompt "CIP kernel version"
-	default KERNEL_4_19
+	default KERNEL_5_10
 
 config KERNEL_4_4
 	bool "Kernel 4.4.x-cip"
@@ -57,15 +57,20 @@ config KERNEL_4_4
 config KERNEL_4_19
 	bool "Kernel 4.19.x-cip"
 
+config KERNEL_5_10
+	bool "Kernel 5.10.x-cip"
+
 endchoice
 
 config KAS_INCLUDE_KERNEL
 	string
 	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
 
 config KERNEL_RT
 	bool "Real-time CIP kernel"
+	depends on !KERNEL_5_10
 
 config KAS_INCLUDE_KERNEL_RT
 	string
diff --git a/conf/distro/cip-core-bullseye.conf b/conf/distro/cip-core-bullseye.conf
index 38014b4..a0790d5 100644
--- a/conf/distro/cip-core-bullseye.conf
+++ b/conf/distro/cip-core-bullseye.conf
@@ -12,5 +12,5 @@
 require conf/distro/debian-bullseye.conf
 require cip-core-common.inc
 
-PREFERRED_VERSION_linux-cip ?= "4.19.%"
+PREFERRED_VERSION_linux-cip ?= "5.10.%"
 PREFERRED_VERSION_linux-cip-rt ?= "4.19.%"
diff --git a/conf/distro/cip-core-bullseye.conf b/kas/opt/5.10.yml
similarity index 50%
copy from conf/distro/cip-core-bullseye.conf
copy to kas/opt/5.10.yml
index 38014b4..612b7f9 100644
--- a/conf/distro/cip-core-bullseye.conf
+++ b/kas/opt/5.10.yml
@@ -9,8 +9,10 @@
 # SPDX-License-Identifier: MIT
 #
 
-require conf/distro/debian-bullseye.conf
-require cip-core-common.inc
+header:
+  version: 10
 
-PREFERRED_VERSION_linux-cip ?= "4.19.%"
-PREFERRED_VERSION_linux-cip-rt ?= "4.19.%"
+local_conf_header:
+  kernel-version: |
+    PREFERRED_VERSION_linux-cip = "5.10.%"
+    PREFERRED_VERSION_linux-cip-rt = "5.10.%"
diff --git a/conf/distro/cip-core-bullseye.conf b/recipes-kernel/linux/linux-cip_5.10.83-cip1.bb
similarity index 50%
copy from conf/distro/cip-core-bullseye.conf
copy to recipes-kernel/linux/linux-cip_5.10.83-cip1.bb
index 38014b4..a89f568 100644
--- a/conf/distro/cip-core-bullseye.conf
+++ b/recipes-kernel/linux/linux-cip_5.10.83-cip1.bb
@@ -9,8 +9,6 @@
 # SPDX-License-Identifier: MIT
 #
 
-require conf/distro/debian-bullseye.conf
-require cip-core-common.inc
+require linux-cip-common.inc
 
-PREFERRED_VERSION_linux-cip ?= "4.19.%"
-PREFERRED_VERSION_linux-cip-rt ?= "4.19.%"
+SRC_URI[sha256sum] = "85af8f809b2505c6434266d6658d977d62d383889b3a4f9968b2764794108d4f"
-- 
2.31.1



^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-12-06  6:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-06  6:41 [isar-cip-core][PATCH 0/2] Add 5.10 recipe, fix free choice of kernel versions Jan Kiszka
2021-12-06  6:41 ` [isar-cip-core][PATCH 1/2] Add kas option to selection 4.19 explicitly Jan Kiszka
2021-12-06  6:41 ` [isar-cip-core][PATCH 2/2] linux-cip: Add recipe, option file and menu entry for 5.10.83-cip1 Jan Kiszka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox