[meta-arm,4/4] arm-bsp/n1sdp: Add support for Kernel PREEMPT_RT with linux-linaro-arm-rt

Submitted by Diego Sueiro on Nov. 3, 2020, 2:11 p.m. | Patch ID: 178141

Details

Message ID 4c706fbc60d5524f6c07d6629bc243d31cd5f30f.1604412597.git.diego.sueiro@arm.com
State New
Headers show

Commit Message

Diego Sueiro Nov. 3, 2020, 2:11 p.m.
Add N1SDP settings and configurations for the kernel with PREEMPT_RT support
using the linux-linaro-arm-rt recipe.

Also, change linux-linaro-arm-n1sdp.inc to enable sharing commom patches for
N1SDP when building linux-linaro-arm or linux-linaro-arm-rt.

Change-Id: I101b2e6ffefa4f908389110048778aaf5226d5d0
Issue-Id: SCM-1653
Signed-off-by: Diego Sueiro <diego.sueiro@arm.com>

---
 .../bsp/arm-platforms/n1sdp/n1sdp-preempt-rt.scc               |  6 ++++++
 meta-arm-bsp/recipes-kernel/linux/linux-linaro-arm-n1sdp.inc   | 10 +++++++++-
 2 files changed, 15 insertions(+), 1 deletion(-)
 create mode 100644 meta-arm-bsp/recipes-kernel/linux/arm-platforms-kmeta/bsp/arm-platforms/n1sdp/n1sdp-preempt-rt.scc

-- 
2.7.4
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#1324): https://lists.yoctoproject.org/g/meta-arm/message/1324
Mute This Topic: https://lists.yoctoproject.org/mt/78006826/1003190
Group Owner: meta-arm+owner@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/meta-arm/unsub [mhalstead@linuxfoundation.org]
-=-=-=-=-=-=-=-=-=-=-=-

Patch hide | download patch | download mbox

diff --git a/meta-arm-bsp/recipes-kernel/linux/arm-platforms-kmeta/bsp/arm-platforms/n1sdp/n1sdp-preempt-rt.scc b/meta-arm-bsp/recipes-kernel/linux/arm-platforms-kmeta/bsp/arm-platforms/n1sdp/n1sdp-preempt-rt.scc
new file mode 100644
index 0000000..414732c
--- /dev/null
+++ b/meta-arm-bsp/recipes-kernel/linux/arm-platforms-kmeta/bsp/arm-platforms/n1sdp/n1sdp-preempt-rt.scc
@@ -0,0 +1,6 @@ 
+define KMACHINE n1sdp
+define KTYPE preempt-rt
+define KARCH arm64
+
+kconf non-hardware ktypes/developer/developer.cfg
+kconf non-hardware ktypes/preempt-rt/preempt-rt.cfg
diff --git a/meta-arm-bsp/recipes-kernel/linux/linux-linaro-arm-n1sdp.inc b/meta-arm-bsp/recipes-kernel/linux/linux-linaro-arm-n1sdp.inc
index 1a6f0fe..820ce71 100644
--- a/meta-arm-bsp/recipes-kernel/linux/linux-linaro-arm-n1sdp.inc
+++ b/meta-arm-bsp/recipes-kernel/linux/linux-linaro-arm-n1sdp.inc
@@ -1,4 +1,4 @@ 
-FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-5.4:"
+FILESEXTRAPATHS_prepend := "${THISDIR}/linux-linaro-arm-5.4:"
 
 SRC_URI_append = " \
     file://0001-TMP-iommu-arm-smmu-v3-Ignore-IOPF-capabilities.patch \
@@ -21,3 +21,11 @@  KBUILD_DEFCONFIG = "defconfig"
 KCONFIG_MODE = "--alldefconfig"
 
 COMPATIBLE_MACHINE = "n1sdp"
+
+# RT kernel machine description
+FILESEXTRAPATHS_prepend_pn-linux-linaro-arm-rt := "${THISDIR}:"
+SRC_URI_append_pn-linux-linaro-arm-rt = " file://arm-platforms-kmeta;type=kmeta;name=arm-platforms-kmeta;destsuffix=arm-platforms-kmeta"
+
+# Since we use the intree defconfig and the preempt-rt turns off some configs
+# do_kernel_configcheck will display warnings. So, lets disable it.
+KCONF_AUDIT_LEVEL_pn-linux-linaro-arm-rt = "0"