Re: About Webcam module

Pei Lin <[email protected]>
Newsgroups gmane.linux.kernel.kernelnewbies,gmane.comp.video.video4linux
Message-ID <[email protected]>
2009/9/15 Niamathullah sharief <[email protected]>:
>
> Yes thank you..Now i am not getting my modules exactly. I compiled all the
> required modules...ie gspca_main, gspca_zc3xx, v4l1-compat. But i am not
> getting this "videodev" module..I dont know why...
> My Makefile
>>
>> obj-m += gspca_main.o
>>
>> obj-m += gspca_zc3xx.o
>>
>> obj-m += v4l1-compat.o
>>
>> obj-m += v4l2-dev.o
>>
>> obj-m += v4l2-ioctl.o
>>
>> obj-m += v4l2-device.o
>
>
>>
>> gspca_main-objs := gspca.o
>>
>> gspca_zc3xx-objs := zc3xx.o
>>
>> videodev-objs := v4l2-dev.o v4l2-ioctl.o v4l2-device.o
>>
what is the result u want to get ?
Is it to make one videodev.ko file?
So it should be like this:
obj-m += gspca_main.o
obj-m += gspca_zc3xx.o
obj-m += videodev.o
gspca_main-objs := gspca.o
gspca_zc3xx-objs := zc3xx.o
videodev-objs := v4l2-dev.o v4l2-ioctl.o v4l2-device.o

u need read the document about kbuild,module and makefile
http://lxr.linux.no/linux+v2.6.31/Documentation/kbuild/makefiles.txt

>>
>> all:
>>
>> make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
>>
>> clean:
>>
>> make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
>
> if i compile i am getting the the modules as
>
>
>>  sharief@sharief-desktop:~/Desktop/video/gspca$ make
>>
>> make -C /lib/modules/2.6.30/build M=/home/sharief/Desktop/video/gspca
>> modules
>>
>> make[1]: Entering directory
>> `/home/sharief/Desktop/kernelroot/linux-2.6.30'
>>
>> CC [M] /home/sharief/Desktop/video/gspca/gspca.o
>>
>> CC [M] /home/sharief/Desktop/video/gspca/zc3xx.o
>>
>> LD [M] /home/sharief/Desktop/video/gspca/gspca_main.o
>>
>> LD [M] /home/sharief/Desktop/video/gspca/gspca_zc3xx.o
>>
>> CC [M] /home/sharief/Desktop/video/gspca/v4l1-compat.o
>>
>> CC [M] /home/sharief/Desktop/video/gspca/v4l2-dev.o
>>
>> CC [M] /home/sharief/Desktop/video/gspca/v4l2-ioctl.o
>>
>> CC [M] /home/sharief/Desktop/video/gspca/v4l2-device.o
>>
>> Building modules, stage 2.
>>
>> MODPOST 6 modules
>>
>> CC /home/sharief/Desktop/video/gspca/gspca_main.mod.o
>>
>> LD [M] /home/sharief/Desktop/video/gspca/gspca_main.ko
>>
>> CC /home/sharief/Desktop/video/gspca/gspca_zc3xx.mod.o
>>
>> LD [M] /home/sharief/Desktop/video/gspca/gspca_zc3xx.ko
>>
>> CC /home/sharief/Desktop/video/gspca/v4l1-compat.mod.o
>>
>> LD [M] /home/sharief/Desktop/video/gspca/v4l1-compat.ko
>>
>> CC /home/sharief/Desktop/video/gspca/v4l2-dev.mod.o
>>
>> LD [M] /home/sharief/Desktop/video/gspca/v4l2-dev.ko
>>
>> CC /home/sharief/Desktop/video/gspca/v4l2-device.mod.o
>>
>> LD [M] /home/sharief/Desktop/video/gspca/v4l2-device.ko
>>
>> CC /home/sharief/Desktop/video/gspca/v4l2-ioctl.mod.o
>>
>> LD [M] /home/sharief/Desktop/video/gspca/v4l2-ioctl.ko
>
>   I dont know why i am getting like this...?Please help me
>
>
>
>



-- 
Best Regards
Lin

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to [email protected]
Please read the FAQ at http://kernelnewbies.org/FAQ
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.