package/piglit: fix build of GLES tests
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Wed, 14 Aug 2019 21:58:43 +0000 (23:58 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Thu, 15 Aug 2019 13:06:13 +0000 (15:06 +0200)
GLES tests needs libegl so:
- check for BR2_PACKAGE_HAS_LIBEGL to enable them
- add libegl to PIGLIT_DEPENDENCIES if needed

Fixes:
 - http://autobuild.buildroot.org/results/3c2b7fb1e54dd52a5fd9c1024b8258e02063bd2c

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/piglit/piglit.mk

index 5ab81aba41d84d65846d04044f90a074eb87a937..4f95e77cfd7e5b74b08dd3b6d9dc8080b33e090d 100644 (file)
@@ -53,7 +53,8 @@ else
 PIGLIT_CONF_OPTS += -DPIGLIT_BUILD_GLX_TESTS=OFF
 endif
 
-ifeq ($(BR2_PACKAGE_HAS_LIBGLES),y)
+ifeq ($(BR2_PACKAGE_HAS_LIBEGL)$(BR2_PACKAGE_HAS_LIBGLES),yy)
+PIGLIT_DEPENDENCIES += libegl
 PIGLIT_CONF_OPTS += -DPIGLIT_BUILD_GLES1_TESTS=ON \
        -DPIGLIT_BUILD_GLES2_TESTS=ON \
        -DPIGLIT_BUILD_GLES3_TESTS=ON