summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKean Johnston <jkj@keats.unix42.com>2006-12-02 15:23:13 -0800
committerKean Johnston <jkj@keats.unix42.com>2006-12-02 15:23:13 -0800
commit3fd2a827e19ff31f6efd73bc94724cb1fbd135f7 (patch)
tree50716b89dad87770e0226eb2ceff6d3a66eec50b
parenta09605b79ae50834b4dd7285c7ee90527b4c0708 (diff)
Only compile sparc-specific video drivers on sparc architectures.
-rwxr-xr-xbuild.sh22
1 files 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