From 70bc836e3ff32ef8e22d6dffb2d7b2ac71ed746a Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Fri, 2 Sep 2005 14:54:29 +0200 Subject: Adjusted the Makefile to the dvb-kernel driver on kernel 2.6 and up --- CONTRIBUTORS | 1 + HISTORY | 2 ++ INSTALL | 23 +++++++++++++---------- Make.config.template | 4 ++-- Makefile | 13 +++++++++++-- 5 files changed, 29 insertions(+), 14 deletions(-) diff --git a/CONTRIBUTORS b/CONTRIBUTORS index 40ced81a..984b7cb2 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -588,6 +588,7 @@ Lauri Tischler unavailable due to a recording on a different transponder for reporting a compiler warning about virtual cConfig::Load() functions for reporting a warning about character comparison in libsi/si.c + for adjusting the Makefile to the dvb-kernel driver on kernel 2.6 and up Andy Carter for helping to test new DVB-T handling diff --git a/HISTORY b/HISTORY index 38a258f3..4790adbb 100644 --- a/HISTORY +++ b/HISTORY @@ -3769,3 +3769,5 @@ Video Disk Recorder Revision History apparently some users actually need it. It's not active by default, you'll have to define the WAIT_FOR_TUNER_LOCK macro in that file if you need it (suggested by Malcolm Caldwell). +- Adjusted the Makefile to the dvb-kernel driver on kernel 2.6 and up (thanks to + Lauri Tischler). diff --git a/INSTALL b/INSTALL index 778dd6c1..4ed92e49 100644 --- a/INSTALL +++ b/INSTALL @@ -23,18 +23,21 @@ mode you want. Compiling and running the program: ---------------------------------- -Make sure the files from this package are located in a -directory that is "parallel" to the DVB directory of the -driver source for the Siemens DVB-S PCI card (refer to -http://linuxtv.org/dvb/siemens_dvb.html for more information -about that driver). For example, if the DVB driver was -extracted into the directory /home/kls/vdr/DVB, then this -package should be extracted into /home/kls/vdr/VDR. +VDR requires the Linux-DVB driver header files to compile. +As of kernel 2.6 these are part of the official Linux kernel +distribution, and VDR's Makefile will automatically locate +them. If you are using kernel 2.4 or earlier, you should +install the files from this package in a directory that is +"parallel" to the DVB directory of the driver source (refer to +http://linuxtv.org for more information about that driver). +For example, if the DVB driver was extracted into the directory +/home/kls/vdr/DVB, then this package should be extracted into +/home/kls/vdr/VDR. If you have the DVB driver source in a different location -you will have to change the definition of DVBDIR in the -Makefile (see the file Make.config.template). +you can rename the file Make.config.template to Make.config and +adjust the definition of DVBDIR in that file. -VDR requires the Linux-DVB card driver version dated 2003-08-23 or higher +VDR requires the Linux-DVB driver version dated 2003-08-23 or higher to work properly. After extracting the package, change into the VDR directory diff --git a/Make.config.template b/Make.config.template index 149ce986..5cbf42bf 100644 --- a/Make.config.template +++ b/Make.config.template @@ -6,7 +6,7 @@ # See the main source file 'vdr.c' for copyright information and # how to reach the author. # -# $Id: Make.config.template 1.5 2005/07/31 11:35:28 kls Exp $ +# $Id: Make.config.template 1.6 2005/09/02 14:24:31 kls Exp $ ### The C compiler and options: @@ -18,7 +18,7 @@ CXXFLAGS = -fPIC -g -O2 -Wall -Woverloaded-virtual ### The directory environment: -DVBDIR = ../DVB +#DVBDIR = ../DVB MANDIR = /usr/local/man BINDIR = /usr/local/bin diff --git a/Makefile b/Makefile index 62d8d166..b268a788 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ # See the main source file 'vdr.c' for copyright information and # how to reach the author. # -# $Id: Makefile 1.78 2005/09/02 13:37:51 kls Exp $ +# $Id: Makefile 1.79 2005/09/02 14:23:38 kls Exp $ .DELETE_ON_ERROR: @@ -14,7 +14,16 @@ CFLAGS ?= -O2 CXX ?= g++ CXXFLAGS ?= -fPIC -g -O2 -Wall -Woverloaded-virtual -DVBDIR = ../DVB +LINUX_VERSION := $(shell uname -r | cut -c-3) +LINUX := $(shell uname -r) +DVBDIR := /lib/modules/$(LINUX)/build +ifeq ($(LINUX_VERSION), 2.4) + DVBDIR = ../DVB +endif +ifeq ($(LINUX_VERSION), 2.2) + DVBDIR = ../DVB +endif + LSIDIR = ./libsi MANDIR = /usr/local/man BINDIR = /usr/local/bin -- cgit v1.2.3