diff mbox series

[isar-cip-core,1/2] Add kas option to selection 4.19 explicitly

Message ID 324d5cb55674ab805ae4f190d339824439a54a5f.1638772896.git.jan.kiszka@siemens.com (mailing list archive)
State Handled Elsewhere
Headers show
Series Add 5.10 recipe, fix free choice of kernel versions | expand

Commit Message

Jan Kiszka Dec. 6, 2021, 6:41 a.m. UTC
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 mbox series

Patch

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.%"