Patchwork [meta-fsl-arm,v2,1/3] amd-gpu-x11-bin-mx51: only enable when x11 is in DISTRO_FEATURES

login
register
mail settings
Submitter Eric BENARD
Date May 28, 2013, 7:24 p.m.
Message ID <1369769087-6106-1-git-send-email-eric@eukrea.com>
Download mbox | patch
Permalink /patch/50631/
State Changes Requested
Delegated to: Otavio Salvador
Headers show

Comments

Eric BENARD - May 28, 2013, 7:24 p.m.
this prevent warnings and parse errors

Signed-off-by: Eric Bénard <eric@eukrea.com>
---
 recipes-graphics/amd-gpu-x11-bin/amd-gpu-x11-bin-mx51_11.09.01.bb |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Otavio Salvador - May 29, 2013, 5:34 p.m.
On Tue, May 28, 2013 at 4:24 PM, Eric Bénard <eric@eukrea.com> wrote:

> this prevent warnings and parse errors
>
> Signed-off-by: Eric Bénard <eric@eukrea.com>
> ---
>  recipes-graphics/amd-gpu-x11-bin/amd-gpu-x11-bin-mx51_11.09.01.bb |    2
> +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> 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..8c3557b 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
> @@ -84,5 +84,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}"
>

This is wrong; you need '${@...}' convention for the inline python code to
be run.

Patch

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..8c3557b 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
@@ -84,5 +84,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}"