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


Jan Kiszka
 

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

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@...>
---
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@...>
+#
+# 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

Join cip-dev@lists.cip-project.org to automatically receive all group messages.