diff --git a/packages/graphics/Mesa/patches/Mesa-7.10.3-__atom.patch b/packages/graphics/Mesa/patches/Mesa-7.10.3-__atom.patch new file mode 100644 index 0000000000..1787a37369 --- /dev/null +++ b/packages/graphics/Mesa/patches/Mesa-7.10.3-__atom.patch @@ -0,0 +1,15 @@ +diff -Naur Mesa-7.10.1-old/src/mesa/drivers/dri/r200/r200_cmdbuf.c Mesa-7.10.1-new/src/mesa/drivers/dri/r200/r200_cmdbuf.c +--- Mesa-7.10.1-old/src/mesa/drivers/dri/r200/r200_cmdbuf.c 2011-03-02 17:30:39.000000000 -0800 ++++ Mesa-7.10.1-new/src/mesa/drivers/dri/r200/r200_cmdbuf.c 2011-03-02 17:31:59.000000000 -0800 +@@ -47,9 +47,8 @@ + */ + #define insert_at_tail_if(atom_list, atom) \ + do { \ +- struct radeon_state_atom* __atom = (atom); \ +- if (__atom->check) \ +- insert_at_tail((atom_list), __atom); \ ++ if ((atom)->check) \ ++ insert_at_tail((atom_list), (atom)); \ + } while(0) + + void r200SetUpAtomList( r200ContextPtr rmesa ) diff --git a/packages/graphics/Mesa/patches/Mesa-7.10.3-libdrm_nouveau.patch b/packages/graphics/Mesa/patches/Mesa-7.10.3-libdrm_nouveau.patch new file mode 100644 index 0000000000..445e9170b3 --- /dev/null +++ b/packages/graphics/Mesa/patches/Mesa-7.10.3-libdrm_nouveau.patch @@ -0,0 +1,208 @@ +diff -Naur Mesa-7.10.1-old/src/gallium/drivers/nv50/nv50_context.h Mesa-7.10.1-new/src/gallium/drivers/nv50/nv50_context.h +--- Mesa-7.10.1-old/src/gallium/drivers/nv50/nv50_context.h 2010-12-15 15:02:44.000000000 -0800 ++++ Mesa-7.10.1-new/src/gallium/drivers/nv50/nv50_context.h 2011-03-02 17:31:09.000000000 -0800 +@@ -15,6 +15,8 @@ + + #include "nouveau/nouveau_winsys.h" + #include "nouveau/nouveau_gldefs.h" ++/* Hack to silence warnings caused by nouveau/nouveau_stateobj.h using BEGIN_BIND marcro */ ++#include + #include "nouveau/nouveau_stateobj.h" + #include "nv50_reg.h" + +diff -Naur Mesa-7.10.1-old/src/gallium/drivers/nvfx/nv04_2d.c Mesa-7.10.1-new/src/gallium/drivers/nvfx/nv04_2d.c +--- Mesa-7.10.1-old/src/gallium/drivers/nvfx/nv04_2d.c 2011-01-25 15:52:45.000000000 -0800 ++++ Mesa-7.10.1-new/src/gallium/drivers/nvfx/nv04_2d.c 2011-03-02 17:31:09.000000000 -0800 +@@ -39,6 +39,7 @@ + #include + #include + #include ++#include + #include "nv04_2d.h" + + #include "nouveau/nv_object.xml.h" +diff -Naur Mesa-7.10.1-old/src/gallium/drivers/nvfx/nvfx_buffer.c Mesa-7.10.1-new/src/gallium/drivers/nvfx/nvfx_buffer.c +--- Mesa-7.10.1-old/src/gallium/drivers/nvfx/nvfx_buffer.c 2010-12-15 15:02:44.000000000 -0800 ++++ Mesa-7.10.1-new/src/gallium/drivers/nvfx/nvfx_buffer.c 2011-03-02 17:31:09.000000000 -0800 +@@ -1,4 +1,3 @@ +- + #include "util/u_inlines.h" + #include "util/u_memory.h" + #include "util/u_math.h" +diff -Naur Mesa-7.10.1-old/src/gallium/drivers/nvfx/nvfx_screen.c Mesa-7.10.1-new/src/gallium/drivers/nvfx/nvfx_screen.c +--- Mesa-7.10.1-old/src/gallium/drivers/nvfx/nvfx_screen.c 2011-01-25 15:52:45.000000000 -0800 ++++ Mesa-7.10.1-new/src/gallium/drivers/nvfx/nvfx_screen.c 2011-03-02 17:31:09.000000000 -0800 +@@ -10,6 +10,8 @@ + #include "nvfx_resource.h" + #include "nvfx_tex.h" + ++#include "nouveau/nv04_pushbuf.h" ++ + #define NV30_3D_CHIPSET_3X_MASK 0x00000003 + #define NV34_3D_CHIPSET_3X_MASK 0x00000010 + #define NV35_3D_CHIPSET_3X_MASK 0x000001e0 +diff -Naur Mesa-7.10.1-old/src/mesa/drivers/dri/nouveau/nv04_driver.h Mesa-7.10.1-new/src/mesa/drivers/dri/nouveau/nv04_driver.h +--- Mesa-7.10.1-old/src/mesa/drivers/dri/nouveau/nv04_driver.h 2010-12-14 13:43:15.000000000 -0800 ++++ Mesa-7.10.1-new/src/mesa/drivers/dri/nouveau/nv04_driver.h 2011-03-02 17:31:09.000000000 -0800 +@@ -28,6 +28,7 @@ + #define __NV04_DRIVER_H__ + + #include "nv04_context.h" ++#include "nv04_pushbuf.h" + + enum { + NOUVEAU_STATE_BLEND = NUM_NOUVEAU_STATE, +diff -Naur Mesa-7.10.1-old/src/mesa/drivers/dri/nouveau/nv10_render.c Mesa-7.10.1-new/src/mesa/drivers/dri/nouveau/nv10_render.c +--- Mesa-7.10.1-old/src/mesa/drivers/dri/nouveau/nv10_render.c 2010-12-14 13:43:15.000000000 -0800 ++++ Mesa-7.10.1-new/src/mesa/drivers/dri/nouveau/nv10_render.c 2011-03-02 17:31:09.000000000 -0800 +@@ -27,6 +27,7 @@ + #include "nouveau_driver.h" + #include "nouveau_context.h" + #include "nv10_3d.xml.h" ++#include "nv04_driver.h" + #include "nv10_driver.h" + + #define NUM_VERTEX_ATTRS 8 +diff -Naur Mesa-7.10.1-old/src/mesa/drivers/dri/nouveau/nv10_state_fb.c Mesa-7.10.1-new/src/mesa/drivers/dri/nouveau/nv10_state_fb.c +--- Mesa-7.10.1-old/src/mesa/drivers/dri/nouveau/nv10_state_fb.c 2010-12-14 13:43:15.000000000 -0800 ++++ Mesa-7.10.1-new/src/mesa/drivers/dri/nouveau/nv10_state_fb.c 2011-03-02 17:31:09.000000000 -0800 +@@ -30,6 +30,7 @@ + #include "nouveau_util.h" + #include "nv_object.xml.h" + #include "nv10_3d.xml.h" ++#include "nv04_driver.h" + #include "nv10_driver.h" + + static inline unsigned +diff -Naur Mesa-7.10.1-old/src/mesa/drivers/dri/nouveau/nv10_state_frag.c Mesa-7.10.1-new/src/mesa/drivers/dri/nouveau/nv10_state_frag.c +--- Mesa-7.10.1-old/src/mesa/drivers/dri/nouveau/nv10_state_frag.c 2010-12-14 13:43:15.000000000 -0800 ++++ Mesa-7.10.1-new/src/mesa/drivers/dri/nouveau/nv10_state_frag.c 2011-03-02 17:31:09.000000000 -0800 +@@ -30,6 +30,7 @@ + #include "nv10_3d.xml.h" + #include "nouveau_util.h" + #include "nv10_driver.h" ++#include "nv04_driver.h" + #include "nv20_driver.h" + + #define RC_IN_SHIFT_A 24 +diff -Naur Mesa-7.10.1-old/src/mesa/drivers/dri/nouveau/nv10_state_polygon.c Mesa-7.10.1-new/src/mesa/drivers/dri/nouveau/nv10_state_polygon.c +--- Mesa-7.10.1-old/src/mesa/drivers/dri/nouveau/nv10_state_polygon.c 2010-12-14 13:43:15.000000000 -0800 ++++ Mesa-7.10.1-new/src/mesa/drivers/dri/nouveau/nv10_state_polygon.c 2011-03-02 17:31:09.000000000 -0800 +@@ -29,6 +29,7 @@ + #include "nouveau_gldefs.h" + #include "nouveau_util.h" + #include "nv10_3d.xml.h" ++#include "nv04_driver.h" + #include "nv10_driver.h" + + void +diff -Naur Mesa-7.10.1-old/src/mesa/drivers/dri/nouveau/nv10_state_raster.c Mesa-7.10.1-new/src/mesa/drivers/dri/nouveau/nv10_state_raster.c +--- Mesa-7.10.1-old/src/mesa/drivers/dri/nouveau/nv10_state_raster.c 2011-01-25 15:52:45.000000000 -0800 ++++ Mesa-7.10.1-new/src/mesa/drivers/dri/nouveau/nv10_state_raster.c 2011-03-02 17:31:09.000000000 -0800 +@@ -29,6 +29,7 @@ + #include "nouveau_gldefs.h" + #include "nouveau_util.h" + #include "nv10_3d.xml.h" ++#include "nv04_driver.h" + #include "nv10_driver.h" + + void +diff -Naur Mesa-7.10.1-old/src/mesa/drivers/dri/nouveau/nv10_state_tex.c Mesa-7.10.1-new/src/mesa/drivers/dri/nouveau/nv10_state_tex.c +--- Mesa-7.10.1-old/src/mesa/drivers/dri/nouveau/nv10_state_tex.c 2010-12-14 13:43:15.000000000 -0800 ++++ Mesa-7.10.1-new/src/mesa/drivers/dri/nouveau/nv10_state_tex.c 2011-03-02 17:31:09.000000000 -0800 +@@ -30,6 +30,7 @@ + #include "nouveau_texture.h" + #include "nv10_3d.xml.h" + #include "nouveau_util.h" ++#include "nv04_driver.h" + #include "nv10_driver.h" + + void +diff -Naur Mesa-7.10.1-old/src/mesa/drivers/dri/nouveau/nv10_state_tnl.c Mesa-7.10.1-new/src/mesa/drivers/dri/nouveau/nv10_state_tnl.c +--- Mesa-7.10.1-old/src/mesa/drivers/dri/nouveau/nv10_state_tnl.c 2010-12-14 13:43:15.000000000 -0800 ++++ Mesa-7.10.1-new/src/mesa/drivers/dri/nouveau/nv10_state_tnl.c 2011-03-02 17:31:09.000000000 -0800 +@@ -29,6 +29,7 @@ + #include "nouveau_gldefs.h" + #include "nouveau_util.h" + #include "nv10_3d.xml.h" ++#include "nv04_driver.h" + #include "nv10_driver.h" + + void +diff -Naur Mesa-7.10.1-old/src/mesa/drivers/dri/nouveau/nv20_render.c Mesa-7.10.1-new/src/mesa/drivers/dri/nouveau/nv20_render.c +--- Mesa-7.10.1-old/src/mesa/drivers/dri/nouveau/nv20_render.c 2010-12-14 13:43:15.000000000 -0800 ++++ Mesa-7.10.1-new/src/mesa/drivers/dri/nouveau/nv20_render.c 2011-03-02 17:31:09.000000000 -0800 +@@ -27,6 +27,7 @@ + #include "nouveau_driver.h" + #include "nouveau_context.h" + #include "nv20_3d.xml.h" ++#include "nv04_driver.h" + #include "nv20_driver.h" + + #define NUM_VERTEX_ATTRS 16 +diff -Naur Mesa-7.10.1-old/src/mesa/drivers/dri/nouveau/nv20_state_fb.c Mesa-7.10.1-new/src/mesa/drivers/dri/nouveau/nv20_state_fb.c +--- Mesa-7.10.1-old/src/mesa/drivers/dri/nouveau/nv20_state_fb.c 2010-12-14 13:43:15.000000000 -0800 ++++ Mesa-7.10.1-new/src/mesa/drivers/dri/nouveau/nv20_state_fb.c 2011-03-02 17:31:09.000000000 -0800 +@@ -30,6 +30,7 @@ + #include "nouveau_gldefs.h" + #include "nouveau_util.h" + #include "nv20_3d.xml.h" ++#include "nv04_driver.h" + #include "nv20_driver.h" + + static inline unsigned +diff -Naur Mesa-7.10.1-old/src/mesa/drivers/dri/nouveau/nv20_state_frag.c Mesa-7.10.1-new/src/mesa/drivers/dri/nouveau/nv20_state_frag.c +--- Mesa-7.10.1-old/src/mesa/drivers/dri/nouveau/nv20_state_frag.c 2010-12-14 13:43:15.000000000 -0800 ++++ Mesa-7.10.1-new/src/mesa/drivers/dri/nouveau/nv20_state_frag.c 2011-03-02 17:31:09.000000000 -0800 +@@ -28,6 +28,7 @@ + #include "nouveau_context.h" + #include "nv20_3d.xml.h" + #include "nv10_driver.h" ++#include "nv04_driver.h" + #include "nv20_driver.h" + + void +diff -Naur Mesa-7.10.1-old/src/mesa/drivers/dri/nouveau/nv20_state_polygon.c Mesa-7.10.1-new/src/mesa/drivers/dri/nouveau/nv20_state_polygon.c +--- Mesa-7.10.1-old/src/mesa/drivers/dri/nouveau/nv20_state_polygon.c 2010-12-14 13:43:15.000000000 -0800 ++++ Mesa-7.10.1-new/src/mesa/drivers/dri/nouveau/nv20_state_polygon.c 2011-03-02 17:31:09.000000000 -0800 +@@ -28,6 +28,7 @@ + #include "nouveau_context.h" + #include "nouveau_gldefs.h" + #include "nv20_3d.xml.h" ++#include "nv04_driver.h" + #include "nv20_driver.h" + + void +diff -Naur Mesa-7.10.1-old/src/mesa/drivers/dri/nouveau/nv20_state_raster.c Mesa-7.10.1-new/src/mesa/drivers/dri/nouveau/nv20_state_raster.c +--- Mesa-7.10.1-old/src/mesa/drivers/dri/nouveau/nv20_state_raster.c 2010-12-14 13:43:15.000000000 -0800 ++++ Mesa-7.10.1-new/src/mesa/drivers/dri/nouveau/nv20_state_raster.c 2011-03-02 17:31:09.000000000 -0800 +@@ -29,6 +29,7 @@ + #include "nouveau_gldefs.h" + #include "nouveau_util.h" + #include "nv20_3d.xml.h" ++#include "nv04_driver.h" + #include "nv20_driver.h" + + void +diff -Naur Mesa-7.10.1-old/src/mesa/drivers/dri/nouveau/nv20_state_tex.c Mesa-7.10.1-new/src/mesa/drivers/dri/nouveau/nv20_state_tex.c +--- Mesa-7.10.1-old/src/mesa/drivers/dri/nouveau/nv20_state_tex.c 2010-12-14 13:43:15.000000000 -0800 ++++ Mesa-7.10.1-new/src/mesa/drivers/dri/nouveau/nv20_state_tex.c 2011-03-02 17:31:09.000000000 -0800 +@@ -30,6 +30,7 @@ + #include "nouveau_texture.h" + #include "nv20_3d.xml.h" + #include "nouveau_util.h" ++#include "nv04_driver.h" + #include "nv20_driver.h" + + void +diff -Naur Mesa-7.10.1-old/src/mesa/drivers/dri/nouveau/nv20_state_tnl.c Mesa-7.10.1-new/src/mesa/drivers/dri/nouveau/nv20_state_tnl.c +--- Mesa-7.10.1-old/src/mesa/drivers/dri/nouveau/nv20_state_tnl.c 2010-12-14 13:43:15.000000000 -0800 ++++ Mesa-7.10.1-new/src/mesa/drivers/dri/nouveau/nv20_state_tnl.c 2011-03-02 17:31:09.000000000 -0800 +@@ -29,6 +29,7 @@ + #include "nouveau_gldefs.h" + #include "nouveau_util.h" + #include "nv20_3d.xml.h" ++#include "nv04_driver.h" + #include "nv10_driver.h" + #include "nv20_driver.h" + diff --git a/packages/graphics/Mesa/patches/Mesa-7.10.3-llvm_so.patch b/packages/graphics/Mesa/patches/Mesa-7.10.3-llvm_so.patch new file mode 100644 index 0000000000..8a924662ca --- /dev/null +++ b/packages/graphics/Mesa/patches/Mesa-7.10.3-llvm_so.patch @@ -0,0 +1,12 @@ +diff -Naur Mesa-7.10.2-old/configure.ac Mesa-7.10.2-new/configure.ac +--- Mesa-7.10.2-old/configure.ac 2011-02-11 14:49:47.000000000 -0800 ++++ Mesa-7.10.2-new/configure.ac 2011-05-05 16:31:18.000000000 -0700 +@@ -1551,7 +1551,7 @@ + if test "x$LLVM_CONFIG" != xno; then + LLVM_VERSION=`$LLVM_CONFIG --version` + LLVM_CFLAGS=`$LLVM_CONFIG --cppflags` +- LLVM_LIBS="`$LLVM_CONFIG --libs jit interpreter nativecodegen bitwriter` -lstdc++" ++ LLVM_LIBS="-lLLVM-$LLVM_VERSION -lstdc++" + + if test "x$HAS_UDIS86" != xno; then + LLVM_LIBS="$LLVM_LIBS -ludis86" diff --git a/packages/graphics/Mesa/patches/Mesa-7.10.3-llvmpipe_ld.patch b/packages/graphics/Mesa/patches/Mesa-7.10.3-llvmpipe_ld.patch new file mode 100644 index 0000000000..1fa972db2e --- /dev/null +++ b/packages/graphics/Mesa/patches/Mesa-7.10.3-llvmpipe_ld.patch @@ -0,0 +1,12 @@ +diff -Naur Mesa-7.10.2-old/src/gallium/drivers/llvmpipe/Makefile Mesa-7.10.2-new/src/gallium/drivers/llvmpipe/Makefile +--- Mesa-7.10.2-old/src/gallium/drivers/llvmpipe/Makefile 2011-01-04 09:44:17.000000000 -0800 ++++ Mesa-7.10.2-new/src/gallium/drivers/llvmpipe/Makefile 2011-05-05 15:48:06.000000000 -0700 +@@ -71,7 +71,7 @@ + + LDFLAGS += $(LLVM_LDFLAGS) + LIBS += -L../../auxiliary/ -lgallium libllvmpipe.a $(LLVM_LIBS) $(GL_LIB_DEPS) +-LD=g++ ++LD = $(CXX) + + $(PROGS): lp_test_main.o libllvmpipe.a + diff --git a/packages/linux-drivers/install b/packages/linux-drivers/install deleted file mode 100755 index b9b3b4dd2f..0000000000 --- a/packages/linux-drivers/install +++ /dev/null @@ -1,31 +0,0 @@ -#!/bin/sh - -################################################################################ -# This file is part of OpenELEC - http://www.openelec.tv -# Copyright (C) 2009-2011 Stephan Raue (stephan@openelec.tv) -# -# This Program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2, or (at your option) -# any later version. -# -# This Program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with OpenELEC.tv; see the file COPYING. If not, write to -# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. -# http://www.gnu.org/copyleft/gpl.html -################################################################################ - -. config/options - -for drivers in "$ADDITIONAL_DRIVERS"; do - [ $drivers = asix-ax887xx ] && $SCRIPTS/install asix-ax887xx - [ $drivers = bcm_sta ] && $SCRIPTS/install bcm_sta - [ $drivers = rtl8192se ] && $SCRIPTS/install rtl8192se -done - -exit 0 diff --git a/packages/linux-drivers/meta b/packages/linux-drivers/meta index 06228d1379..9b203e50e3 100644 --- a/packages/linux-drivers/meta +++ b/packages/linux-drivers/meta @@ -25,7 +25,7 @@ PKG_ARCH="any" PKG_LICENSE="GPL" PKG_SITE="http://www.openelec.tv" PKG_URL="" -PKG_DEPENDS="" +PKG_DEPENDS="$ADDITIONAL_DRIVERS" PKG_BUILD_DEPENDS="toolchain" PKG_PRIORITY="optional" PKG_SECTION="linux-drivers"