[PATCH:modular] build.sh: only build xf86-video-geode & xf86-video-xgixp on Linux

Gaetan Nadon memsize at videotron.ca
Fri Jul 2 17:28:01 PDT 2010


On Thu, 2010-07-01 at 19:52 -0700, Alan Coopersmith wrote:

> Both #include Linux specific headers such as <linux/types.h> so can't
> be built on non-Linux platforms.
> 
> Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
> ---
>  build.sh |   18 ++++++++++--------
>  1 files changed, 10 insertions(+), 8 deletions(-)
> 
> diff --git a/build.sh b/build.sh
> index 5eb2cd3..d5884d8 100755
> --- a/build.sh
> +++ b/build.sh
> @@ -509,6 +509,7 @@ build_driver_video() {
>  	    build driver xf86-video-sisusb
>  	    build driver xf86-video-sunffb
>  	    build driver xf86-video-v4l
> +	    build driver xf86-video-xgixp
>  	    ;;
>  	*)
>  	    ;;
> @@ -531,6 +532,15 @@ build_driver_video() {
>  	    ;;
>      esac
>  
> +    # Some drivers are only buildable on some architectures of some OS's
> +    case "$HOST_CPU"-"$HOST_OS" in
> +	i*86*-*Linux*)
> +	    build driver xf86-video-geode
> +	    ;;
> +	*)
> +	    ;;
> +    esac
> +
>      build driver xf86-video-apm
>      build driver xf86-video-ark
>      build driver xf86-video-ast
> @@ -539,13 +549,6 @@ build_driver_video() {
>      build driver xf86-video-cirrus
>      build driver xf86-video-dummy
>      build driver xf86-video-fbdev
> -    case $HOST_CPU in
> -	i*86*)
> -	    build driver xf86-video-geode
> -	    ;;
> -	*)
> -	    ;;
> -    esac
>  #    build driver xf86-video-glide
>      build driver xf86-video-glint
>      build driver xf86-video-i128
> @@ -571,7 +574,6 @@ build_driver_video() {
>      build driver xf86-video-vmware
>      build driver xf86-video-voodoo
>      build driver xf86-video-xgi
> -    build driver xf86-video-xgixp
>  }
>  
>  # The server must be built before the drivers


Reviewed-by: Gaetan Nadon <memsize at videotron.ca>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.x.org/archives/xorg-devel/attachments/20100702/26b97959/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
URL: <http://lists.x.org/archives/xorg-devel/attachments/20100702/26b97959/attachment.pgp>


More information about the xorg-devel mailing list