Configure: guess YAGL backend based on target OS
authorIgor Mitsyanko <i.mitsyanko@samsung.com>
Fri, 21 Sep 2012 14:05:32 +0000 (18:05 +0400)
committerEvgeny Voevodin <e.voevodin@samsung.com>
Mon, 26 Nov 2012 09:25:32 +0000 (13:25 +0400)
Makefile.target
configure

index 60d860e..33a97b4 100755 (executable)
@@ -254,7 +254,9 @@ obj-y += yagl_gles2_program.o
 obj-y += yagl_gles2_validate.o
 obj-y += yagl_host_gles2_calls.o
 # EGL GLX driver
+ifdef CONFIG_YAGL_EGL_GLX
 obj-y += yagl_egl_glx.o
+endif
 # GLES OpenGL common driver
 obj-y += yagl_gles_ogl.o
 # GLESv1_CM OpenGL driver
index 8ac06fe..246a302 100755 (executable)
--- a/configure
+++ b/configure
@@ -3567,6 +3567,12 @@ fi
 
 if test "$yagl" = "yes" ; then
   echo "CONFIG_YAGL=y" >> $config_host_mak
+  if test "$linux" = "yes" ; then
+    echo "CONFIG_YAGL_EGL_GLX=y" >> $config_host_mak
+  else
+    echo "ERROR: YaGL is not available on $targetos"
+    exit 1
+  fi
 fi
 
 if test "$yagl_stats" = "yes" ; then