mirror of
https://github.com/feyisay07/meta-bsp-imx8mm.git
synced 2026-09-24 06:10:13 +01:00
linux:rt: Update RT patch
Signed-off-by: Valentin Raevsky <valentin@compulab.co.il> Signed-off-by: Kirill Kapranov <kirill.kapranov@compulab.co.il>
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
# How to
|
||||
|
||||
* Update the `conf/local.conf`
|
||||
```
|
||||
DISTRO_FEATURES_append = " linux-rt "
|
||||
```
|
||||
@@ -0,0 +1,3 @@
|
||||
SRC_URI_append = " \
|
||||
file://0100-rt-kernel-Add-the-real-time-patch.patch \
|
||||
"
|
||||
+28258
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,12 @@
|
||||
FILESEXTRAPATHS_prepend := "${THISDIR}/compulab/imx8mm:"
|
||||
|
||||
require compulab/imx8mm.inc
|
||||
|
||||
do_configure_prepend() {
|
||||
# Merge common defconfig with specific fraggment to get specific defconfig
|
||||
local CONFDIR=arch/arm64/configs
|
||||
cd ${S}
|
||||
scripts/kconfig/merge_config.sh -O ${CONFDIR}/ -m ${CONFDIR}/${MACHINE}_defconfig ${CONFDIR}/rt.config
|
||||
mv ${CONFDIR}/.config ${CONFDIR}/${MACHINE}_defconfig
|
||||
cd -
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
# Just an empty file
|
||||
@@ -0,0 +1,3 @@
|
||||
RT = "${@bb.utils.contains('DISTRO_FEATURES', 'linux-rt', '-rt', '', d)}"
|
||||
|
||||
require linux-compulab${RT}.inc
|
||||
@@ -1,22 +0,0 @@
|
||||
include rt.inc
|
||||
|
||||
python (){
|
||||
import re
|
||||
|
||||
if bb.utils.contains('IMAGE_FEATURES', 'realtime-kernel', False, True, d):
|
||||
return
|
||||
|
||||
PV = d.getVar("PV")
|
||||
major_dot_minor_dot_fix = re.sub(r'\+.*$', '', PV)
|
||||
|
||||
rt_patch_uri = d.getVar('RT_PATCH_URI')
|
||||
if re.search(r'patch-' + major_dot_minor_dot_fix + '-rt', rt_patch_uri):
|
||||
d.appendVar("SRC_URI"," " + rt_patch_uri + " ")
|
||||
else:
|
||||
patch_name = re.search(r'^.*(patch-[\.0-9]*-rt[\.0-9]*\.patch).*$',rt_patch_uri)
|
||||
if patch_name:
|
||||
bb.error("RT patch: " + patch_name.group(1))
|
||||
bb.error("Kernel revision to build: " + major_dot_minor_dot_fix)
|
||||
bb.error("Please find an appropriate patch on https://mirrors.edge.kernel.org/pub/linux/kernel/projects/rt")
|
||||
#bb.fatal("RT patch revision doesn't match the kernel revision we are about to build")
|
||||
}
|
||||
@@ -1,2 +0,0 @@
|
||||
RT_PATCH_URI = "https://mirrors.edge.kernel.org/pub/linux/kernel/projects/rt/5.10/older/patch-5.10.35-rt39.patch.xz;sha256sum=3e1d3531173d5bb276935eaec016ef3c3c0f8f4fcc1fc418d192cc10824ff80d"
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
#;DISABLE prompt Realtime kernel support [no]
|
||||
#;prompt Realtime kernel support [no]
|
||||
|
||||
IMAGE_FEATURES += " realtime-kernel "
|
||||
DISTRO_FEATURES:append = " linux-rt "
|
||||
|
||||
Reference in New Issue
Block a user