[Lunar-commits] libdrm: check instead of asking

Auke Kok sofar at foo-projects.org
Mon Jun 13 06:46:36 CEST 2011



On Sat, 14 May 2011 21:20:23 +0200, Zbigniew
Luszpinski<zbiggy at lunar-linux.org> wrote:
> commit e91a8c3a36f59832be371b6a5a14fae5471e7182
> Author: Zbigniew Luszpinski <zbiggy at lunar-linux.org>
> Date:   Sat May 14 21:20:23 2011 +0200
> 
>     libdrm: check instead of asking

well, that's a lot of code in order to save one .so file....

why not just enable these by default? that way, one might just able to save
a copy and reuse it when you need it on another box, or you could actually
reuse an image in a VM, or... you could build an ISO image with this
builtin and use it in VMWare...

I like it when people clean up, but this patch goes way too far. Just
enable these drivers for everyone... The lspci trick is really really bad
though, the older code at least had some merit.

Auke



> ---
>  xorg7/extra/libdrm/BUILD     |   15 ++++++++++++---
>  xorg7/extra/libdrm/CONFIGURE |    2 --
>  2 files changed, 12 insertions(+), 5 deletions(-)
> 
> diff --git a/xorg7/extra/libdrm/BUILD b/xorg7/extra/libdrm/BUILD
> index f559934..6a33da2 100644
> --- a/xorg7/extra/libdrm/BUILD
> +++ b/xorg7/extra/libdrm/BUILD
> @@ -1,13 +1,22 @@
>  (
>  
> -  OPTS+=" --enable-udev"  &&
> +  OPTS+=" --enable-udev --enable-libkms --disable-radeon
--disable-intel" 
> &&
>  
>    # Detect VMware VGA virtual 3D card and add driver for it
> -  # (returns exit code 1, if no VMware, so no && at end of line!)
> -  VGA=`lspci | grep 'VGA.*VMware.*SVGA.*'`
> +  # (returns exit code 1, if no VGA, so no && at end of line!)
> +  VGA=`lspci | grep 'VGA'`
>    if [[ $VGA == *VMware* ]] ; then
>       OPTS+=" --enable-vmwgfx-experimental-api"
>    fi &&
> +  if [[ $VGA == *nVidia* ]] ; then
> +     OPTS+=" --enable-nouveau-experimental-api"
> +  fi &&
> +  if [[ $VGA == *Intel* ]] ; then
> +     OPTS=${OPTS//disable-intel/enable-intel}
> +  fi &&
> +  if [[ $VGA == *ATI* ]] ; then
> +     OPTS=${OPTS//disable-radeon/enable-radeon}
> +  fi &&
>  
>    default_build
>  
> diff --git a/xorg7/extra/libdrm/CONFIGURE b/xorg7/extra/libdrm/CONFIGURE
> deleted file mode 100644
> index 53ef007..0000000
> --- a/xorg7/extra/libdrm/CONFIGURE
> +++ /dev/null
> @@ -1,2 +0,0 @@
> -mquery INTEL  "Enable support for  intel's KMS API?" y "--enable-intel" 
> "--disable-intel"
> -mquery RADEON "Enable support for radeon's KMS API?" y "--enable-radeon"
> "--disable-radeon"
> _______________________________________________
> Lunar-commits mailing list
> Lunar-commits at lunar-linux.org
> http://foo-projects.org/mailman/listinfo/lunar-commits



More information about the Lunar-dev mailing list