Changeset 4006

Show
Ignore:
Timestamp:
08/18/07 21:43:37 (1 year ago)
Author:
hverkuil
Message:

Starting with kernel 2.6.22.2 the ivtv-driver.h header changed.
Try to detect which of the two versions should be used.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • ivtv/branches/1.0/driver/Makefile

    r3968 r4006  
    1313KDIR ?= /lib/modules/$(KVER)/build 
    1414 
    15 all:: ivtv-svnversion.h 
     15all:: ivtv-svnversion.h ivtv-driver.h 
    1616 
    1717ifneq ($(KERNELRELEASE),) 
     
    4040        rm -f ivtv-svnversion.h ivtv-svnversion.h.tmp 
    4141 
     42ivtv-driver.h: 
     43        @KVERNUM=`uname -r | sed 's/-.*//'`; \ 
     44        if [ "$$KVERNUM" = "2.6.22" -o "$$KVERNUM" = "2.6.22.1" ]; then \ 
     45                cp ivtv-driver1.h ivtv-driver.h; \ 
     46        else \ 
     47                cp ivtv-driver2.h ivtv-driver.h; \ 
     48        fi 
     49 
    4250ivtv-svnversion.h: 
    4351        @if [ -s ivtv-svnrelease.h ]; then \