summaryrefslogtreecommitdiffstats
path: root/recipes-graphics
diff options
context:
space:
mode:
authorAndreas Müller <schnitzeltony@googlemail.com>2016-12-14 12:42:00 +0100
committerOtavio Salvador <otavio@ossystems.com.br>2016-12-20 07:34:15 -0200
commit3335d0902ee31411e09e795583569b2f611adb0d (patch)
tree7013954bee676c7bbf0bd93e70639adf813b620e /recipes-graphics
parent17c228936c1d875b96b790f831e2ea3ee83c31f7 (diff)
downloadmeta-freescale-3335d0902ee31411e09e795583569b2f611adb0d.tar.gz
libsdl2: add append to fix build
Our vivante driver does not support the API libsdl2 expects. Fixes: <workdir>/cortexa9t2hf-neon-mx6qdl-angstrom-linux-gnueabi/libsdl2/2.0.5-r0/SDL2-2.0.5/src/video/vivante/SDL_vivantevideo.c: In function 'VIVANTE_Create': <workdir>/cortexa9t2hf-neon-mx6qdl-angstrom-linux-gnueabi/libsdl2/2.0.5-r0/SDL2-2.0.5/src/video/vivante/SDL_vivantevideo.c:100:30: error: 'VIVANTE_GLES_LoadLibrary' undeclared (first use in this function) device->GL_LoadLibrary = VIVANTE_GLES_LoadLibrary; ^~~~~~~~~~~~~~~~~~~~~~~~ <workdir>/cortexa9t2hf-neon-mx6qdl-angstrom-linux-gnueabi/libsdl2/2.0.5-r0/SDL2-2.0.5/src/video/vivante/SDL_vivantevideo.c:100:30: note: each undeclared identifier is reported only once for each function it appears in <workdir>/cortexa9t2hf-neon-mx6qdl-angstrom-linux-gnueabi/libsdl2/2.0.5-r0/SDL2-2.0.5/src/video/vivante/SDL_vivantevideo.c:101:33: error: 'VIVANTE_GLES_GetProcAddress' undeclared (first use in this function) device->GL_GetProcAddress = VIVANTE_GLES_GetProcAddress; ^~~~~~~~~~~~~~~~~~~~~~~~~~~ <workdir>/cortexa9t2hf-neon-mx6qdl-angstrom-linux-gnueabi/libsdl2/2.0.5-r0/SDL2-2.0.5/src/video/vivante/SDL_vivantevideo.c:102:32: error: 'VIVANTE_GLES_UnloadLibrary' undeclared (first use in this function) device->GL_UnloadLibrary = VIVANTE_GLES_UnloadLibrary; ^~~~~~~~~~~~~~~~~~~~~~~~~~ <workdir>/cortexa9t2hf-neon-mx6qdl-angstrom-linux-gnueabi/libsdl2/2.0.5-r0/SDL2-2.0.5/src/video/vivante/SDL_vivantevideo.c:103:32: error: 'VIVANTE_GLES_CreateContext' undeclared (first use in this function) device->GL_CreateContext = VIVANTE_GLES_CreateContext; ^~~~~~~~~~~~~~~~~~~~~~~~~~ <workdir>/cortexa9t2hf-neon-mx6qdl-angstrom-linux-gnueabi/libsdl2/2.0.5-r0/SDL2-2.0.5/src/video/vivante/SDL_vivantevideo.c:104:30: error: 'VIVANTE_GLES_MakeCurrent' undeclared (first use in this function) device->GL_MakeCurrent = VIVANTE_GLES_MakeCurrent; ^~~~~~~~~~~~~~~~~~~~~~~~ <workdir>/cortexa9t2hf-neon-mx6qdl-angstrom-linux-gnueabi/libsdl2/2.0.5-r0/SDL2-2.0.5/src/video/vivante/SDL_vivantevideo.c:105:34: error: 'VIVANTE_GLES_SetSwapInterval' undeclared (first use in this function) device->GL_SetSwapInterval = VIVANTE_GLES_SetSwapInterval; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ <workdir>/cortexa9t2hf-neon-mx6qdl-angstrom-linux-gnueabi/libsdl2/2.0.5-r0/SDL2-2.0.5/src/video/vivante/SDL_vivantevideo.c:106:34: error: 'VIVANTE_GLES_GetSwapInterval' undeclared (first use in this function) device->GL_GetSwapInterval = VIVANTE_GLES_GetSwapInterval; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ <workdir>/cortexa9t2hf-neon-mx6qdl-angstrom-linux-gnueabi/libsdl2/2.0.5-r0/SDL2-2.0.5/src/video/vivante/SDL_vivantevideo.c:107:29: error: 'VIVANTE_GLES_SwapWindow' undeclared (first use in this function) device->GL_SwapWindow = VIVANTE_GLES_SwapWindow; ^~~~~~~~~~~~~~~~~~~~~~~ <workdir>/cortexa9t2hf-neon-mx6qdl-angstrom-linux-gnueabi/libsdl2/2.0.5-r0/SDL2-2.0.5/src/video/vivante/SDL_vivantevideo.c:108:32: error: 'VIVANTE_GLES_DeleteContext' undeclared (first use in this function) device->GL_DeleteContext = VIVANTE_GLES_DeleteContext; ^~~~~~~~~~~~~~~~~~~~~~~~~~ <workdir>/cortexa9t2hf-neon-mx6qdl-angstrom-linux-gnueabi/libsdl2/2.0.5-r0/SDL2-2.0.5/src/video/vivante/SDL_vivantevideo.c: In function 'VIVANTE_CreateWindow': <workdir>/cortexa9t2hf-neon-mx6qdl-angstrom-linux-gnueabi/libsdl2/2.0.5-r0/SDL2-2.0.5/src/video/vivante/SDL_vivantevideo.c:285:29: warning: implicit declaration of function 'SDL_EGL_CreateSurface' [-Wimplicit-function-declaration] data->egl_surface = SDL_EGL_CreateSurface(_this, data->native_window); ^~~~~~~~~~~~~~~~~~~~~ <workdir>/cortexa9t2hf-neon-mx6qdl-angstrom-linux-gnueabi/libsdl2/2.0.5-r0/SDL2-2.0.5/src/video/vivante/SDL_vivantevideo.c:285:27: warning: assignment makes pointer from integer without a cast [-Wint-conversion] data->egl_surface = SDL_EGL_CreateSurface(_this, data->native_window); ^ <workdir>/cortexa9t2hf-neon-mx6qdl-angstrom-linux-gnueabi/libsdl2/2.0.5-r0/SDL2-2.0.5/src/video/vivante/SDL_vivantevideo.c: In function 'VIVANTE_DestroyWindow': <workdir>/cortexa9t2hf-neon-mx6qdl-angstrom-linux-gnueabi/libsdl2/2.0.5-r0/SDL2-2.0.5/src/video/vivante/SDL_vivantevideo.c:306:13: warning: implicit declaration of function 'SDL_EGL_DestroySurface' [-Wimplicit-function-declaration] SDL_EGL_DestroySurface(_this, data->egl_surface); ^~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'recipes-graphics')
-rw-r--r--recipes-graphics/libsdl2/libsdl2_%.bbappend7
1 files changed, 7 insertions, 0 deletions
diff --git a/recipes-graphics/libsdl2/libsdl2_%.bbappend b/recipes-graphics/libsdl2/libsdl2_%.bbappend
new file mode 100644
index 00000000..e41f19ca
--- /dev/null
+++ b/recipes-graphics/libsdl2/libsdl2_%.bbappend
@@ -0,0 +1,7 @@
1EXTRA_OECONF_IMX = ""
2
3# what vivante driver does libsdl2 mean? Anyway it fails with missing functions as
4# VIVANTE_Create VIVANTE_GLES_GetProcAddress VIVANTE_GLES_UnloadLibrary ...
5EXTRA_OECONF_IMX_imxgpu2d = "--disable-video-vivante"
6
7EXTRA_OECONF_append = " ${EXTRA_OECONF_IMX}"