[MPlayer-users] Re: mga_vid install doc
Arpi
arpi at thot.banki.hu
Wed Dec 26 16:43:28 CET 2001
Hi,
> > compiled in somwhow. where is it stored? we should use the
> > same version for install. and it shouldn't depend on where
> > teh kernel source is, but on the kernel include files path
> > (normally linked from /usr/include/linux|asm)
>
> Okay, so we don't need the whole kernel source then, just the
> include/linux directory, there's version.h and getting the
> version number out of it is cleaner too :)
agree. patch (with small mods) applied.
time to close this thread :)
>
>
> diff -urN main/drivers/Makefile main-mod/drivers/Makefile
> --- main/drivers/Makefile Wed Dec 26 16:47:18 2001
> +++ main-mod/drivers/Makefile Wed Dec 26 16:57:30 2001
> @@ -2,6 +2,8 @@
> KERNEL_INCLUDES = /usr/src/linux/include
> INCLUDES = -I$(KERNEL_INCLUDES)
> CFLAGS = -g -O2 -Wall -D__KERNEL__ -DMODULE -include $(KERNEL_INCLUDES)/linux/modversions.h
> +VERSION = $(shell cat $(KERNEL_INCLUDES)/linux/version.h | grep UTS_RELEASE | sed s/\"//g | cut -d' ' -f3)
> +MDIR = /lib/modules/$(VERSION)/misc
>
> all: mga_vid.o mga_vid_test
> # sis_vid.o
> @@ -22,3 +24,7 @@
>
> distclean: clean
> rm -f mga_vid_test
> +
> +install:
> + if test ! -d $(MDIR) ; then mkdir -p $(MDIR) ; fi
> + install -m 644 mga_vid.o $(MDIR)/mga_vid.o
>
>
> _______________________________________________
> RTFM!!! http://www.MPlayerHQ.hu/DOCS
> Search: http://www.MPlayerHQ.hu/cgi-bin/htsearch
> http://mplayerhq.hu/mailman/listinfo/mplayer-users
>
>
A'rpi / Astral & ESP-team
--
mailto:arpi at thot.banki.hu
http://esp-team.scene.hu
More information about the MPlayer-users
mailing list