[meta-freescale] [meta-fsl-arm][v3 04/12] linux-imx: Add kernel loadable graphics module support

Lauren Post lauren.post at freescale.com
Fri Jul 24 08:40:44 PDT 2015


Add support for graphics loadable modules for mixing
different graphics versions with older kernels.

This is only supported with the v5 graphics and starting
the 3.10.53 kernel.

Signed-off-by: Lauren Post <lauren.post at freescale.com>
---
 recipes-kernel/linux/linux-imx_3.14.38.bb |   10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/recipes-kernel/linux/linux-imx_3.14.38.bb b/recipes-kernel/linux/linux-imx_3.14.38.bb
index 58661eb..ceb3579 100644
--- a/recipes-kernel/linux/linux-imx_3.14.38.bb
+++ b/recipes-kernel/linux/linux-imx_3.14.38.bb
@@ -19,4 +19,14 @@ SRC_URI += " \
     file://0004-mmc-sdhci-esdhc-imx-Fixup-runtime-PM-conditions-duri.patch \
 "
 
+# Allow support for graphics driver to run as loadable module to use different
+# graphics version then one in this kernel.  Default is built in module but
+# this setting allows switch to loadable module
+do_configure_append() {
+    if [ "${USE_GPU_VIV_MODULE}" = "1" ]; then
+        sed -i s/CONFIG_MXC_GPU_VIV=y/CONFIG_MXC_GPU_VIV=n/g ${B}/.config
+        sed -i s/CONFIG_MXC_GPU_VIV=y/CONFIG_MXC_GPU_VIV=n/g ${B}/../defconfig
+    fi
+}
+
 COMPATIBLE_MACHINE = "(mx6|mx7)"
-- 
1.7.9.5



More information about the meta-freescale mailing list