aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2016-07-04 14:20:18 -0300
committerOtavio Salvador <otavio@ossystems.com.br>2016-07-05 13:47:28 -0300
commita6046aafbfd8b995ee13ecf6a837a34b4b1b4f14 (patch)
treed4f3025aea06817cbd773e916d685c01a96e63b8
parentd34b1a05805c9b0a0ccc3b08e9272b3e4c56a6fc (diff)
downloadmeta-fsl-arm-a6046aafbfd8b995ee13ecf6a837a34b4b1b4f14.tar.gz
meta-fsl-arm-a6046aafbfd8b995ee13ecf6a837a34b4b1b4f14.tar.bz2
meta-fsl-arm-a6046aafbfd8b995ee13ecf6a837a34b4b1b4f14.zip
fsl-vivante-kernel-driver-handler.bbclass: Allow build for non-i.MX6
When building for non-i.MX6, we ought to assume the SoC does not has Vivante GPU at all, or the build will fail. This fixes the build of linux-fslc-imx-rt for i.MX7D as it does not have a Vivante GPU. Change-Id: Ic8fc4808880aca381e88f6e1b6c52416bb4520c4 Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
-rw-r--r--classes/fsl-vivante-kernel-driver-handler.bbclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/classes/fsl-vivante-kernel-driver-handler.bbclass b/classes/fsl-vivante-kernel-driver-handler.bbclass
index cdd6450..e0578f4 100644
--- a/classes/fsl-vivante-kernel-driver-handler.bbclass
+++ b/classes/fsl-vivante-kernel-driver-handler.bbclass
@@ -20,7 +20,7 @@
# 0 - enable the builtin kernel driver module
# 1 - enable the external kernel module
#
-# Copyright 2015 (C) O.S. Systems Software LTDA.
+# Copyright 2015, 2016 (C) O.S. Systems Software LTDA.
# Released under the MIT license (see COPYING.MIT for the terms)
# Handle Vivante kernel driver setting:
@@ -31,7 +31,7 @@ MACHINE_HAS_VIVANTE_KERNEL_DRIVER_SUPPORT ??= "0"
# Use Vivante kernel driver module:
# 0 - enable the builtin kernel driver module
# 1 - enable the external kernel module
-MACHINE_USES_VIVANTE_KERNEL_DRIVER_MODULE ??= "1"
+MACHINE_USES_VIVANTE_KERNEL_DRIVER_MODULE ??= "${@d.getVar('MACHINE_HAS_VIVANTE_KERNEL_DRIVER_SUPPORT', False) or '0'}"
python fsl_vivante_kernel_driver_handler () {
has_vivante_kernel_driver_support = e.data.getVar('MACHINE_HAS_VIVANTE_KERNEL_DRIVER_SUPPORT', True) or "0"