From 8cbf07b4cb022ef90140d18aaefabf01c4d45331 Mon Sep 17 00:00:00 2001 From: Otavio Salvador Date: Tue, 11 Aug 2015 17:32:47 -0300 Subject: Enable Vivante kernel driver dynamic provider The linux-imx.inc based kernels now can dynamically provide the Vivante kernel driver and satisfy the runtime dependency added for the Vivante GPU user space libraries. The beauty of this solution is that it makes ease for 3rd party kernel to reuse the same infrastructure and use the external module easily. Signed-off-by: Otavio Salvador --- conf/machine/include/imx-base.inc | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'conf/machine') diff --git a/conf/machine/include/imx-base.inc b/conf/machine/include/imx-base.inc index f54e9b7..e0a67c7 100644 --- a/conf/machine/include/imx-base.inc +++ b/conf/machine/include/imx-base.inc @@ -90,6 +90,18 @@ MACHINE_GSTREAMER_1_0_PLUGIN ?= "" MACHINE_GSTREAMER_1_0_PLUGIN_mx6q ?= "gstreamer1.0-plugins-imx-meta" MACHINE_GSTREAMER_1_0_PLUGIN_mx6dl ?= "gstreamer1.0-plugins-imx-meta" +# Determines if the SoC has support for Vivante kernel driver +SOC_HAS_VIVANTE_KERNEL_DRIVER_SUPPORT = "0" +SOC_HAS_VIVANTE_KERNEL_DRIVER_SUPPORT_mx6q = "1" +SOC_HAS_VIVANTE_KERNEL_DRIVER_SUPPORT_mx6dl = "1" +SOC_HAS_VIVANTE_KERNEL_DRIVER_SUPPORT_mx6sx = "1" +SOC_HAS_VIVANTE_KERNEL_DRIVER_SUPPORT_mx6sl = "1" + +# Handle Vivante kernel driver setting: +# 0 - machine does not have Vivante GPU driver support +# 1 - machine has Vivante GPU driver support +MACHINE_HAS_VIVANTE_KERNEL_DRIVER_SUPPORT ??= "${SOC_HAS_VIVANTE_KERNEL_DRIVER_SUPPORT}" + # mx6 GPU libraries PREFERRED_PROVIDER_virtual/egl_mx6q ?= "imx-gpu-viv" PREFERRED_PROVIDER_virtual/egl_mx6dl ?= "imx-gpu-viv" -- cgit v1.2.3-54-g00ecf