From: Andreas Müller Date: Wed, 14 Dec 2016 11:42:00 +0000 (+0100) Subject: libsdl2: add append to fix build X-Git-Tag: 2.2~73 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=810c76372fab650e1729cd354a5782d6c980f68e;p=meta-freescale.git libsdl2: add append to fix build Our vivante driver does not support the API libsdl2 expects. Fixes: /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': /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; ^~~~~~~~~~~~~~~~~~~~~~~~ /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 /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; ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /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; ^~~~~~~~~~~~~~~~~~~~~~~~~~ /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; ^~~~~~~~~~~~~~~~~~~~~~~~~~ /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; ^~~~~~~~~~~~~~~~~~~~~~~~ /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; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /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; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /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; ^~~~~~~~~~~~~~~~~~~~~~~ /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; ^~~~~~~~~~~~~~~~~~~~~~~~~~ /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': /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); ^~~~~~~~~~~~~~~~~~~~~ /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); ^ /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': /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 Signed-off-by: Otavio Salvador --- 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 @@ +EXTRA_OECONF_IMX = "" + +# what vivante driver does libsdl2 mean? Anyway it fails with missing functions as +# VIVANTE_Create VIVANTE_GLES_GetProcAddress VIVANTE_GLES_UnloadLibrary ... +EXTRA_OECONF_IMX_imxgpu2d = "--disable-video-vivante" + +EXTRA_OECONF_append = " ${EXTRA_OECONF_IMX}"