mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
add official Mesa, libdrm Releases
This commit is contained in:
parent
8dc5285e5f
commit
d16017bba9
47
packages/graphics/Mesa-openchrome/10_cross-compile.diff
Normal file
47
packages/graphics/Mesa-openchrome/10_cross-compile.diff
Normal file
@ -0,0 +1,47 @@
|
||||
diff -Naur mesa-7.1rc1-20080706.orig/bin/mklib mesa-7.1rc1-20080706/bin/mklib
|
||||
--- mesa-7.1rc1-20080706.orig/bin/mklib 2008-07-06 14:09:54.000000000 +0200
|
||||
+++ mesa-7.1rc1-20080706/bin/mklib 2008-07-06 14:11:03.000000000 +0200
|
||||
@@ -211,9 +211,9 @@
|
||||
if [ "x$LINK" = "x" ] ; then
|
||||
# -linker was not specified so set default link command now
|
||||
if [ $CPLUSPLUS = 1 ] ; then
|
||||
- LINK=g++
|
||||
+ LINK=$CXX
|
||||
else
|
||||
- LINK=gcc
|
||||
+ LINK=$CC
|
||||
fi
|
||||
fi
|
||||
|
||||
diff -Naur mesa-7.1rc1-20080706.orig/configs/linux-dri mesa-7.1rc1-20080706/configs/linux-dri
|
||||
--- mesa-7.1rc1-20080706.orig/configs/linux-dri 2008-07-06 14:09:54.000000000 +0200
|
||||
+++ mesa-7.1rc1-20080706/configs/linux-dri 2008-07-06 14:16:00.000000000 +0200
|
||||
@@ -14,6 +14,7 @@
|
||||
#MKDEP_OPTIONS = -MF depend
|
||||
|
||||
OPT_FLAGS = -O -g
|
||||
+HOST_OPT_FLAGS = $(OPT_FLAGS)
|
||||
PIC_FLAGS = -fPIC
|
||||
|
||||
# Add '-DGLX_USE_TLS' to ARCH_FLAGS to enable TLS support.
|
||||
@@ -29,6 +30,8 @@
|
||||
|
||||
CFLAGS = -Wall -Wmissing-prototypes -std=c99 -ffast-math \
|
||||
$(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES) $(ASM_FLAGS)
|
||||
+HOST_CFLAGS = -Wall -Wmissing-prototypes -std=c99 -ffast-math \
|
||||
+ $(HOST_OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES) $(ASM_FLAGS)
|
||||
|
||||
CXXFLAGS = -Wall $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES)
|
||||
|
||||
diff -Naur mesa-7.1rc1-20080706.orig/src/mesa/x86/Makefile mesa-7.1rc1-20080706/src/mesa/x86/Makefile
|
||||
--- mesa-7.1rc1-20080706.orig/src/mesa/x86/Makefile 2008-07-06 14:09:54.000000000 +0200
|
||||
+++ mesa-7.1rc1-20080706/src/mesa/x86/Makefile 2008-07-06 14:15:00.000000000 +0200
|
||||
@@ -21,7 +21,7 @@
|
||||
|
||||
|
||||
gen_matypes: gen_matypes.c
|
||||
- $(CC) $(INCLUDE_DIRS) $(CFLAGS) gen_matypes.c -o gen_matypes
|
||||
+ $(HOST_CC) $(INCLUDE_DIRS) $(HOST_CFLAGS) gen_matypes.c -o gen_matypes
|
||||
|
||||
# need some special rules here, unfortunately
|
||||
matypes.h: ../main/mtypes.h ../tnl/t_context.h gen_matypes
|
105
packages/graphics/Mesa-openchrome/20_libmesa-shared.diff
Normal file
105
packages/graphics/Mesa-openchrome/20_libmesa-shared.diff
Normal file
@ -0,0 +1,105 @@
|
||||
diff -Naur mesa-7.1.orig/src/mesa/drivers/directfb/Makefile mesa-7.1/src/mesa/drivers/directfb/Makefile
|
||||
--- mesa-7.1.orig/src/mesa/drivers/directfb/Makefile 2008-08-30 17:04:52.000000000 +0200
|
||||
+++ mesa-7.1/src/mesa/drivers/directfb/Makefile 2008-08-30 17:12:21.000000000 +0200
|
||||
@@ -25,7 +25,7 @@
|
||||
|
||||
DIRECTFBGL_MESA = libidirectfbgl_mesa.so
|
||||
|
||||
-LIBS = $(TOP)/src/mesa/libmesa.a $(TOP)/src/mesa/libglapi.a
|
||||
+LIBS = $(TOP)/src/mesa/libmesa.so $(TOP)/src/mesa/libglapi.so
|
||||
|
||||
|
||||
.c.o:
|
||||
diff -Naur mesa-7.1.orig/src/mesa/drivers/dri/Makefile.template mesa-7.1/src/mesa/drivers/dri/Makefile.template
|
||||
--- mesa-7.1.orig/src/mesa/drivers/dri/Makefile.template 2008-08-30 17:04:52.000000000 +0200
|
||||
+++ mesa-7.1/src/mesa/drivers/dri/Makefile.template 2008-08-30 17:07:18.000000000 +0200
|
||||
@@ -1,6 +1,6 @@
|
||||
# -*-makefile-*-
|
||||
|
||||
-MESA_MODULES = $(TOP)/src/mesa/libmesa.a
|
||||
+MESA_MODULES = $(TOP)/src/mesa/libmesa.so
|
||||
|
||||
COMMON_SOURCES = \
|
||||
../common/utils.c \
|
||||
diff -Naur mesa-7.1.orig/src/mesa/drivers/fbdev/Makefile mesa-7.1/src/mesa/drivers/fbdev/Makefile
|
||||
--- mesa-7.1.orig/src/mesa/drivers/fbdev/Makefile 2008-08-30 17:04:52.000000000 +0200
|
||||
+++ mesa-7.1/src/mesa/drivers/fbdev/Makefile 2008-08-30 17:08:06.000000000 +0200
|
||||
@@ -14,7 +14,7 @@
|
||||
-I$(TOP)/src/mesa \
|
||||
-I$(TOP)/src/mesa/main
|
||||
|
||||
-CORE_MESA = $(TOP)/src/mesa/libmesa.a $(TOP)/src/mesa/libglapi.a
|
||||
+CORE_MESA = $(TOP)/src/mesa/libmesa.so $(TOP)/src/mesa/libglapi.so
|
||||
|
||||
|
||||
.c.o:
|
||||
diff -Naur mesa-7.1.orig/src/mesa/drivers/osmesa/Makefile mesa-7.1/src/mesa/drivers/osmesa/Makefile
|
||||
--- mesa-7.1.orig/src/mesa/drivers/osmesa/Makefile 2008-08-30 17:04:52.000000000 +0200
|
||||
+++ mesa-7.1/src/mesa/drivers/osmesa/Makefile 2008-08-30 17:09:15.000000000 +0200
|
||||
@@ -19,7 +19,7 @@
|
||||
-I$(TOP)/src/mesa \
|
||||
-I$(TOP)/src/mesa/main
|
||||
|
||||
-CORE_MESA = $(TOP)/src/mesa/libmesa.a $(TOP)/src/mesa/libglapi.a
|
||||
+CORE_MESA = $(TOP)/src/mesa/libmesa.so $(TOP)/src/mesa/libglapi.so
|
||||
|
||||
|
||||
.PHONY: osmesa8
|
||||
diff -Naur mesa-7.1.orig/src/mesa/drivers/x11/Makefile mesa-7.1/src/mesa/drivers/x11/Makefile
|
||||
--- mesa-7.1.orig/src/mesa/drivers/x11/Makefile 2008-08-30 17:04:52.000000000 +0200
|
||||
+++ mesa-7.1/src/mesa/drivers/x11/Makefile 2008-08-30 17:10:53.000000000 +0200
|
||||
@@ -43,7 +43,7 @@
|
||||
-I$(TOP)/src/mesa \
|
||||
-I$(TOP)/src/mesa/main
|
||||
|
||||
-CORE_MESA = $(TOP)/src/mesa/libmesa.a $(TOP)/src/mesa/libglapi.a
|
||||
+CORE_MESA = $(TOP)/src/mesa/libmesa.so $(TOP)/src/mesa/libglapi.so
|
||||
|
||||
|
||||
|
||||
diff -Naur mesa-7.1.orig/src/mesa/Makefile mesa-7.1/src/mesa/Makefile
|
||||
--- mesa-7.1.orig/src/mesa/Makefile 2008-08-30 17:04:51.000000000 +0200
|
||||
+++ mesa-7.1/src/mesa/Makefile 2008-08-30 17:11:54.000000000 +0200
|
||||
@@ -20,8 +20,8 @@
|
||||
|
||||
|
||||
# Default: build dependencies, then asm_subdirs, then convenience
|
||||
-# libs (.a) and finally the device drivers:
|
||||
-default: depend asm_subdirs libmesa.a libglapi.a driver_subdirs
|
||||
+# libs (.so) and finally the device drivers:
|
||||
+default: depend asm_subdirs libmesa.so libglapi.so driver_subdirs
|
||||
|
||||
|
||||
|
||||
@@ -29,17 +29,17 @@
|
||||
# Helper libraries used by many drivers:
|
||||
|
||||
# Make archive of core mesa object files
|
||||
-libmesa.a: $(MESA_OBJECTS)
|
||||
- @ $(MKLIB) -o mesa -static $(MESA_OBJECTS)
|
||||
+libmesa.so: $(MESA_OBJECTS)
|
||||
+ @ $(MKLIB) -o mesa -dlopen $(MESA_OBJECTS)
|
||||
|
||||
# Make archive of gl* API dispatcher functions only
|
||||
-libglapi.a: $(GLAPI_OBJECTS)
|
||||
- @ $(MKLIB) -o glapi -static $(GLAPI_OBJECTS)
|
||||
+libglapi.so: $(GLAPI_OBJECTS)
|
||||
+ @ $(MKLIB) -o glapi -dlopen $(GLAPI_OBJECTS)
|
||||
|
||||
|
||||
######################################################################
|
||||
# Device drivers
|
||||
-driver_subdirs: libmesa.a libglapi.a
|
||||
+driver_subdirs: libmesa.so libglapi.so
|
||||
(cd drivers && $(MAKE))
|
||||
|
||||
|
||||
@@ -127,7 +127,7 @@
|
||||
clean:
|
||||
-rm -f */*.o
|
||||
-rm -f */*/*.o
|
||||
- -rm -f depend depend.bak libmesa.a libglapi.a
|
||||
+ -rm -f depend depend.bak libmesa.so libglapi.so
|
||||
-rm -f drivers/*/*.o
|
||||
-rm -f *.pc
|
||||
-@cd drivers/dri && $(MAKE) clean
|
63
packages/graphics/Mesa-openchrome/build
Executable file
63
packages/graphics/Mesa-openchrome/build
Executable file
@ -0,0 +1,63 @@
|
||||
#!/bin/sh
|
||||
|
||||
. config/options
|
||||
|
||||
$SCRIPTS/build expat
|
||||
$SCRIPTS/build glproto
|
||||
$SCRIPTS/build dri2proto
|
||||
$SCRIPTS/build $LIBDRM
|
||||
$SCRIPTS/build libXext
|
||||
$SCRIPTS/build libXdamage
|
||||
$SCRIPTS/build libXfixes
|
||||
$SCRIPTS/build libXxf86vm
|
||||
$SCRIPTS/build libX11
|
||||
$SCRIPTS/build libwsbm
|
||||
|
||||
cd $BUILD/$1*
|
||||
HOST_CC=$HOST_CC \
|
||||
OPT_FLAGS="$CFLAGS -D_GNU_SOURCE" \
|
||||
HOST_OPT_FLAGS="$HOST_CFLAGS" \
|
||||
X11_INCLUDES= \
|
||||
DRI_DRIVER_INSTALL_DIR="$XORG_PATH_DRI" \
|
||||
DRI_DRIVER_SEARCH_DIR="$XORG_PATH_DRI" \
|
||||
./configure --host=$TARGET_NAME \
|
||||
--build=$HOST_NAME \
|
||||
--prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
--localstatedir=/var \
|
||||
--disable-static \
|
||||
--enable-shared \
|
||||
--disable-debug \
|
||||
--disable-selinux \
|
||||
--disable-xcb \
|
||||
--disable-glx-tls \
|
||||
--enable-driglx-direct \
|
||||
--disable-gl-osmesa \
|
||||
--disable-glu \
|
||||
--disable-glut \
|
||||
--disable-glw \
|
||||
--disable-motif \
|
||||
--with-driver=dri \
|
||||
--with-dri-drivers=$DRIDRIVERS \
|
||||
--with-dri-driverdir="$XORG_PATH_DRI" \
|
||||
--with-x \
|
||||
--without-demos
|
||||
|
||||
make
|
||||
|
||||
# strip libmesa
|
||||
#$STRIP src/mesa/libmesa.so*
|
||||
|
||||
# strip libglapi
|
||||
#$STRIP src/mesa/libglapi.so*
|
||||
|
||||
# strip DRI drivers
|
||||
$STRIP lib*/*.so*
|
||||
|
||||
## copy GLX headers for xorg-server to build
|
||||
#cp -PR include/* $LIB_PREFIX/include
|
||||
|
||||
$MAKEINSTALL -C src/mesa
|
||||
#$MAKEINSTALL -C src/glu
|
||||
|
||||
#DRI_DRIVER_INSTALL_DIR=$SYSROOT_PREFIX/$XORG_PATH_DRI
|
21
packages/graphics/Mesa-openchrome/install
Executable file
21
packages/graphics/Mesa-openchrome/install
Executable file
@ -0,0 +1,21 @@
|
||||
#!/bin/sh
|
||||
|
||||
. config/options
|
||||
|
||||
$SCRIPTS/install libXdamage
|
||||
$SCRIPTS/install $LIBDRM
|
||||
$SCRIPTS/install expat
|
||||
$SCRIPTS/install libXext
|
||||
$SCRIPTS/install libXfixes
|
||||
$SCRIPTS/install libXxf86vm
|
||||
$SCRIPTS/install libX11
|
||||
$SCRIPTS/install libwsbm
|
||||
|
||||
mkdir -p $INSTALL/usr/lib
|
||||
#cp -PR $BUILD/$1*/src/mesa/libmesa.so* $INSTALL/usr/lib
|
||||
#cp -PR $BUILD/$1*/src/mesa/libglapi.so* $INSTALL/usr/lib
|
||||
cp -PR $BUILD/$1*/lib/libGL.so* $INSTALL/usr/lib
|
||||
#cp -PR $BUILD/$1*/lib/libGLU.so* $INSTALL/usr/lib
|
||||
|
||||
mkdir -p $INSTALL/usr/lib/dri
|
||||
cp -PR $BUILD/$1*/lib/*_dri.so $INSTALL/usr/lib/dri
|
@ -0,0 +1,36 @@
|
||||
diff -Naur Mesa-openchrome-svn-20090302/bin/mklib Mesa-openchrome-svn-20090302.patch/bin/mklib
|
||||
--- Mesa-openchrome-svn-20090302/bin/mklib 2009-02-26 12:02:26.000000000 +0100
|
||||
+++ Mesa-openchrome-svn-20090302.patch/bin/mklib 2009-03-03 01:48:26.000000000 +0100
|
||||
@@ -217,9 +217,9 @@
|
||||
if [ "x$LINK" = "x" ] ; then
|
||||
# -linker was not specified so set default link command now
|
||||
if [ $CPLUSPLUS = 1 ] ; then
|
||||
- LINK=g++
|
||||
+ LINK=$CXX
|
||||
else
|
||||
- LINK=gcc
|
||||
+ LINK=$CC
|
||||
fi
|
||||
fi
|
||||
|
||||
diff -Naur Mesa-openchrome-svn-20090302/configs/linux-dri Mesa-openchrome-svn-20090302.patch/configs/linux-dri
|
||||
--- Mesa-openchrome-svn-20090302/configs/linux-dri 2009-02-26 12:02:26.000000000 +0100
|
||||
+++ Mesa-openchrome-svn-20090302.patch/configs/linux-dri 2009-03-03 01:49:56.000000000 +0100
|
||||
@@ -14,6 +14,7 @@
|
||||
#MKDEP_OPTIONS = -MF depend
|
||||
|
||||
OPT_FLAGS = -O2 -g
|
||||
+HOST_OPT_FLAGS = $(OPT_FLAGS)
|
||||
PIC_FLAGS = -fPIC
|
||||
|
||||
# Add '-DGLX_USE_TLS' to ARCH_FLAGS to enable TLS support.
|
||||
@@ -30,6 +31,9 @@
|
||||
CFLAGS = -Wall -Wmissing-prototypes -std=c99 -ffast-math \
|
||||
$(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES) $(ASM_FLAGS)
|
||||
|
||||
+HOST_CFLAGS = -Wall -Wmissing-prototypes -std=c99 -ffast-math \
|
||||
+ $(HOST_OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES) $(ASM_FLAGS)
|
||||
+
|
||||
CXXFLAGS = -Wall $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES)
|
||||
|
||||
GLUT_CFLAGS = -fexceptions
|
1
packages/graphics/Mesa-openchrome/url
Normal file
1
packages/graphics/Mesa-openchrome/url
Normal file
@ -0,0 +1 @@
|
||||
http://sources.openelec.tv/svn/Mesa-openchrome-svn-20090329.tar.bz2
|
105
packages/graphics/Mesa/patches/20_libmesa-shared.diff
Normal file
105
packages/graphics/Mesa/patches/20_libmesa-shared.diff
Normal file
@ -0,0 +1,105 @@
|
||||
diff -Naur mesa-7.1.orig/src/mesa/drivers/directfb/Makefile mesa-7.1/src/mesa/drivers/directfb/Makefile
|
||||
--- mesa-7.1.orig/src/mesa/drivers/directfb/Makefile 2008-08-30 17:04:52.000000000 +0200
|
||||
+++ mesa-7.1/src/mesa/drivers/directfb/Makefile 2008-08-30 17:12:21.000000000 +0200
|
||||
@@ -25,7 +25,7 @@
|
||||
|
||||
DIRECTFBGL_MESA = libidirectfbgl_mesa.so
|
||||
|
||||
-LIBS = $(TOP)/src/mesa/libmesa.a $(TOP)/src/mesa/libglapi.a
|
||||
+LIBS = $(TOP)/src/mesa/libmesa.so $(TOP)/src/mesa/libglapi.so
|
||||
|
||||
|
||||
.c.o:
|
||||
diff -Naur mesa-7.1.orig/src/mesa/drivers/dri/Makefile.template mesa-7.1/src/mesa/drivers/dri/Makefile.template
|
||||
--- mesa-7.1.orig/src/mesa/drivers/dri/Makefile.template 2008-08-30 17:04:52.000000000 +0200
|
||||
+++ mesa-7.1/src/mesa/drivers/dri/Makefile.template 2008-08-30 17:07:18.000000000 +0200
|
||||
@@ -1,6 +1,6 @@
|
||||
# -*-makefile-*-
|
||||
|
||||
-MESA_MODULES = $(TOP)/src/mesa/libmesa.a
|
||||
+MESA_MODULES = $(TOP)/src/mesa/libmesa.so
|
||||
|
||||
COMMON_SOURCES = \
|
||||
../common/utils.c \
|
||||
diff -Naur mesa-7.1.orig/src/mesa/drivers/fbdev/Makefile mesa-7.1/src/mesa/drivers/fbdev/Makefile
|
||||
--- mesa-7.1.orig/src/mesa/drivers/fbdev/Makefile 2008-08-30 17:04:52.000000000 +0200
|
||||
+++ mesa-7.1/src/mesa/drivers/fbdev/Makefile 2008-08-30 17:08:06.000000000 +0200
|
||||
@@ -14,7 +14,7 @@
|
||||
-I$(TOP)/src/mesa \
|
||||
-I$(TOP)/src/mesa/main
|
||||
|
||||
-CORE_MESA = $(TOP)/src/mesa/libmesa.a $(TOP)/src/mesa/libglapi.a
|
||||
+CORE_MESA = $(TOP)/src/mesa/libmesa.so $(TOP)/src/mesa/libglapi.so
|
||||
|
||||
|
||||
.c.o:
|
||||
diff -Naur mesa-7.1.orig/src/mesa/drivers/osmesa/Makefile mesa-7.1/src/mesa/drivers/osmesa/Makefile
|
||||
--- mesa-7.1.orig/src/mesa/drivers/osmesa/Makefile 2008-08-30 17:04:52.000000000 +0200
|
||||
+++ mesa-7.1/src/mesa/drivers/osmesa/Makefile 2008-08-30 17:09:15.000000000 +0200
|
||||
@@ -19,7 +19,7 @@
|
||||
-I$(TOP)/src/mesa \
|
||||
-I$(TOP)/src/mesa/main
|
||||
|
||||
-CORE_MESA = $(TOP)/src/mesa/libmesa.a $(TOP)/src/mesa/libglapi.a
|
||||
+CORE_MESA = $(TOP)/src/mesa/libmesa.so $(TOP)/src/mesa/libglapi.so
|
||||
|
||||
|
||||
.PHONY: osmesa8
|
||||
diff -Naur mesa-7.1.orig/src/mesa/drivers/x11/Makefile mesa-7.1/src/mesa/drivers/x11/Makefile
|
||||
--- mesa-7.1.orig/src/mesa/drivers/x11/Makefile 2008-08-30 17:04:52.000000000 +0200
|
||||
+++ mesa-7.1/src/mesa/drivers/x11/Makefile 2008-08-30 17:10:53.000000000 +0200
|
||||
@@ -43,7 +43,7 @@
|
||||
-I$(TOP)/src/mesa \
|
||||
-I$(TOP)/src/mesa/main
|
||||
|
||||
-CORE_MESA = $(TOP)/src/mesa/libmesa.a $(TOP)/src/mesa/libglapi.a
|
||||
+CORE_MESA = $(TOP)/src/mesa/libmesa.so $(TOP)/src/mesa/libglapi.so
|
||||
|
||||
|
||||
|
||||
diff -Naur mesa-7.1.orig/src/mesa/Makefile mesa-7.1/src/mesa/Makefile
|
||||
--- mesa-7.1.orig/src/mesa/Makefile 2008-08-30 17:04:51.000000000 +0200
|
||||
+++ mesa-7.1/src/mesa/Makefile 2008-08-30 17:11:54.000000000 +0200
|
||||
@@ -20,8 +20,8 @@
|
||||
|
||||
|
||||
# Default: build dependencies, then asm_subdirs, then convenience
|
||||
-# libs (.a) and finally the device drivers:
|
||||
-default: depend asm_subdirs libmesa.a libglapi.a driver_subdirs
|
||||
+# libs (.so) and finally the device drivers:
|
||||
+default: depend asm_subdirs libmesa.so libglapi.so driver_subdirs
|
||||
|
||||
|
||||
|
||||
@@ -29,17 +29,17 @@
|
||||
# Helper libraries used by many drivers:
|
||||
|
||||
# Make archive of core mesa object files
|
||||
-libmesa.a: $(MESA_OBJECTS)
|
||||
- @ $(MKLIB) -o mesa -static $(MESA_OBJECTS)
|
||||
+libmesa.so: $(MESA_OBJECTS)
|
||||
+ @ $(MKLIB) -o mesa -dlopen $(MESA_OBJECTS)
|
||||
|
||||
# Make archive of gl* API dispatcher functions only
|
||||
-libglapi.a: $(GLAPI_OBJECTS)
|
||||
- @ $(MKLIB) -o glapi -static $(GLAPI_OBJECTS)
|
||||
+libglapi.so: $(GLAPI_OBJECTS)
|
||||
+ @ $(MKLIB) -o glapi -dlopen $(GLAPI_OBJECTS)
|
||||
|
||||
|
||||
######################################################################
|
||||
# Device drivers
|
||||
-driver_subdirs: libmesa.a libglapi.a
|
||||
+driver_subdirs: libmesa.so libglapi.so
|
||||
(cd drivers && $(MAKE))
|
||||
|
||||
|
||||
@@ -127,7 +127,7 @@
|
||||
clean:
|
||||
-rm -f */*.o
|
||||
-rm -f */*/*.o
|
||||
- -rm -f depend depend.bak libmesa.a libglapi.a
|
||||
+ -rm -f depend depend.bak libmesa.so libglapi.so
|
||||
-rm -f drivers/*/*.o
|
||||
-rm -f *.pc
|
||||
-@cd drivers/dri && $(MAKE) clean
|
27
packages/graphics/libdrm-newttm/build
Executable file
27
packages/graphics/libdrm-newttm/build
Executable file
@ -0,0 +1,27 @@
|
||||
#!/bin/sh
|
||||
|
||||
. config/options
|
||||
|
||||
$SCRIPTS/build toolchain
|
||||
$SCRIPTS/build libpthread-stubs
|
||||
$SCRIPTS/build udev
|
||||
$SCRIPTS/build linux
|
||||
|
||||
cd $BUILD/$1*
|
||||
./configure --host=$TARGET_NAME \
|
||||
--build=$HOST_NAME \
|
||||
--prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
--disable-static \
|
||||
--enable-shared \
|
||||
--enable-udev \
|
||||
--enable-largefile
|
||||
|
||||
$MAKE
|
||||
$MAKE -C linux-core LINUXDIR=$(kernel_path) DRM_MODULES=openchrome
|
||||
|
||||
|
||||
$STRIP libdrm/.libs/libdrm.so*
|
||||
#$STRIP libdrm/intel/.libs/libdrm_intel.so*
|
||||
|
||||
$MAKEINSTALL
|
29
packages/graphics/libdrm-newttm/install
Executable file
29
packages/graphics/libdrm-newttm/install
Executable file
@ -0,0 +1,29 @@
|
||||
#!/bin/sh
|
||||
|
||||
. config/options
|
||||
|
||||
$SCRIPTS/build module-init-tools
|
||||
$SCRIPTS/install linux system
|
||||
|
||||
VER=`ls $BUILD/linux*/modules/lib/modules`
|
||||
|
||||
mkdir -p $INSTALL/usr/lib
|
||||
cp -PR $BUILD/$1*/libdrm/.libs/libdrm.so* $INSTALL/usr/lib
|
||||
#cp -PR $BUILD/$1*/libdrm/intel/.libs/libdrm_intel.so* $INSTALL/usr/lib
|
||||
|
||||
#mkdir -p $INSTALL/lib/modules/$VER
|
||||
|
||||
mkdir -p "`ls -d $INSTALL/lib/modules/*`/kernel/drivers/gpu/drm"
|
||||
cp -r $BUILD/$1*/linux-core/drm.ko $INSTALL/lib/modules/*/kernel/drivers/gpu/drm
|
||||
|
||||
mkdir -p "`ls -d $INSTALL/lib/modules/*`/kernel/drivers/gpu/drm/openchrome"
|
||||
cp -r $BUILD/$1*/linux-core/openchrome/*.ko $INSTALL/lib/modules/*/kernel/drivers/gpu/drm/openchrome
|
||||
|
||||
for MOD in `find $INSTALL/lib/modules/ -name *.ko`; do
|
||||
$STRIP --strip-debug $MOD
|
||||
done
|
||||
|
||||
$BUILD/module-init-tool*/depmod -b $INSTALL -v $VER > /dev/null
|
||||
for i in `ls $INSTALL/lib/modules/*/modules.* | grep -v modules.dep | grep -v modules.alias | grep -v modules.symbols`; do
|
||||
rm -f $i
|
||||
done
|
1
packages/graphics/libdrm-newttm/url
Normal file
1
packages/graphics/libdrm-newttm/url
Normal file
@ -0,0 +1 @@
|
||||
http://sources.openelec.tv/svn/libdrm-newttm-svn-20090329.2.tar.bz2
|
20
packages/x11/driver/xf86-video-openchrome-ttm/build
Executable file
20
packages/x11/driver/xf86-video-openchrome-ttm/build
Executable file
@ -0,0 +1,20 @@
|
||||
#!/bin/sh
|
||||
|
||||
. config/options
|
||||
|
||||
$SCRIPTS/build toolchain
|
||||
|
||||
cd $BUILD/$1*
|
||||
./configure --host=$TARGET_NAME \
|
||||
--build=$HOST_NAME \
|
||||
--prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
--disable-static \
|
||||
--enable-shared \
|
||||
--enable-dri \
|
||||
--with-xorg-module-dir=$XORG_PATH_MODULES
|
||||
|
||||
make
|
||||
|
||||
$STRIP src/.libs/*.so
|
||||
#$STRIP libxvmc/.libs/*.so*
|
@ -0,0 +1,30 @@
|
||||
# NOTE: Comments in openchrome 0.2.1 driver source indicate this device does not
|
||||
# exist in the wild, so it has been disabled for now.
|
||||
#alias pcivideo:v00001106d00003022sv*sd*bc*sc*i* openchrome
|
||||
|
||||
# 1106:3108 - K8M800 (PCI_CHIP_VT3204)
|
||||
alias pcivideo:v00001106d00003108sv*sd*bc*sc*i* openchrome
|
||||
|
||||
# 1106:3118 - PM800/PM880/CN400 (PCI_CHIP_VT3259)
|
||||
alias pcivideo:v00001106d00003118sv*sd*bc*sc*i* openchrome
|
||||
|
||||
# 1106:3122 - CLE266 (PCI_CHIP_CLE3122)
|
||||
alias pcivideo:v00001106d00003122sv*sd*bc*sc*i* openchrome
|
||||
|
||||
# 1106:7205 - KM400/KN400 (PCI_CHIP_VT3205)
|
||||
alias pcivideo:v00001106d00007205sv*sd*bc*sc*i* openchrome
|
||||
|
||||
# 1106:3344 - VM800 (PCI_CHIP_VT3314)
|
||||
alias pcivideo:v00001106d00003344sv*sd*bc*sc*i* openchrome
|
||||
|
||||
# 1106:3157 - CX700 (PCI_CHIP_VT3324)
|
||||
alias pcivideo:v00001106d00003157sv*sd*bc*sc*i* openchrome
|
||||
|
||||
# 1106:3343 - P4M890 (PCI_CHIP_VT3327)
|
||||
alias pcivideo:v00001106d00003343sv*sd*bc*sc*i* openchrome
|
||||
|
||||
# 1106:3230 - K8M890 (PCI_CHIP_VT3336)
|
||||
alias pcivideo:v00001106d00003230sv*sd*bc*sc*i* openchrome
|
||||
|
||||
# 1106:3371 - P4M900 (PCI_CHIP_VT3364)
|
||||
alias pcivideo:v00001106d00003371sv*sd*bc*sc*i* openchrome
|
14
packages/x11/driver/xf86-video-openchrome-ttm/install
Executable file
14
packages/x11/driver/xf86-video-openchrome-ttm/install
Executable file
@ -0,0 +1,14 @@
|
||||
#!/bin/sh
|
||||
|
||||
. config/options
|
||||
|
||||
PKG_DIR=`find $PACKAGES -type d -name $1`
|
||||
|
||||
mkdir -p $INSTALL/$XORG_PATH_MODULES/drivers
|
||||
cp $BUILD/$1*/src/.libs/*_drv.so $INSTALL/$XORG_PATH_MODULES/drivers
|
||||
|
||||
#mkdir -p $INSTALL/usr/lib
|
||||
#cp $BUILD/$1*/libxvmc/.libs/*.so* $INSTALL/usr/lib
|
||||
|
||||
mkdir -p $INSTALL/usr/share/hwdata/videoaliases
|
||||
cp $PKG_DIR/config/openchrome.xinf $INSTALL/usr/share/hwdata/videoaliases
|
@ -0,0 +1,30 @@
|
||||
diff -Naur xf86-video-openchrome-20090302/configure xf86-video-openchrome-20090302.patch/configure
|
||||
--- xf86-video-openchrome-20090302/configure 2009-03-03 01:13:31.000000000 +0100
|
||||
+++ xf86-video-openchrome-20090302.patch/configure 2009-03-03 01:59:36.000000000 +0100
|
||||
@@ -13330,7 +13330,7 @@
|
||||
if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
|
||||
$as_echo_n "(cached) " >&6
|
||||
else
|
||||
- test "$cross_compiling" = yes &&
|
||||
+ test "$cross_compiling" = dummy &&
|
||||
{ { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
|
||||
$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
|
||||
{ (exit 1); exit 1; }; }
|
||||
@@ -13358,7 +13358,7 @@
|
||||
if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
|
||||
$as_echo_n "(cached) " >&6
|
||||
else
|
||||
- test "$cross_compiling" = yes &&
|
||||
+ test "$cross_compiling" = dummy &&
|
||||
{ { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
|
||||
$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
|
||||
{ (exit 1); exit 1; }; }
|
||||
@@ -13386,7 +13386,7 @@
|
||||
if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
|
||||
$as_echo_n "(cached) " >&6
|
||||
else
|
||||
- test "$cross_compiling" = yes &&
|
||||
+ test "$cross_compiling" = dummy &&
|
||||
{ { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
|
||||
$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
|
||||
{ (exit 1); exit 1; }; }
|
1
packages/x11/driver/xf86-video-openchrome-ttm/url
Normal file
1
packages/x11/driver/xf86-video-openchrome-ttm/url
Normal file
@ -0,0 +1 @@
|
||||
http://sources.openelec.tv/svn/xf86-video-openchrome-20090329.tar.bz2
|
@ -0,0 +1,39 @@
|
||||
diff -Naur xf86-video-openchrome-0.2.903.orig/configure xf86-video-openchrome-0.2.903/configure
|
||||
--- xf86-video-openchrome-0.2.903.orig/configure 2008-08-30 17:34:34.000000000 +0200
|
||||
+++ xf86-video-openchrome-0.2.903/configure 2008-08-30 17:34:50.000000000 +0200
|
||||
@@ -21163,7 +21163,7 @@
|
||||
if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
|
||||
echo $ECHO_N "(cached) $ECHO_C" >&6
|
||||
else
|
||||
- test "$cross_compiling" = yes &&
|
||||
+ test "$cross_compiling" = dummy &&
|
||||
{ { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
|
||||
echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
|
||||
{ (exit 1); exit 1; }; }
|
||||
@@ -21188,7 +21188,7 @@
|
||||
if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
|
||||
echo $ECHO_N "(cached) $ECHO_C" >&6
|
||||
else
|
||||
- test "$cross_compiling" = yes &&
|
||||
+ test "$cross_compiling" = dummy &&
|
||||
{ { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
|
||||
echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
|
||||
{ (exit 1); exit 1; }; }
|
||||
@@ -21213,7 +21213,7 @@
|
||||
if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
|
||||
echo $ECHO_N "(cached) $ECHO_C" >&6
|
||||
else
|
||||
- test "$cross_compiling" = yes &&
|
||||
+ test "$cross_compiling" = dummy &&
|
||||
{ { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
|
||||
echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
|
||||
{ (exit 1); exit 1; }; }
|
||||
@@ -21563,7 +21563,7 @@
|
||||
if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
|
||||
echo $ECHO_N "(cached) $ECHO_C" >&6
|
||||
else
|
||||
- test "$cross_compiling" = yes &&
|
||||
+ test "$cross_compiling" = dummy &&
|
||||
{ { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
|
||||
echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
|
||||
{ (exit 1); exit 1; }; }
|
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user