summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authornick <nick@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-12-01 15:22:10 +0000
committernick <nick@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-12-01 15:22:10 +0000
commit88a0a29956865df9eb3e7400dc8300ecc57c1d97 (patch)
tree0ede87d0ed9a625ed59db8583b31b5486586bc69 /drivers
parent2574e86cf9cd0bd28d0db7d60451436dd88b46e5 (diff)
downloadmpv-88a0a29956865df9eb3e7400dc8300ecc57c1d97.tar.bz2
mpv-88a0a29956865df9eb3e7400dc8300ecc57c1d97.tar.xz
Auto-install stuff
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3245 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'drivers')
-rw-r--r--drivers/radeon/Makefile13
-rw-r--r--drivers/radeon/README23
2 files changed, 18 insertions, 18 deletions
diff --git a/drivers/radeon/Makefile b/drivers/radeon/Makefile
index 950a300439..b1cdad459d 100644
--- a/drivers/radeon/Makefile
+++ b/drivers/radeon/Makefile
@@ -1,5 +1,10 @@
KERNEL_INCLUDES = /usr/src/linux/include
INCLUDES = -I$(KERNEL_INCLUDES)
+# auto install
+CONFIG_SHELL=/bin/sh -c
+KERNEL_VERSION=$(shell $(CONFIG_SHELL) 'uname -r')
+MOD_PATH_PREFIX=
+MOD_PATH=$(MOD_PATH_PREFIX)/lib/modules/$(KERNEL_VERSION)/kernel/drivers/video/
#
# standard CFLAGS
@@ -28,5 +33,11 @@ clean:
rm -f *.o *~
install:
- @echo Please copy *.o files to '/lib/modules/LINUX_VER/kernel/drivers/video' folder
+ mkdir -p $(MOD_PATH)
+ cp radeonfb.o $(MOD_PATH)
+ cp radeon_vid.o $(MOD_PATH)
+ cp rage128_vid.o $(MOD_PATH)
+ depmod -a
+ mknod /dev/radeon_vid c 178 0
+ mknod /dev/rage128_vid c 178 0
diff --git a/drivers/radeon/README b/drivers/radeon/README
index efa1938e9d..ab716ba4eb 100644
--- a/drivers/radeon/README
+++ b/drivers/radeon/README
@@ -10,11 +10,9 @@ Linus distribution.
Alternative way:
~~~~~~~~~~~~~~~~
-Simply type 'make' command in this directory then copy results ( *.o files ) to:
-/lib/modules/$(LINUX_VER)/kernel/drivers/video
-directory.
-Don't forget about:
-depmod -a
+Simply type two commands in this directory:
+make
+make install
Anyway you should have 'Frame buffer support' compiled into linux-kernel
and at least '8bpp packed pixel support' compiled and installed as module.
@@ -32,18 +30,9 @@ support for rage128 / rage128pro chips).
Installation:
~~~~~~~~~~~~~
-After building modules just copy them to:
-/lib/modules/$(LINUX_VER)/kernel/drivers/video
-directory.
-Don't forget about:
-depmod -a
-
-If you are doing it first time then create the device then execute
-following command:
-mknod /dev/radeon_vid c 178 0
-for radeon_vid.o
-mknod /dev/rage128_vid c 178 0
-for rage128_vid.o
+Simply type two commands in this directory:
+make
+make install
Using with mplayer:
~~~~~~~~~~~~~~~~~~~