mirror of
https://github.com/mpv-player/mpv
synced 2025-02-27 10:50:53 +00:00
building improvements
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1922 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
07a144c6ad
commit
8558da96ca
31
drivers/radeon/Makefile
Normal file
31
drivers/radeon/Makefile
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
KERNEL_INCLUDES = /usr/src/linux/include
|
||||||
|
INCLUDES = -I$(KERNEL_INCLUDES)
|
||||||
|
|
||||||
|
#
|
||||||
|
# standard CFLAGS
|
||||||
|
#
|
||||||
|
|
||||||
|
CPPFLAGS := -D__KERNEL__ -I$(KERNEL_INCLUDES)
|
||||||
|
|
||||||
|
CFLAGS := $(CPPFLAGS) -Wall -Wstrict-prototypes -Wno-trigraphs -O2 \
|
||||||
|
-fomit-frame-pointer -fno-strict-aliasing -fno-common\
|
||||||
|
-D__KERNEL__ -DMODULE -include $(KERNEL_INCLUDES)/linux/modversions.h
|
||||||
|
AFLAGS := -D__ASSEMBLY__ $(CPPFLAGS)
|
||||||
|
|
||||||
|
|
||||||
|
all: radeonfb.o
|
||||||
|
|
||||||
|
radeonfb.o: radeonfb.c radeon.h
|
||||||
|
$(CC) $(CFLAGS) $(INCLUDES) -c $(basename $@).c
|
||||||
|
|
||||||
|
dep:
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -f *.o *~
|
||||||
|
|
||||||
|
distclean: clean
|
||||||
|
rm -f mga_vid_test
|
||||||
|
|
||||||
|
install:
|
||||||
|
@echo Please copy *.o files to '/lib/modules/LINUX_VER/kernel/drivers/video' folder
|
||||||
|
|
@ -1,6 +1,22 @@
|
|||||||
|
framebuffer driver for ATI Radeon chipset video boards
|
||||||
|
======================================================
|
||||||
|
|
||||||
These files are replacement for linux-2.4.x-ac.y drivers.
|
These files are replacement for linux-2.4.x-ac.y drivers.
|
||||||
To use this driver you should have at least linux-2.4.5-ac.1
|
To use this driver you should have at least linux-2.4.5-ac.1
|
||||||
then simply replace linux/drivers/video/radeon* with files
|
then simply replace linux/drivers/video/radeon* with files
|
||||||
from this directory.
|
from this directory.
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
|
Anyway you should have 'Frame buffer support' compiled into linux-kernel
|
||||||
|
and at least '8bpp packed pixel support' compiled and installed as module.
|
||||||
|
(But if you plan to use this module with mplayer you also should have
|
||||||
|
16bpp, 24bpp and 32bpp pixel support compiled as modules).
|
||||||
|
|
||||||
Enjoy
|
Enjoy
|
Loading…
Reference in New Issue
Block a user