[Glamor] [PATCH 2/2] glamor_eglmodule: Change module name according to normalize naming rule.
zhigang.gong at linux.intel.com
zhigang.gong at linux.intel.com
Wed Feb 1 19:27:14 PST 2012
From: Zhigang Gong <zhigang.gong at linux.intel.com>
As Xorg module loader will normalize module name which will
remove '_' when we put "glamor_egl" to the configure file,
then it will fail to find us.
Signed-off-by: Zhigang Gong <zhigang.gong at linux.intel.com>
---
src/Makefile.am | 13 ++++++-------
src/glamor.h | 3 +++
src/glamor_eglmodule.c | 7 ++++---
3 files changed, 13 insertions(+), 10 deletions(-)
diff --git a/src/Makefile.am b/src/Makefile.am
index d6105d0..ca8fc3f 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -50,13 +50,12 @@ libglamor_la_SOURCES = \
sdk_HEADERS = glamor.h
if EGL
-LIBGLAMOR_EGL = libglamor_egl.la
-module_LTLIBRARIES = $(LIBGLAMOR_EGL)
-libglamor_egl_la_DEPENDENCIES = libglamor.la
-libglamor_egl_la_LDFLAGS = -avoid-version -module $(EGL_LIBS) -lglamor
-#libglamor_egl_la_LIBADD = $(top_builddir)/src/libglamor.la
-libglamor_egl_la_SOURCES = glamor_eglmodule.c $(top_srcdir)/src/glamor_egl.c
-libglamor_egl_la_CFLAGS = $(AM_CFLAGS) -I$(top_srcdir)/src $(LIBDRM_CFLAGS) $(EGL_CFLAGS)
+LIBGLAMOREGL = libglamoregl.la
+module_LTLIBRARIES = $(LIBGLAMOREGL)
+libglamoregl_la_DEPENDENCIES = libglamor.la
+libglamoregl_la_LDFLAGS = -avoid-version -module $(EGL_LIBS) -lglamor
+libglamoregl_la_SOURCES = glamor_eglmodule.c $(top_srcdir)/src/glamor_egl.c
+libglamoregl_la_CFLAGS = $(AM_CFLAGS) -I$(top_srcdir)/src $(LIBDRM_CFLAGS) $(EGL_CFLAGS)
endif
diff --git a/src/glamor.h b/src/glamor.h
index e29a3e4..3d6e5fe 100644
--- a/src/glamor.h
+++ b/src/glamor.h
@@ -146,6 +146,9 @@ extern _X_EXPORT PixmapPtr glamor_create_pixmap(ScreenPtr screen, int w, int h,
extern _X_EXPORT void glamor_egl_screen_init(ScreenPtr screen);
#ifdef GLAMOR_FOR_XORG
+
+#define GLAMOR_EGL_MODULE_NAME "glamoregl"
+
/* @glamor_egl_init: Initialize EGL environment.
*
* @scrn: Current screen info pointer.
diff --git a/src/glamor_eglmodule.c b/src/glamor_eglmodule.c
index 4da57af..e1f6672 100644
--- a/src/glamor_eglmodule.c
+++ b/src/glamor_eglmodule.c
@@ -29,11 +29,12 @@
#endif
#include <xorg-server.h>
-
+#define GLAMOR_FOR_XORG
+#include "glamor.h"
#include "xf86Module.h"
static XF86ModuleVersionInfo VersRec = {
- "glamor_egl",
+ GLAMOR_EGL_MODULE_NAME,
MODULEVENDORSTRING,
MODINFOSTRING1,
MODINFOSTRING2,
@@ -45,4 +46,4 @@ static XF86ModuleVersionInfo VersRec = {
{0, 0, 0, 0} /* signature, to be patched into the file by a tool */
};
-_X_EXPORT XF86ModuleData glamor_eglModuleData = { &VersRec, NULL, NULL };
+_X_EXPORT XF86ModuleData glamoreglModuleData = { &VersRec, NULL, NULL };
--
1.7.4.4
More information about the Glamor
mailing list