[Lunar-commits] r16250 - in moonbase/trunk/kernel: . XOrg-drm
Auke Kok
sofar at lunar-linux.org
Sat Aug 27 23:25:25 UTC 2005
Author: sofar
Date: 2005-08-27 23:25:24 +0000 (Sat, 27 Aug 2005)
New Revision: 16250
Added:
moonbase/trunk/kernel/XOrg-drm/
moonbase/trunk/kernel/XOrg-drm/BUILD
moonbase/trunk/kernel/XOrg-drm/CONFIGURE
moonbase/trunk/kernel/XOrg-drm/DETAILS
moonbase/trunk/kernel/XOrg-drm/drivers
Log:
This installs the kernel DRM drivers from the XOrg-6.8.2 release. Can't make it any easier for anyone. You can select the drivers, it remembers your selection, and it also installs the driver only and not the partial module cruft.
Added: moonbase/trunk/kernel/XOrg-drm/BUILD
===================================================================
--- moonbase/trunk/kernel/XOrg-drm/BUILD 2005-08-27 20:45:55 UTC (rev 16249)
+++ moonbase/trunk/kernel/XOrg-drm/BUILD 2005-08-27 23:25:24 UTC (rev 16250)
@@ -0,0 +1,19 @@
+(
+
+ KVER=$(grep UTS_RELEASE /usr/src/linux/include/linux/version.h | cut -d '"' -f2)
+ KSUFFIX=o
+ if echo $KVER | grep -q "^2.6." ; then
+ KSUFFIX=ko
+ fi
+
+ mv doc no-docs &&
+ cd extras/drm/linux &&
+ make DRM_MODULES="$DRM_MODULES" &&
+ prepare_install &&
+ mkdir -p /lib/modules/$KVER/kernel/drivers/drm &&
+ for MOD in $DRM_MODULES; do
+ install $MOD.$KSUFFIX /lib/modules/$KVER/kernel/drivers/drm/
+ done &&
+ depmod -a $KVER
+
+) > $C_FIFO 2>&1
Added: moonbase/trunk/kernel/XOrg-drm/CONFIGURE
===================================================================
--- moonbase/trunk/kernel/XOrg-drm/CONFIGURE 2005-08-27 20:45:55 UTC (rev 16249)
+++ moonbase/trunk/kernel/XOrg-drm/CONFIGURE 2005-08-27 23:25:24 UTC (rev 16250)
@@ -0,0 +1,29 @@
+# only lin -r will trigger the driver chooser
+if [ -n "$DRM_MODULES" ] || [ -n "$RECONFIGURE" ] || query "Select DRM drivers to build?" n ; then
+ ALL_DRM_MODULES=$(cat $SCRIPT_DIRECTORY/drivers | cut -d: -f1)
+ DRM_MODULES=$(get_module_config DRM_MODULES)
+ if [ -z "$DRM_MODULES" ]; then
+ DRM_MODULES=$(grep ':on$' $SCRIPT_DIRECTORY/drivers | cut -d: -f1)
+ fi
+
+ # if it's empty we just enable all
+ list_xorg_drivers()
+ {
+ (
+ unset IFS
+ for DRIVER in $ALL_DRM_MODULES; do
+ echo $DRIVER
+ echo $(grep ^$DRIVER: $SCRIPT_DIRECTORY/drivers | cut -d: -f2)
+ if echo $DRM_MODULES | grep -qw $DRIVER; then
+ echo on
+ else
+ echo off
+ fi
+ done
+ )
+ }
+
+ IFS="$TAB_ENTER_IFS" DRM_MODULES=`dialog --backtitle "XOrg DRM driver selection" --stdout --separate-output --checklist "Key: [X] = on, [ ] = off" 0 0 0 $(list_xorg_drivers)`
+ # hack to strip newlines
+ set_module_config DRM_MODULES "$(echo $DRM_MODULES)"
+fi
Added: moonbase/trunk/kernel/XOrg-drm/DETAILS
===================================================================
--- moonbase/trunk/kernel/XOrg-drm/DETAILS 2005-08-27 20:45:55 UTC (rev 16249)
+++ moonbase/trunk/kernel/XOrg-drm/DETAILS 2005-08-27 23:25:24 UTC (rev 16250)
@@ -0,0 +1,15 @@
+ MODULE=XOrg-drm
+ VERSION=6.8.2
+ SOURCE=X11R${VERSION}-src1.tar.gz
+SOURCE_DIRECTORY=$BUILD_DIRECTORY/xc
+ SOURCE_URL[0]=http://xorg.freedesktop.org/X11R${VERSION}/src/
+ SOURCE_URL[1]=http://ftp.skynet.be/pub/ftp.x.org/pub/X11R${VERSION}/src/
+ SOURCE_VFY=sha1:23c60680274062a1db17f646a8388149309dc45c
+ WEB_SITE=http://xorg.freedesktop.org/
+ ENTERED=20050828
+ UPDATED=20050829
+ SHORT="Kernel DRM modules for XOrg"
+cat << EOF
+This module provides the kernel DRM modules for XOrg 6.8.2 separately
+from the XOrg module.
+EOF
Added: moonbase/trunk/kernel/XOrg-drm/drivers
===================================================================
--- moonbase/trunk/kernel/XOrg-drm/drivers 2005-08-27 20:45:55 UTC (rev 16249)
+++ moonbase/trunk/kernel/XOrg-drm/drivers 2005-08-27 23:25:24 UTC (rev 16250)
@@ -0,0 +1,12 @@
+gamma:Gamma
+tdfx:Trident
+r128:r128
+radeon:Ati
+mga:Matrox
+i810:Intel
+i830:Intel
+i915:Intel
+sis:sis
+savage:savage
+via:Embedded chipsets
+mach64:Mach
More information about the Lunar-commits
mailing list