I'm trying to get usb_pwc-7.0 Phillip usb WebCam drivers compiled as a 
separate module, without patching the kernel. So I readed the HOWTO, 
created a Makefile (attached in this mail)... and go. Evidently crashes, 
and gives me some rare reports

Any help will be agreeded. Thanks

PS: Using RedHat-7.1 and default linux-2.4.2-2 Redhat distributed kernel

        Juan Antonio          \|||/
                             / _ _ \
                             \ o o /
=========================o00o===U===o00o======================================
Juan Antonio Martinez               Universidad Politecnica de Madrid
email: [EMAIL PROTECTED]          E.T.S.I Telecomunicacion
http://www.dit.upm.es/~jantonio     Ciudad Universitaria s/n
Tel:   34-1-3367366 ext 416         Laboratorio de Programaci�n. Desp
A-127-2
Fax:   34-1-3367333                 28040 Madrid, Spain
==============================================================================
God Bless the pesimists... because their backups will work
# Makefile for separate compiling of pwc module
# [EMAIL PROTECTED] 27-April-2001
#

# set to "y" to use propietary decompressor

CONFIG_USB_PWCX=y

# where the kernel sources are located
KDIR := /lib/modules/$(shell uname -r)/build

# kernel version
KVER := $(shell grep "UTS_RELEASE" $(KDIR)/include/linux/version.h | cut -d'"' -f2)
MDIR := /lib/modules/$(KVER)/kernel/drivers/usb/video

# By default use the C colour conversion functions and no decompressor, 
# unless we detect an Intel CPU, for which there is assembly and a 
# decompressor available
ccvt-objs       := ccvt_c.o vcvt_c.o
pwcx-extra      :=

ifeq ($(CONFIG_X86),y)
        ccvt-objs       := ccvt_i386.o vcvt_i386.o
        pwcx-extra      := ../pwcx-i386.o
endif

#################################################
# some magic for using linux kernel settings
# when compiling module(s)

export-objs     := pwc-if.o
list-multi      := pwc.o

ifeq ($(CONFIG_USB_PWCX),n)
pwc-objs        := pwc-if.o pwc-misc.o pwc-ctrl.o pwc-uncompress.o $(ccvt-objs)
else
pwc-objs        := pwc-if.o pwc-misc.o pwc-ctrl.o pwc-uncompress.o $(ccvt-objs) 
$(pwcx-extra)
endif

obj-m           := pwc.o

multi-m         := $(filter $(list-multi), $(obj-m))
int-m           := $(sort $(foreach m, $(multi-m), $($(basename $(m))-objs)))

EXTRA_CFLAGS=-g -DPWC_NAME="pwc"

here:
        DIR=`pwd`; (cd $(KDIR); make SUBDIRS=$$DIR modules)

install:
        su -c "mkdir -p $(MDIR); cp -v $(obj-m) $(MDIR)"

pwc.asm asm:
        objdump -S pwc.o > pwc.asm

clean:
        -rm -f *.o .*.o.flags *~ pwc.asm *.p[pg]m captest

include $(KDIR)/Rules.make

pwc.o: $(pwc-objs)
        $(LD) -r -o $@ $(pwc-objs)

Reply via email to