From 3fd2a827e19ff31f6efd73bc94724cb1fbd135f7 Mon Sep 17 00:00:00 2001 From: Kean Johnston Date: Sat, 2 Dec 2006 15:23:13 -0800 Subject: Only compile sparc-specific video drivers on sparc architectures. --- build.sh | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/build.sh b/build.sh index b013e3a..4926202 100755 --- a/build.sh +++ b/build.sh @@ -338,11 +338,11 @@ build_driver_input() { build_driver_video() { HOST_OS=`uname -s` + HOST_CPU=`uname -m` # Some drivers are only buildable on some OS'es case $HOST_OS in *FreeBSD*) - HOST_CPU=`uname -m` case $HOST_CPU in sparc64) build driver xf86-video-sunffb @@ -364,6 +364,20 @@ build_driver_video() { ;; esac + # Some drivers are only buildable on some architectures + case $HOST_CPU in + *sparc*) + build driver xf86-video-sunbw2 + build driver xf86-video-suncg14 + build driver xf86-video-suncg3 + build driver xf86-video-suncg6 + build driver xf86-video-sunleo + build driver xf86-video-suntcx + ;; + *) + ;; + esac + build driver xf86-video-apm build driver xf86-video-ark build driver xf86-video-ast @@ -390,12 +404,6 @@ build_driver_video() { build driver xf86-video-savage build driver xf86-video-siliconmotion build driver xf86-video-sis - build driver xf86-video-sunbw2 - build driver xf86-video-suncg14 - build driver xf86-video-suncg3 - build driver xf86-video-suncg6 - build driver xf86-video-sunleo - build driver xf86-video-suntcx build driver xf86-video-tdfx build driver xf86-video-tga build driver xf86-video-trident -- cgit v1.2.3