From 8c80d93720e79cf6d6c4668211585a834d24822e Mon Sep 17 00:00:00 2001 From: Max Krummenacher Date: Fri, 1 Mar 2024 10:56:05 +0100 Subject: linux-toradex-ti: add variant building with rt patch applied If preempt-rt is in overrides apply the RT patch on top of our regular kernel tree and configure the kernel for PREEMPT-RT. Related-to: ELB-5243 Signed-off-by: Max Krummenacher (cherry picked from commit f4a2c0c228eaeb15c399e7341068da3f7d375d10) --- .../linux/linux-toradex-ti-6.1/preempt-rt-less-latency.cfg | 14 ++++++++++++++ .../linux/linux-toradex-ti-6.1/preempt-rt-less-latency.scc | 4 ++++ recipes-kernel/linux/linux-toradex-ti-6.1/preempt-rt.cfg | 6 ++++++ recipes-kernel/linux/linux-toradex-ti-6.1/preempt-rt.scc | 4 ++++ 4 files changed, 28 insertions(+) create mode 100644 recipes-kernel/linux/linux-toradex-ti-6.1/preempt-rt-less-latency.cfg create mode 100644 recipes-kernel/linux/linux-toradex-ti-6.1/preempt-rt-less-latency.scc create mode 100644 recipes-kernel/linux/linux-toradex-ti-6.1/preempt-rt.cfg create mode 100644 recipes-kernel/linux/linux-toradex-ti-6.1/preempt-rt.scc (limited to 'recipes-kernel/linux/linux-toradex-ti-6.1') diff --git a/recipes-kernel/linux/linux-toradex-ti-6.1/preempt-rt-less-latency.cfg b/recipes-kernel/linux/linux-toradex-ti-6.1/preempt-rt-less-latency.cfg new file mode 100644 index 0000000..a9c88bd --- /dev/null +++ b/recipes-kernel/linux/linux-toradex-ti-6.1/preempt-rt-less-latency.cfg @@ -0,0 +1,14 @@ +# CONFIG_PM_DEBUG is not set +# CONFIG_6LOWPAN_DEBUGFS is not set +# CONFIG_BT_DEBUGFS is not set +# CONFIG_ATH9K_DEBUGFS is not set +# CONFIG_ATH9K_HTC_DEBUGFS is not set +# CONFIG_ATH10K_DEBUGFS is not set +# CONFIG_RTLWIFI_DEBUG is not set +# CONFIG_IEEE802154_AT86RF230_DEBUGFS is not set +# CONFIG_DYNAMIC_DEBUG is not set +# CONFIG_DETECT_HUNG_TASK is not set +# CONFIG_SCHEDSTATS is not set +# CONFIG_SCHED_DEBUG is not set +# CONFIG_BLK_DEV_IO_TRACE is not set +# CONFIG_CORESIGHT is not set diff --git a/recipes-kernel/linux/linux-toradex-ti-6.1/preempt-rt-less-latency.scc b/recipes-kernel/linux/linux-toradex-ti-6.1/preempt-rt-less-latency.scc new file mode 100644 index 0000000..edd1519 --- /dev/null +++ b/recipes-kernel/linux/linux-toradex-ti-6.1/preempt-rt-less-latency.scc @@ -0,0 +1,4 @@ +define KFEATURE_DESCRIPTION "Disable configs that could lead to preempt-rt latency" +define KFEATURE_COMPATIBILITY board + +kconf non-hardware preempt-rt-less-latency.cfg diff --git a/recipes-kernel/linux/linux-toradex-ti-6.1/preempt-rt.cfg b/recipes-kernel/linux/linux-toradex-ti-6.1/preempt-rt.cfg new file mode 100644 index 0000000..17b06b1 --- /dev/null +++ b/recipes-kernel/linux/linux-toradex-ti-6.1/preempt-rt.cfg @@ -0,0 +1,6 @@ +CONFIG_EXPERT=y +# CONFIG_KVM is not set +# CONFIG_PREEMPT_NONE is not set +# CONFIG_PREEMPT_VOLUNTARY is not set +# CONFIG_PREEMPT is not set +CONFIG_PREEMPT_RT=y diff --git a/recipes-kernel/linux/linux-toradex-ti-6.1/preempt-rt.scc b/recipes-kernel/linux/linux-toradex-ti-6.1/preempt-rt.scc new file mode 100644 index 0000000..82d27dc --- /dev/null +++ b/recipes-kernel/linux/linux-toradex-ti-6.1/preempt-rt.scc @@ -0,0 +1,4 @@ +define KFEATURE_DESCRIPTION "Enable Features needed by preempt-rt" +define KFEATURE_COMPATIBILITY board + +kconf non-hardware preempt-rt.cfg -- cgit v1.2.3