Hi all

I've packaged r87 of uvcvideo for openSUSE - it seems to work pretty well.  I 
had to tweak the Makefile so that it detects when it is being called by 
kbuild and when it isn't, please see attached.  It would be nice if you could 
commit this :).

The 10.2 repository is here, go up for other versions: 
http://software.opensuse.org/download/drivers:/webcam/openSUSE_10.2/

HTH

Will
Index: Makefile
===================================================================
--- Makefile	(revision 87)
+++ Makefile	(working copy)
@@ -1,3 +1,11 @@
+ifneq ($(KERNELRELEASE),)   # We were called by kbuild
+CFLAGS += $(DEFINES) 
+obj-m		:= uvcvideo.o
+uvcvideo-objs   := uvc_driver.o uvc_queue.o uvc_v4l2.o uvc_video.o uvc_ctrl.o
+
+
+else   # We were called from command line
+
 KERNEL_VERSION	:= `uname -r`
 KERNEL_DIR	:= /lib/modules/$(KERNEL_VERSION)/build
 INSTALL_MOD_DIR	:= usb/media
@@ -4,9 +12,7 @@
 
 PWD		:= $(shell pwd)
 
-obj-m		:= uvcvideo.o
-uvcvideo-objs   := uvc_driver.o uvc_queue.o uvc_v4l2.o uvc_video.o uvc_ctrl.o
-
+default: uvcvideo
 all: uvcvideo
 
 uvcvideo:
@@ -18,6 +24,8 @@
 	@(cd $(KERNEL_DIR) && make -C $(KERNEL_DIR) SUBDIRS=$(PWD) INSTALL_MOD_DIR=$(INSTALL_MOD_DIR) modules_install)
 	depmod -ae
 
+endif
+
 clean:
 	-rm -f *.o *.ko .*.cmd .*.flags *.mod.c Modules.symvers
 	-rm -rf .tmp_versions
_______________________________________________
Linux-uvc-devel mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/linux-uvc-devel

Reply via email to