#!/bin/bash # # Copyright 2005 by Red Hat, Inc. # Author: Mike A. Harris # # License: MIT/X11 # # redhat-mesa-driver-install: # # The purpose of this script is to address some inadequacies of the current # Mesa 6.3.2 upstream install script. We ship DRI on some OS/arch # combinations, and disable it on other combinations, so we need a simple # way to control wether or not DRI modules will get installed, and an easy # way of specifying which drivers we'll ship on a particular OS/arch # combination. #--------------------------------------------------------------------- # NOTE: FC5's current kernel has the following DRM modules. Some of them # shouldn't be there at all (ppc64), some don't make much sense (via on # ppc). We'll have to talk to kernel folk to get the ones disabled that # don't make sense, or which we don't want to ship for some reason or # another. # # for a in i586 i686 ia64 ppc ppc64 s390x x86_64 ; do (echo -n "${a}:" \ # rpm -qlp ' first" echo " Be sure to set 'DRIMODULE_DESTDIR=' first" echo " Be sure to set 'DRI_DRIVERS=' first" exit 1 fi if [ -z $DRIMODULE_SRCDIR ] ; then echo "Error: DRIMODULE_SRCDIR not set in environment" exit fi if [ -z $DRIMODULE_DESTDIR ] ; then echo "Error: DRIMODULE_DESTDIR not set in environment" exit else [ ! -d $DRIMODULE_DESTDIR ] && mkdir -p $DRIMODULE_DESTDIR fi #DRIMODULE_DESTDIR=${1##DRIMODULE_DESTDIR=} ARCH=$1 if [ -z "$DRI_DRIVERS" ]; then DRI_DRIVERS="$DRI_DRIVERS_ALL" fi # Install DRI drivers for driver in $DRI_DRIVERS ; do set -vx install -m 0755 $DRIMODULE_SRCDIR/${driver}_dri.so $DRIMODULE_DESTDIR/ set - done