From 213caf399fad39633872d38e8c4e32c9940d9954 Mon Sep 17 00:00:00 2001 From: Philippe Schenker Date: Thu, 14 Jul 2022 17:46:06 +0200 Subject: linux-toradex: rename 5.4-2.3.x to 5.15-2.0.x Do no changes in this commit else than renaming the recipe. Related-to: ELB-4597 Signed-off-by: Philippe Schenker --- ...-imx_sc_thermal-prevent-BUG-with-rt-patch.patch | 53 +++++++++++++++++++ .../0002-ddr-perf-prevent-BUG-with-rt-patch.patch | 34 +++++++++++++ .../preempt-rt-less-latency.cfg | 14 +++++ .../preempt-rt-less-latency.scc | 4 ++ .../linux/linux-toradex-5.15-2.0.x/preempt-rt.cfg | 5 ++ .../linux/linux-toradex-5.15-2.0.x/preempt-rt.scc | 4 ++ ...-imx_sc_thermal-prevent-BUG-with-rt-patch.patch | 53 ------------------- .../0002-ddr-perf-prevent-BUG-with-rt-patch.patch | 34 ------------- .../preempt-rt-less-latency.cfg | 14 ----- .../preempt-rt-less-latency.scc | 4 -- .../linux/linux-toradex-5.4-2.3.x/preempt-rt.cfg | 5 -- .../linux/linux-toradex-5.4-2.3.x/preempt-rt.scc | 4 -- recipes-kernel/linux/linux-toradex_5.15-2.0.x.bb | 59 ++++++++++++++++++++++ recipes-kernel/linux/linux-toradex_5.4-2.3.x.bb | 59 ---------------------- 14 files changed, 173 insertions(+), 173 deletions(-) create mode 100644 recipes-kernel/linux/linux-toradex-5.15-2.0.x/0001-imx_sc_thermal-prevent-BUG-with-rt-patch.patch create mode 100644 recipes-kernel/linux/linux-toradex-5.15-2.0.x/0002-ddr-perf-prevent-BUG-with-rt-patch.patch create mode 100644 recipes-kernel/linux/linux-toradex-5.15-2.0.x/preempt-rt-less-latency.cfg create mode 100644 recipes-kernel/linux/linux-toradex-5.15-2.0.x/preempt-rt-less-latency.scc create mode 100644 recipes-kernel/linux/linux-toradex-5.15-2.0.x/preempt-rt.cfg create mode 100644 recipes-kernel/linux/linux-toradex-5.15-2.0.x/preempt-rt.scc delete mode 100644 recipes-kernel/linux/linux-toradex-5.4-2.3.x/0001-imx_sc_thermal-prevent-BUG-with-rt-patch.patch delete mode 100644 recipes-kernel/linux/linux-toradex-5.4-2.3.x/0002-ddr-perf-prevent-BUG-with-rt-patch.patch delete mode 100644 recipes-kernel/linux/linux-toradex-5.4-2.3.x/preempt-rt-less-latency.cfg delete mode 100644 recipes-kernel/linux/linux-toradex-5.4-2.3.x/preempt-rt-less-latency.scc delete mode 100644 recipes-kernel/linux/linux-toradex-5.4-2.3.x/preempt-rt.cfg delete mode 100644 recipes-kernel/linux/linux-toradex-5.4-2.3.x/preempt-rt.scc create mode 100644 recipes-kernel/linux/linux-toradex_5.15-2.0.x.bb delete mode 100644 recipes-kernel/linux/linux-toradex_5.4-2.3.x.bb (limited to 'recipes-kernel/linux') diff --git a/recipes-kernel/linux/linux-toradex-5.15-2.0.x/0001-imx_sc_thermal-prevent-BUG-with-rt-patch.patch b/recipes-kernel/linux/linux-toradex-5.15-2.0.x/0001-imx_sc_thermal-prevent-BUG-with-rt-patch.patch new file mode 100644 index 0000000..4dc1dae --- /dev/null +++ b/recipes-kernel/linux/linux-toradex-5.15-2.0.x/0001-imx_sc_thermal-prevent-BUG-with-rt-patch.patch @@ -0,0 +1,53 @@ +From 4e6114a23a21db5741375070add8ccc16697db67 Mon Sep 17 00:00:00 2001 +From: Max Krummenacher +Date: Tue, 24 Sep 2019 14:15:50 +0200 +Subject: [PATCH 1/2] imx_sc_thermal: prevent BUG() with rt patch + +With the RT patch applied the kernel prints a BUG backtrace during boot: + +| BUG: using smp_processor_id() in preemptible [00000000] code: swapper/0/1 + +Prevent this by avoiding the smp_processor_id call and just check both +CPU clusters which may be there in a i.MX8 series SoC. + +Signed-off-by: Max Krummenacher +--- + drivers/thermal/imx_sc_thermal.c | 13 +++++++------ + 1 file changed, 7 insertions(+), 6 deletions(-) + +diff --git a/drivers/thermal/imx_sc_thermal.c b/drivers/thermal/imx_sc_thermal.c +index 8c5049020cd8..51a6c73315ba 100644 +--- a/drivers/thermal/imx_sc_thermal.c ++++ b/drivers/thermal/imx_sc_thermal.c +@@ -58,6 +58,7 @@ sc_ipc_t tsens_ipcHandle; + static int imx_sc_tsens_get_temp(void *data, int *temp) + { + struct imx_sc_sensor *sensor = data; ++ int hw_id; + sc_err_t sciErr; + int16_t celsius; + int8_t tenths; +@@ -65,14 +66,14 @@ static int imx_sc_tsens_get_temp(void *data, int *temp) + sciErr = sc_misc_get_temp(tsens_ipcHandle, sensor->hw_id, + SC_C_TEMP, &celsius, &tenths); + /* +- * if the SS power domain is down, read temp will fail, so +- * we can return the temp of CPU domain instead. ++ * if the SS power domain is down, read temp will fail, ++ * try the temp of the potentially two CPU domains instead. + */ +- if (sciErr != SC_ERR_NONE) { +- sciErr = sc_misc_get_temp(tsens_ipcHandle, +- sensor_hw_id[topology_physical_package_id(smp_processor_id())], ++ hw_id = 0; ++ while (sciErr != SC_ERR_NONE) { ++ sciErr = sc_misc_get_temp(tsens_ipcHandle, sensor_hw_id[hw_id++], + SC_C_TEMP, &celsius, &tenths); +- if (sciErr != SC_ERR_NONE) { ++ if (hw_id > 1) { + pr_err("read temp sensor:%d failed\n", sensor->hw_id); + return -EINVAL; + } +-- +2.20.1 + diff --git a/recipes-kernel/linux/linux-toradex-5.15-2.0.x/0002-ddr-perf-prevent-BUG-with-rt-patch.patch b/recipes-kernel/linux/linux-toradex-5.15-2.0.x/0002-ddr-perf-prevent-BUG-with-rt-patch.patch new file mode 100644 index 0000000..9296878 --- /dev/null +++ b/recipes-kernel/linux/linux-toradex-5.15-2.0.x/0002-ddr-perf-prevent-BUG-with-rt-patch.patch @@ -0,0 +1,34 @@ +From 066e66d9222f70d3e21a7df077ac6b623881c9cc Mon Sep 17 00:00:00 2001 +From: Max Krummenacher +Date: Tue, 24 Sep 2019 14:19:24 +0200 +Subject: [PATCH 2/2] ddr-perf: prevent BUG() with rt patch + +With the RT patch applied the kernel prints a BUG backtrace during boot: + +| BUG: using smp_processor_id() in preemptible [00000000] code: swapper/0/1 + +Prevent this by replacing the smp_processor_id() call with a get_cpu() .. +put_cpu() construct. + +Signed-off-by: Max Krummenacher +--- + drivers/perf/ddr-perf.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/drivers/perf/ddr-perf.c b/drivers/perf/ddr-perf.c +index 73fe52ee8b95..744a6454d6a4 100644 +--- a/drivers/perf/ddr-perf.c ++++ b/drivers/perf/ddr-perf.c +@@ -470,7 +470,8 @@ static int ddr_perf_probe(struct platform_device *pdev) + + pmu->devtype = (struct fsl_ddr_devtype_data *)of_id->data; + +- cpumask_set_cpu(smp_processor_id(), &pmu->cpu); ++ cpumask_set_cpu(get_cpu(), &pmu->cpu); ++ put_cpu(); + ret = perf_pmu_register(&(pmu->pmu), name, -1); + if (ret) + goto ddr_perf_err; +-- +2.20.1 + diff --git a/recipes-kernel/linux/linux-toradex-5.15-2.0.x/preempt-rt-less-latency.cfg b/recipes-kernel/linux/linux-toradex-5.15-2.0.x/preempt-rt-less-latency.cfg new file mode 100644 index 0000000..a9c88bd --- /dev/null +++ b/recipes-kernel/linux/linux-toradex-5.15-2.0.x/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-5.15-2.0.x/preempt-rt-less-latency.scc b/recipes-kernel/linux/linux-toradex-5.15-2.0.x/preempt-rt-less-latency.scc new file mode 100644 index 0000000..edd1519 --- /dev/null +++ b/recipes-kernel/linux/linux-toradex-5.15-2.0.x/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-5.15-2.0.x/preempt-rt.cfg b/recipes-kernel/linux/linux-toradex-5.15-2.0.x/preempt-rt.cfg new file mode 100644 index 0000000..f76e447 --- /dev/null +++ b/recipes-kernel/linux/linux-toradex-5.15-2.0.x/preempt-rt.cfg @@ -0,0 +1,5 @@ +CONFIG_EXPERT=y +# 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-5.15-2.0.x/preempt-rt.scc b/recipes-kernel/linux/linux-toradex-5.15-2.0.x/preempt-rt.scc new file mode 100644 index 0000000..82d27dc --- /dev/null +++ b/recipes-kernel/linux/linux-toradex-5.15-2.0.x/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 diff --git a/recipes-kernel/linux/linux-toradex-5.4-2.3.x/0001-imx_sc_thermal-prevent-BUG-with-rt-patch.patch b/recipes-kernel/linux/linux-toradex-5.4-2.3.x/0001-imx_sc_thermal-prevent-BUG-with-rt-patch.patch deleted file mode 100644 index 4dc1dae..0000000 --- a/recipes-kernel/linux/linux-toradex-5.4-2.3.x/0001-imx_sc_thermal-prevent-BUG-with-rt-patch.patch +++ /dev/null @@ -1,53 +0,0 @@ -From 4e6114a23a21db5741375070add8ccc16697db67 Mon Sep 17 00:00:00 2001 -From: Max Krummenacher -Date: Tue, 24 Sep 2019 14:15:50 +0200 -Subject: [PATCH 1/2] imx_sc_thermal: prevent BUG() with rt patch - -With the RT patch applied the kernel prints a BUG backtrace during boot: - -| BUG: using smp_processor_id() in preemptible [00000000] code: swapper/0/1 - -Prevent this by avoiding the smp_processor_id call and just check both -CPU clusters which may be there in a i.MX8 series SoC. - -Signed-off-by: Max Krummenacher ---- - drivers/thermal/imx_sc_thermal.c | 13 +++++++------ - 1 file changed, 7 insertions(+), 6 deletions(-) - -diff --git a/drivers/thermal/imx_sc_thermal.c b/drivers/thermal/imx_sc_thermal.c -index 8c5049020cd8..51a6c73315ba 100644 ---- a/drivers/thermal/imx_sc_thermal.c -+++ b/drivers/thermal/imx_sc_thermal.c -@@ -58,6 +58,7 @@ sc_ipc_t tsens_ipcHandle; - static int imx_sc_tsens_get_temp(void *data, int *temp) - { - struct imx_sc_sensor *sensor = data; -+ int hw_id; - sc_err_t sciErr; - int16_t celsius; - int8_t tenths; -@@ -65,14 +66,14 @@ static int imx_sc_tsens_get_temp(void *data, int *temp) - sciErr = sc_misc_get_temp(tsens_ipcHandle, sensor->hw_id, - SC_C_TEMP, &celsius, &tenths); - /* -- * if the SS power domain is down, read temp will fail, so -- * we can return the temp of CPU domain instead. -+ * if the SS power domain is down, read temp will fail, -+ * try the temp of the potentially two CPU domains instead. - */ -- if (sciErr != SC_ERR_NONE) { -- sciErr = sc_misc_get_temp(tsens_ipcHandle, -- sensor_hw_id[topology_physical_package_id(smp_processor_id())], -+ hw_id = 0; -+ while (sciErr != SC_ERR_NONE) { -+ sciErr = sc_misc_get_temp(tsens_ipcHandle, sensor_hw_id[hw_id++], - SC_C_TEMP, &celsius, &tenths); -- if (sciErr != SC_ERR_NONE) { -+ if (hw_id > 1) { - pr_err("read temp sensor:%d failed\n", sensor->hw_id); - return -EINVAL; - } --- -2.20.1 - diff --git a/recipes-kernel/linux/linux-toradex-5.4-2.3.x/0002-ddr-perf-prevent-BUG-with-rt-patch.patch b/recipes-kernel/linux/linux-toradex-5.4-2.3.x/0002-ddr-perf-prevent-BUG-with-rt-patch.patch deleted file mode 100644 index 9296878..0000000 --- a/recipes-kernel/linux/linux-toradex-5.4-2.3.x/0002-ddr-perf-prevent-BUG-with-rt-patch.patch +++ /dev/null @@ -1,34 +0,0 @@ -From 066e66d9222f70d3e21a7df077ac6b623881c9cc Mon Sep 17 00:00:00 2001 -From: Max Krummenacher -Date: Tue, 24 Sep 2019 14:19:24 +0200 -Subject: [PATCH 2/2] ddr-perf: prevent BUG() with rt patch - -With the RT patch applied the kernel prints a BUG backtrace during boot: - -| BUG: using smp_processor_id() in preemptible [00000000] code: swapper/0/1 - -Prevent this by replacing the smp_processor_id() call with a get_cpu() .. -put_cpu() construct. - -Signed-off-by: Max Krummenacher ---- - drivers/perf/ddr-perf.c | 3 ++- - 1 file changed, 2 insertions(+), 1 deletion(-) - -diff --git a/drivers/perf/ddr-perf.c b/drivers/perf/ddr-perf.c -index 73fe52ee8b95..744a6454d6a4 100644 ---- a/drivers/perf/ddr-perf.c -+++ b/drivers/perf/ddr-perf.c -@@ -470,7 +470,8 @@ static int ddr_perf_probe(struct platform_device *pdev) - - pmu->devtype = (struct fsl_ddr_devtype_data *)of_id->data; - -- cpumask_set_cpu(smp_processor_id(), &pmu->cpu); -+ cpumask_set_cpu(get_cpu(), &pmu->cpu); -+ put_cpu(); - ret = perf_pmu_register(&(pmu->pmu), name, -1); - if (ret) - goto ddr_perf_err; --- -2.20.1 - diff --git a/recipes-kernel/linux/linux-toradex-5.4-2.3.x/preempt-rt-less-latency.cfg b/recipes-kernel/linux/linux-toradex-5.4-2.3.x/preempt-rt-less-latency.cfg deleted file mode 100644 index a9c88bd..0000000 --- a/recipes-kernel/linux/linux-toradex-5.4-2.3.x/preempt-rt-less-latency.cfg +++ /dev/null @@ -1,14 +0,0 @@ -# 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-5.4-2.3.x/preempt-rt-less-latency.scc b/recipes-kernel/linux/linux-toradex-5.4-2.3.x/preempt-rt-less-latency.scc deleted file mode 100644 index edd1519..0000000 --- a/recipes-kernel/linux/linux-toradex-5.4-2.3.x/preempt-rt-less-latency.scc +++ /dev/null @@ -1,4 +0,0 @@ -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-5.4-2.3.x/preempt-rt.cfg b/recipes-kernel/linux/linux-toradex-5.4-2.3.x/preempt-rt.cfg deleted file mode 100644 index f76e447..0000000 --- a/recipes-kernel/linux/linux-toradex-5.4-2.3.x/preempt-rt.cfg +++ /dev/null @@ -1,5 +0,0 @@ -CONFIG_EXPERT=y -# 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-5.4-2.3.x/preempt-rt.scc b/recipes-kernel/linux/linux-toradex-5.4-2.3.x/preempt-rt.scc deleted file mode 100644 index 82d27dc..0000000 --- a/recipes-kernel/linux/linux-toradex-5.4-2.3.x/preempt-rt.scc +++ /dev/null @@ -1,4 +0,0 @@ -define KFEATURE_DESCRIPTION "Enable Features needed by preempt-rt" -define KFEATURE_COMPATIBILITY board - -kconf non-hardware preempt-rt.cfg diff --git a/recipes-kernel/linux/linux-toradex_5.15-2.0.x.bb b/recipes-kernel/linux/linux-toradex_5.15-2.0.x.bb new file mode 100644 index 0000000..c2a04d3 --- /dev/null +++ b/recipes-kernel/linux/linux-toradex_5.15-2.0.x.bb @@ -0,0 +1,59 @@ +FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}-${PV}:" +require recipes-kernel/linux/linux-imx.inc + +SUMMARY = "Linux kernel for Toradex Freescale i.MX based modules" +SUMMARY:preempt-rt = "Real-Time Linux kernel for Toradex Freescale i.MX based modules" + +LIC_FILES_CHKSUM = "file://COPYING;md5=bbea815ee2795b2f4230826c0c6b8814" + +SRC_URI = " \ + git://git.toradex.com/linux-toradex.git;protocol=https;branch=${SRCBRANCH};name=machine \ +" + +# Load USB functions configurable through configfs (CONFIG_USB_CONFIGFS) +KERNEL_MODULE_AUTOLOAD += "${@bb.utils.contains('COMBINED_FEATURES', 'usbgadget', ' libcomposite', '',d)}" + +inherit toradex-kernel-localversion +LINUX_VERSION = "5.4.193" +# skip, as with use-head-next LINUX_VERSION might be set wrongly +KERNEL_VERSION_SANITY_SKIP:use-head-next = "1" + +# Make sure to override LOCALVERSION in linux-imx.inc +LOCALVERSION = "-${TDX_VERSION}" + +SRCBRANCH = "toradex_5.4-2.3.x-imx" +SRCREV_machine = "5a24da287b86482b0d13352d3a12fa16c81a03f0" +SRCREV_machine:use-head-next = "${AUTOREV}" + +DEPENDS += "lzop-native bc-native" +COMPATIBLE_MACHINE = "(mx6-nxp-bsp|mx7-nxp-bsp|mx8-nxp-bsp)" + +KBUILD_DEFCONFIG:apalis-imx6 ?= "apalis_imx6_defconfig" +KBUILD_DEFCONFIG:colibri-imx6 ?= "colibri_imx6_defconfig" +KBUILD_DEFCONFIG:colibri-imx6ull ?= "colibri-imx6ull_defconfig" +KBUILD_DEFCONFIG:colibri-imx6ull-emmc ?= "colibri-imx6ull_defconfig" +KBUILD_DEFCONFIG:mx7-nxp-bsp ?= "colibri_imx7_defconfig" +KBUILD_DEFCONFIG:mx8-nxp-bsp ?= "toradex_defconfig" + +export DTC_FLAGS = "-@" + +############################################################################### +# Apply the RT patch and change the configuration to use PREMPT_RT when the +# preempt-rt override is set. +############################################################################### + +# patches get moved into the 'older' directory when superseeded, so provide +# both possible storage locations. +MIRRORS:append:preempt-rt = "${KERNELORG_MIRROR}/linux/kernel/projects/rt/5.4/older/ ${KERNELORG_MIRROR}/linux/kernel/projects/rt/5.4/" +SRC_URI:append:preempt-rt = " \ + ${KERNELORG_MIRROR}/linux/kernel/projects/rt/5.4/older/patch-5.4.193-rt74.patch.xz;name=rt-patch \ + file://preempt-rt.scc \ + file://preempt-rt-less-latency.scc \ +" +# This patches do currently not apply but are likely needed or we get +# runtime bugs. +# file://0001-imx_sc_thermal-prevent-BUG-with-rt-patch.patch \ +# file://0002-ddr-perf-prevent-BUG-with-rt-patch.patch \ +# + +SRC_URI[rt-patch.sha256sum] = "821d7bf3015d90e86eace5869d5596eacc9e4b5bd80644d40207817c4b8cc4be" diff --git a/recipes-kernel/linux/linux-toradex_5.4-2.3.x.bb b/recipes-kernel/linux/linux-toradex_5.4-2.3.x.bb deleted file mode 100644 index c2a04d3..0000000 --- a/recipes-kernel/linux/linux-toradex_5.4-2.3.x.bb +++ /dev/null @@ -1,59 +0,0 @@ -FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}-${PV}:" -require recipes-kernel/linux/linux-imx.inc - -SUMMARY = "Linux kernel for Toradex Freescale i.MX based modules" -SUMMARY:preempt-rt = "Real-Time Linux kernel for Toradex Freescale i.MX based modules" - -LIC_FILES_CHKSUM = "file://COPYING;md5=bbea815ee2795b2f4230826c0c6b8814" - -SRC_URI = " \ - git://git.toradex.com/linux-toradex.git;protocol=https;branch=${SRCBRANCH};name=machine \ -" - -# Load USB functions configurable through configfs (CONFIG_USB_CONFIGFS) -KERNEL_MODULE_AUTOLOAD += "${@bb.utils.contains('COMBINED_FEATURES', 'usbgadget', ' libcomposite', '',d)}" - -inherit toradex-kernel-localversion -LINUX_VERSION = "5.4.193" -# skip, as with use-head-next LINUX_VERSION might be set wrongly -KERNEL_VERSION_SANITY_SKIP:use-head-next = "1" - -# Make sure to override LOCALVERSION in linux-imx.inc -LOCALVERSION = "-${TDX_VERSION}" - -SRCBRANCH = "toradex_5.4-2.3.x-imx" -SRCREV_machine = "5a24da287b86482b0d13352d3a12fa16c81a03f0" -SRCREV_machine:use-head-next = "${AUTOREV}" - -DEPENDS += "lzop-native bc-native" -COMPATIBLE_MACHINE = "(mx6-nxp-bsp|mx7-nxp-bsp|mx8-nxp-bsp)" - -KBUILD_DEFCONFIG:apalis-imx6 ?= "apalis_imx6_defconfig" -KBUILD_DEFCONFIG:colibri-imx6 ?= "colibri_imx6_defconfig" -KBUILD_DEFCONFIG:colibri-imx6ull ?= "colibri-imx6ull_defconfig" -KBUILD_DEFCONFIG:colibri-imx6ull-emmc ?= "colibri-imx6ull_defconfig" -KBUILD_DEFCONFIG:mx7-nxp-bsp ?= "colibri_imx7_defconfig" -KBUILD_DEFCONFIG:mx8-nxp-bsp ?= "toradex_defconfig" - -export DTC_FLAGS = "-@" - -############################################################################### -# Apply the RT patch and change the configuration to use PREMPT_RT when the -# preempt-rt override is set. -############################################################################### - -# patches get moved into the 'older' directory when superseeded, so provide -# both possible storage locations. -MIRRORS:append:preempt-rt = "${KERNELORG_MIRROR}/linux/kernel/projects/rt/5.4/older/ ${KERNELORG_MIRROR}/linux/kernel/projects/rt/5.4/" -SRC_URI:append:preempt-rt = " \ - ${KERNELORG_MIRROR}/linux/kernel/projects/rt/5.4/older/patch-5.4.193-rt74.patch.xz;name=rt-patch \ - file://preempt-rt.scc \ - file://preempt-rt-less-latency.scc \ -" -# This patches do currently not apply but are likely needed or we get -# runtime bugs. -# file://0001-imx_sc_thermal-prevent-BUG-with-rt-patch.patch \ -# file://0002-ddr-perf-prevent-BUG-with-rt-patch.patch \ -# - -SRC_URI[rt-patch.sha256sum] = "821d7bf3015d90e86eace5869d5596eacc9e4b5bd80644d40207817c4b8cc4be" -- cgit v1.2.3