[meta-freescale] [meta-fsl-arm][PATCH RFC 3/4] amd-gpu-x11-bin-mx51: only enable when x11 is in DISTRO_FEATURES

Eric Bénard eric at eukrea.com
Mon May 27 17:02:51 PDT 2013


this prevent warnings and parse errors

Signed-off-by: Eric Bénard <eric at eukrea.com>
---
 .../amd-gpu-x11-bin/amd-gpu-x11-bin-mx51_11.09.01.bb             |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/recipes-graphics/amd-gpu-x11-bin/amd-gpu-x11-bin-mx51_11.09.01.bb b/recipes-graphics/amd-gpu-x11-bin/amd-gpu-x11-bin-mx51_11.09.01.bb
index 2dee47a..e50d691 100644
--- a/recipes-graphics/amd-gpu-x11-bin/amd-gpu-x11-bin-mx51_11.09.01.bb
+++ b/recipes-graphics/amd-gpu-x11-bin/amd-gpu-x11-bin-mx51_11.09.01.bb
@@ -6,9 +6,11 @@ LICENSE = "Proprietary"
 SECTION = "libs"
 PR = "r12"
 
+RCONFLICTS_${PN} = "amd-gpu-bin-mx51"
+
 # FIXME: Replace for correct AMD license
 LIC_FILES_CHKSUM = "file://usr/include/VG/openvg.h;endline=30;md5=b0109611dd76961057d4c45ae6519802"
-DEPENDS = "virtual/libx11 libxrender"
+DEPENDS = "${@base_contains('DISTRO_FEATURES', 'x11', 'virtual/libx11 libxrender', '', d)}"
 
 PROVIDES = "virtual/egl virtual/libgles1 virtual/libgles2"
 
@@ -84,5 +86,5 @@ FILES_lib2dz160-mx51-dbg = "${libdir}/.debug/lib2dz160${SOLIBS}"
 FILES_lib2dz430-mx51 = "${libdir}/lib2dz430${SOLIBS}"
 FILES_lib2dz430-mx51-dbg = "${libdir}/.debug/lib2dz430${SOLIBS}"
 
-COMPATIBLE_MACHINE = "(mx5)"
+COMPATIBLE_MACHINE = "{@base_contains('DISTRO_FEATURES', 'x11', (mx5), '', d)}"
 PACKAGE_ARCH = "${MACHINE_ARCH}"
-- 
1.7.10.4




More information about the meta-freescale mailing list