Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

gdev: fixed configure files

  • Loading branch information...
commit 7c494dac69bcc9349cf807177ca1a39e2c34f557 1 parent 0a9ed18
Shinpei Kato authored
Showing with 28 additions and 24 deletions.
  1. +1 −1  cuda/configure
  2. +9 −8 driver/configure
  3. +18 −15 runtime/configure
View
2  cuda/configure
@@ -1,7 +1,7 @@
#!/bin/sh
# libcuda or kcuda
-target=''
+target='libcuda'
# parse the given options.
for option
View
17 driver/configure
@@ -1,10 +1,11 @@
#!/bin/sh
-gdev="gdev"
-common="common"
+gdev='gdev'
+common='common'
-# configure options.
-driver="pscnv" # use pscnv by default.
+# pscnv or nouveau
+backend='pscnv'
+# debug on/off
debug=0
# parse the given options.
@@ -16,17 +17,17 @@ do
esac
case "$option" in
- --driver=*)
- driver="$optarg" ;;
+ --backend=*)
+ backend="$optarg" ;;
--debug)
debug=1 ;;
esac
done
rm -f $gdev.ko
-ln -s $driver.ko $gdev.ko
+ln -s $backend.ko $gdev.ko
cp -fr ../$gdev/* ./
-cp -fr ../$driver/* ./
+cp -fr ../$backend/* ./
cp -fr ../../$common/* ./
cat ../$gdev/Makefile >> Makefile
./configure
View
33 runtime/configure
@@ -1,12 +1,13 @@
#!/bin/sh
-topdir="../.."
-gdev="gdev"
-common="common"
+topdir='../..'
+common='common'
-# configure options.
-runtime="kernel" # use kernel-level runtime by default
-driver="pscnv" # use pscnv by default.
+# kernel-space Gdev or user-space Gdev
+target='kernel'
+# pscnv or nouveau
+backend='pscnv'
+# debug on/off
debug=0
# parse the given options.
@@ -18,20 +19,22 @@ do
esac
case "$option" in
- --runtime=*)
- runtime="$optarg" ;;
- --driver=*)
- driver="$optarg" ;;
+ --target=*)
+ target="$optarg" ;;
+ --backend=*)
+ backend="$optarg" ;;
--debug)
debug=1 ;;
esac
done
-if [ $runtime = 'kernel' ]; then
-cp -f ../$runtime/* .
+if [ $target = 'kernel' ] ; then
+cp -f ../kernel/* .
cp -f $topdir/$common/*.h .
-else
-cp -f ../$runtime/$gdev/* .
-cp -f ../$runtime/$driver/* .
+elif [ $target = 'user' ] ; then
+cp -f ../user/gdev/* .
+cp -f ../user/$backend/* .
cp -f $topdir/$common/* .
+else
+echo "Error: invalid target '$target'"
fi
Please sign in to comment.
Something went wrong with that request. Please try again.