On Jan 5, 2006, at 8:49 PM, Michael Banys wrote:

> ...... BEGIN QUOTE ......
> Crap, I've been backwards and forwards through the Makefiles and
> can't explain your output below.  First, any time tveeprom is getting
> built, so is tuner.  Secondly, they would never install to /lib/
> modules/2.4.27/kernel/drivers/media/video, they would install to /lib/
> modules/2.4.27/kernel/ivtv.  Thats the way it work for > 2.4 kernels,
> and the Makefile2.4 doesn't seem to vary from that.
> ...... END QUOTE ......
>
> Ok, Keith, so I looked through my makefile, Makefile2.4, in the driver
> directory under ivtv0.4.0, and I wonder if we're looking at the same
> file.  In mine, which I'll paste below, there is NO mention of
> tuner.o; also, the 3rd line seems to, by default, put the compiled
> modules into /lib/modules/2.4.27/kernel/drivers/media/video.  I got my
> source from the ivtvdriver.org website.  Any thoughts?
>
> cat Makefile2.4:

The Makefile2.4 listed below is NOT what is in SVN right now for  
0.4.0.  The correct one would start with :
$ cat Makefile2.4
ifneq ($(KERNELRELEASE),)
include $(CURDIR)/Kbuild

I used an SVN checkout to grab it.  Not sure where your 0.4.0 is  
from, but it doesn't look right.

Keith C

>
> KERNVER = $(shell uname -r)
> KERNELDIR= /lib/modules/$(KERNVER)/build
> MODDIR = /lib/modules/$(KERNVER)/kernel/drivers/media/video
> MODULESDIR = /lib/modules
> INSTALL_INIT_FILES = ../ivtv_init_mpeg.bin
> CROSS_COMPILE =
> LD      = $(CROSS_COMPILE)ld
> CC      = $(CROSS_COMPILE)gcc
> AR      = $(CROSS_COMPILE)ar
> IVTVOBJS        = ivtv-driver.o ivtv-fileops.o ivtv-i2c.o ivtv- 
> streams.o \
>                            ivtv-firmware.o ivtv-reset.o ivtv-gpio.o
> ivtv-queue.o \
>                            ivtv-irq.o ivtv-mailbox.o ivtv-vbi.o
> ivtv-kthreads.o \
>                            ivtv-audio.o ivtv-ioctl.o ivtv-controls.o
> ivtv-video.o \
>                            ivtv-cards.o v4l1-compat.o ivtv-dma.o  
> ivtv-yuv.o
> CX2584OBJS      = cx25840-driver.o cx25840-registers.o cx25840- 
> audio.o \
>                            cx25840-firmware.o
> OBJS    = msp3400.o saa7115.o cx25840.o wm8775.o tveeprom.o ivtv.o
> saa7127.o cs53l32a.o
>
> include $(KERNELDIR)/.config
>
> CFLAGS = -D__KERNEL__ -D__KERNEL_SYSCALLS__ -DMODULE -DMODVERSIONS
> -DEXPORT_SYMTAB -I$(KERNELDIR)/include -O2 -fomit-frame-p$
> # if the kernel .config has fb enabled, it's safe to build ivtv-fb.o
> OBJS    += $(shell grep -q '^CONFIG_FB' $(KERNELDIR)/.config && echo
> "ivtv-fb.o")
> # if the I2C version is 2.8, then we need to use the new_i2c stuff
> CFLAGS  += $(shell grep -q I2C_VERSION.*2\.8
> $(KERNELDIR)/include/linux/i2c.h && echo "-DNEW_I2C")
>
> ifdef HP_FWLOAD
> CFLAGS += -DIVTV_FW_LOADER
> endif
>
> all: ivtv-svnversion.h $(OBJS)
>
> ivtv.o: $(IVTVOBJS)
>         $(LD) -r -o $@ $^
>
> cx25840.o: $(CX2584OBJS)
>         $(LD) -r -o $@ $^
>
> ivtv-fb.o: ivtv-osd.o ivtv-queue.o
>         $(LD) -r -o $@ $^
>
> clean::
>         rm -f *.o videodev2.h
>
> install: all
>         install -d $(DESTDIR)/$(MODDIR)
>         install -m 0644 $(OBJS) $(DESTDIR)/$(MODDIR)
>         install -m 0644 $(INSTALL_INIT_FILES) $(DESTDIR)/$(MODULESDIR)
>
> _______________________________________________
> ivtv-users mailing list
> [email protected]
> http://ivtvdriver.org/mailman/listinfo/ivtv-users


_______________________________________________
ivtv-users mailing list
[email protected]
http://ivtvdriver.org/mailman/listinfo/ivtv-users

Reply via email to